39 Options, RM, CM, OptLevel,
true);
41 return make_error<StringError>(
"Could not allocate target machine",
44 return std::unique_ptr<TargetMachine>(
TM);
48 const std::vector<std::string> &FeatureVec) {
49 for (
const auto &
F : FeatureVec)
This class represents lattice values for constants.
std::string getString() const
Returns features as a string.
static const Target * lookupTarget(const std::string &Triple, std::string &Error)
lookupTarget - Lookup a target based on a target triple.
Tagged union holding either a T or a Error.
void AddFeature(StringRef String, bool Enable=true)
Adds Features.
static Expected< JITTargetMachineBuilder > detectHost()
Create a JITTargetMachineBuilder for the host system.
unsigned ExplicitEmulatedTLS
Whether -emulated-tls or -no-emulated-tls is set.
JITTargetMachineBuilder(Triple TT)
Create a JITTargetMachineBuilder based on the given triple.
JITTargetMachineBuilder & addFeatures(const std::vector< std::string > &FeatureVec)
Add subtarget features.
std::string getProcessTriple()
getProcessTriple() - Return an appropriate target triple for generating code to be loaded into the cu...
Triple - Helper class for working with autoconf configuration names.
unsigned EmulatedTLS
EmulatedTLS - This flag enables emulated TLS model, using emutls function in the runtime library...
const std::string & getTriple() const
Expected< std::unique_ptr< TargetMachine > > createTargetMachine()
Create a TargetMachine.
std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...
A utility class for building TargetMachines for JITs.