llvm::TargetRegistry::lookupTarget

lookupTarget - Lookup a target based on a target triple.

Synopsis

Declared in <llvm/MC/TargetRegistry.h>

static
Target const*
lookupTarget(
    Triple const& TheTriple,
    std::string& Error);

Return Value

The matching Target, or nullptr if none was found.

Parameters

NameDescription
TheTriple- The triple to use for finding a target.
Error- On failure, an error string describing why no target was found.