13 #ifndef LLVM_EXECUTIONENGINE_ORC_JITTARGETMACHINEBUILDER_H 14 #define LLVM_EXECUTIONENGINE_ORC_JITTARGETMACHINEBUILDER_H 69 return TM.takeError();
70 return (*TM)->createDataLayout();
99 this->OptLevel = OptLevel;
111 addFeatures(
const std::vector<std::string> &FeatureVec);
161 #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.
friend raw_ostream & operator<<(raw_ostream &OS, const JITTargetMachineBuilder &JTMB)
Debug-dump a JITTargetMachineBuilder.
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.
This class implements an extremely fast bulk output stream that can only output to a stream.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
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.