66 Subtarget(TT, Cpu, FeatureString, *this, Options, getCodeModel(),
85 return getTM<LanaiTargetMachine>();
88 bool addInstSelector()
override;
89 void addPreSched2()
override;
90 void addPreEmitPass()
override;
96 return new LanaiPassConfig(*
this, &PassManager);
100 bool LanaiPassConfig::addInstSelector() {
107 void LanaiPassConfig::addPreEmitPass() {
113 void LanaiPassConfig::addPreSched2() {
CodeModel::Model getEffectiveCodeModel(Optional< CodeModel::Model > CM, CodeModel::Model Default)
Helper method for getting the code model, returning Default if CM does not have a value...
static std::string computeDataLayout()
This class represents lattice values for constants.
Target & getTheLanaiTarget()
void initializeLanaiMemAluCombinerPass(PassRegistry &)
LanaiTargetMachine(const Target &TheTarget, const Triple &TargetTriple, StringRef Cpu, StringRef FeatureString, const TargetOptions &Options, Optional< Reloc::Model > RelocationModel, Optional< CodeModel::Model > CodeModel, CodeGenOpt::Level OptLevel, bool JIT)
FunctionPass * createLanaiMemAluCombinerPass()
TargetPassConfig * createPassConfig(PassManagerBase &pass_manager) override
Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of ...
Target-Independent Code Generator Pass Configuration Options.
void LLVMInitializeLanaiTarget()
RegisterTargetMachine - Helper template for registering a target machine implementation, for use in the target machine initialization function.
FunctionPass * createLanaiDelaySlotFillerPass(const LanaiTargetMachine &TM)
static Reloc::Model getEffectiveRelocModel(Optional< Reloc::Model > RM)
This class describes a target machine that is implemented with the LLVM target-independent code gener...
FunctionPass * createLanaiISelDag(LanaiTargetMachine &TM)
TargetTransformInfo getTargetTransformInfo(const Function &F) override
Get a TargetTransformInfo implementation for the target.
Triple - Helper class for working with autoconf configuration names.
PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...
Target - Wrapper for Target specific information.
Manages a sequence of passes over a particular unit of IR.
StringRef - Represent a constant reference to a string, i.e.
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...