28 static const char *
AVRDataLayout =
"e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8";
32 if (CPU.
empty() || CPU ==
"generic") {
53 this->TLOF = make_unique<AVRTargetObjectFile>();
65 return getTM<AVRTargetMachine>();
68 bool addInstSelector()
override;
69 void addPreSched2()
override;
70 void addPreEmitPass()
override;
71 void addPreRegAlloc()
override;
76 return new AVRPassConfig(*
this, PM);
100 bool AVRPassConfig::addInstSelector() {
109 void AVRPassConfig::addPreRegAlloc() {
114 void AVRPassConfig::addPreSched2() {
119 void AVRPassConfig::addPreEmitPass() {
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
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 PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
This class represents lattice values for constants.
char & BranchRelaxationPassID
BranchRelaxation - This pass replaces branches that need to jump further than is supported by a branc...
const AVRSubtarget * getSubtargetImpl() const
Target & getTheAVRTarget()
FunctionPass * createAVRRelaxMemPass()
Target-Independent Code Generator Pass Configuration Options.
A generic AVR implementation.
RegisterTargetMachine - Helper template for registering a target machine implementation, for use in the target machine initialization function.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool empty() const
empty - Check if the string is empty.
void LLVMInitializeAVRTarget()
void initializeAVRRelaxMemPass(PassRegistry &)
CodeGenOpt::Level getOptLevel() const
Returns the optimization level: None, Less, Default, or Aggressive.
static Reloc::Model getEffectiveRelocModel(Optional< Reloc::Model > RM)
AVRTargetMachine(const Target &T, const Triple &TT, StringRef CPU, StringRef FS, const TargetOptions &Options, Optional< Reloc::Model > RM, Optional< CodeModel::Model > CM, CodeGenOpt::Level OL, bool JIT)
TargetPassConfig * createPassConfig(PassManagerBase &PM) override
Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of ...
This class describes a target machine that is implemented with the LLVM target-independent code gener...
FunctionPass * createAVRISelDag(AVRTargetMachine &TM, CodeGenOpt::Level OptLevel)
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 ...
Module.h This file contains the declarations for the Module class.
Target - Wrapper for Target specific information.
A specific AVR target MCU.
FunctionPass * createAVRExpandPseudoPass()
static const char * AVRDataLayout
static StringRef getCPU(StringRef CPU)
Processes a CPU name.
FunctionPass * createAVRFrameAnalyzerPass()
Creates instance of the frame analyzer pass.
StringRef - Represent a constant reference to a string, i.e.
void initializeAVRExpandPseudoPass(PassRegistry &)
FunctionPass * createAVRDynAllocaSRPass()
createAVRDynAllocaSRPass - returns an instance of the dynalloca stack pointer save/restore pass...