23 #define DEBUG_TYPE "ve" 32 std::string
Ret =
"e";
62 static std::unique_ptr<TargetLoweringObjectFile>
createTLOF() {
63 return std::make_unique<VEELFTargetObjectFile>();
76 TLOF(
createTLOF()), Subtarget(TT, CPU, FS, *this) {
94 return getTM<VETargetMachine>();
97 bool addInstSelector()
override;
102 return new VEPassConfig(*
this, PM);
105 bool VEPassConfig::addInstSelector() {
void LLVMInitializeVETarget()
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...
This class represents lattice values for constants.
static std::unique_ptr< TargetLoweringObjectFile > createTLOF()
VETargetMachine(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)
Create an Aurora VE architecture model.
TargetPassConfig * createPassConfig(PassManagerBase &PM) override
Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of ...
Target-Independent Code Generator Pass Configuration Options.
Context object for machine code objects.
RegisterTargetMachine - Helper template for registering a target machine implementation, for use in the target machine initialization function.
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 * createVEISelDag(VETargetMachine &TM)
createVEISelDag - This pass converts a legalized DAG into a VE-specific DAG, ready for instruction sc...
Triple - Helper class for working with autoconf configuration names.
Target & getTheVETarget()
unsigned UseInitArray
UseInitArray - Use .init_array instead of .ctors for static constructors.
PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...
static std::string computeDataLayout(const Triple &T)
Target - Wrapper for Target specific information.
TargetTransformInfo getTargetTransformInfo(const Function &F) override
Get a TargetTransformInfo implementation for the target.
~VETargetMachine() override
Primary interface to the complete machine description for the target machine.
StringRef - Represent a constant reference to a string, i.e.
void Initialize(MCContext &Ctx, const TargetMachine &TM) override
This method must be called before any actual lowering is done.