13 #ifndef LLVM_EXECUTIONENGINE_ORC_JITTARGETMACHINEBUILDER_H 14 #define LLVM_EXECUTIONENGINE_ORC_JITTARGETMACHINEBUILDER_H 66 return TM.takeError();
67 return (*TM)->createDataLayout();
72 this->CPU = std::move(CPU);
78 this->RM = std::move(RM);
87 this->CM = std::move(CM);
96 this->OptLevel = OptLevel;
108 addFeatures(
const std::vector<std::string> &FeatureVec);
123 this->Options = std::move(Options);
152 #endif // LLVM_EXECUTIONENGINE_ORC_JITTARGETMACHINEBUILDER_H const SubtargetFeatures & getFeatures() const
Access subtarget features.
JITTargetMachineBuilder & setOptions(TargetOptions Options)
Set TargetOptions.
This class represents lattice values for constants.
const TargetOptions & getOptions() const
Access TargetOptions.
JITTargetMachineBuilder & setRelocationModel(Optional< Reloc::Model > RM)
Set the relocation model.
SubtargetFeatures & getFeatures()
Access subtarget features.
const Optional< CodeModel::Model > & getCodeModel() const
Get the code model.
Tagged union holding either a T or a Error.
static Expected< JITTargetMachineBuilder > detectHost()
Create a JITTargetMachineBuilder for the host system.
Expected< DataLayout > getDefaultDataLayoutForTarget()
Get the default DataLayout for the target.
JITTargetMachineBuilder(Triple TT)
Create a JITTargetMachineBuilder based on the given triple.
JITTargetMachineBuilder & addFeatures(const std::vector< std::string > &FeatureVec)
Add subtarget features.
Triple - Helper class for working with autoconf configuration names.
JITTargetMachineBuilder & setFeatures(StringRef FeatureString)
Set subtarget features.
Triple & getTargetTriple()
Access Triple.
Manages the enabling and disabling of subtarget specific features.
JITTargetMachineBuilder & setCPU(std::string CPU)
Set the CPU string.
const Triple & getTargetTriple() const
Access Triple.
Expected< std::unique_ptr< TargetMachine > > createTargetMachine()
Create a TargetMachine.
TargetOptions & getOptions()
Access TargetOptions.
JITTargetMachineBuilder & setCodeGenOptLevel(CodeGenOpt::Level OptLevel)
Set the LLVM CodeGen optimization level.
JITTargetMachineBuilder & setCodeModel(Optional< CodeModel::Model > CM)
Set the code model.
StringRef - Represent a constant reference to a string, i.e.
A utility class for building TargetMachines for JITs.
const Optional< Reloc::Model > & getRelocationModel() const
Get the relocation model.