Go to the documentation of this file.
32 "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8";
36 if (CPU.
empty() || CPU ==
"generic") {
50 std::optional<Reloc::Model>
RM,
51 std::optional<CodeModel::Model> CM,
57 this->TLOF = std::make_unique<AVRTargetObjectFile>();
68 AVRTargetMachine &getAVRTargetMachine()
const {
69 return getTM<AVRTargetMachine>();
72 void addIRPasses()
override;
73 bool addInstSelector()
override;
74 void addPreSched2()
override;
75 void addPreEmitPass()
override;
80 return new AVRPassConfig(*
this, PM);
83 void AVRPassConfig::addIRPasses() {
113 return AVRMachineFunctionInfo::create<AVRMachineFunctionInfo>(
Allocator,
F,
121 bool AVRPassConfig::addInstSelector() {
130 void AVRPassConfig::addPreSched2() {
134 void AVRPassConfig::addPreEmitPass() {
This is an optimization pass for GlobalISel generic memory operations.
std::unique_ptr< const MCSubtargetInfo > STI
MachineFunctionInfo * createMachineFunctionInfo(BumpPtrAllocator &Allocator, const Function &F, const TargetSubtargetInfo *STI) const override
Create the target's instance of MachineFunctionInfo.
A generic AVR implementation.
Target - Wrapper for Target specific information.
Triple - Helper class for working with autoconf configuration names.
TargetPassConfig * createPassConfig(PassManagerBase &PM) override
Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of ...
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
A specific AVR target MCU.
Target & getTheAVRTarget()
RegisterTargetMachine - Helper template for registering a target machine implementation,...
const char LLVMTargetMachineRef LLVMPassBuilderOptionsRef Options
void initializeAVRExpandPseudoPass(PassRegistry &)
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
void initializeAVRDAGToDAGISelPass(PassRegistry &)
Target-Independent Code Generator Pass Configuration Options.
constexpr bool empty() const
empty - Check if the string is empty.
CodeModel::Model getEffectiveCodeModel(std::optional< CodeModel::Model > CM, CodeModel::Model Default)
Helper method for getting the code model, returning Default if CM does not have a value.
#define LLVM_EXTERNAL_VISIBILITY
Allocate memory in an ever growing pool, as if by bump-pointer.
virtual void addIRPasses()
Add common target configurable passes that perform LLVM IR to IR transforms following machine indepen...
static StringRef getCPU(StringRef CPU)
Processes a CPU name.
static Reloc::Model getEffectiveRelocModel(std::optional< Reloc::Model > RM)
void initializeAVRShiftExpandPass(PassRegistry &)
StringRef - Represent a constant reference to a string, i.e.
Analysis the ScalarEvolution expression for r is this
AVRTargetMachine(const Target &T, const Triple &TT, StringRef CPU, StringRef FS, const TargetOptions &Options, std::optional< Reloc::Model > RM, std::optional< CodeModel::Model > CM, CodeGenOpt::Level OL, bool JIT)
FunctionPass * createAVRISelDag(AVRTargetMachine &TM, CodeGenOpt::Level OptLevel)
TargetSubtargetInfo - Generic base class for all target subtargets.
FunctionPass * createAVRFrameAnalyzerPass()
Creates instance of the frame analyzer pass.
This class describes a target machine that is implemented with the LLVM target-independent code gener...
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAVRTarget()
char & BranchRelaxationPassID
BranchRelaxation - This pass replaces branches that need to jump further than is supported by a branc...
PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...
const char LLVMTargetMachineRef TM
static const char * AVRDataLayout
Pass * createAVRShiftExpandPass()
Level
Code generation optimization level.
const AVRSubtarget * getSubtargetImpl() const
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...
FunctionPass * createAVRExpandPseudoPass()