llvm::TargetRegistry::lookupTarget

lookupTarget overloads

Synopses

Declared in <llvm/MC/TargetRegistry.h>

lookupTarget - Lookup a target based on a target triple.

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

Lookup a target by architecture name or target triple.

static
Target const*
lookupTarget(
    StringRef ArchName,
    Triple& TheTriple,
    std::string& Error);
» more...

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.
ArchName- The architecture to use for finding a target.