Lines Matching full:target
1 //===--- TargetRegistry.cpp - Target registration -------------------------===//
10 #include "llvm/Target/TargetRegistry.h"
16 static Target *FirstTarget = 0;
22 const Target *TargetRegistry::lookupTarget(const std::string &TT,
26 Error = "Unable to find target for this triple (no targets are registered)";
29 const Target *Best = 0, *EquallyBest = 0;
48 // Otherwise, take the best target, but make sure we don't have two equally
59 void TargetRegistry::RegisterTarget(Target &T,
62 Target::TripleMatchQualityFnTy TQualityFn,
65 "Missing required target information!");
67 // Check if this target has already been initialized, we allow this as a
82 const Target *TargetRegistry::getClosestTargetForJIT(std::string &Error) {
83 const Target *TheTarget = lookupTarget(sys::getHostTriple(), Error);
86 Error = "No JIT compatible target available for this host";