Difference between revisions of "NuPlusTargetMachine.cpp"

From NaplesPU Documentation
Jump to: navigation, search
(Created page with "Category:C++ Classes The '''NuPlusTargetMachine''' class implements the LLVMTargetMachine and is responsible to describe a target machine that is implemented with the LLVM...")
 
 
Line 1: Line 1:
 
[[Category:C++ Classes]]
 
[[Category:C++ Classes]]
The '''NuPlusTargetMachine''' class implements the LLVMTargetMachine and is responsible to describe a target machine that is implemented with the LLVM target-independent code generator.
+
The '''NuPlusTargetMachine''' class implements the LLVMTargetMachine and is responsible to describe a target machine that is implemented with the LLVM target-independent code generator. It contains information about the Data Layout, the Relocation Model and the optimization passes the back-end has. Note that some aspects defined in this class must be also specified inside the frontend in the NuPlusTargetInfo class (see [[Frontend | the nu+ frontend]] for more information).
 
 
The functions implemented are:
 
*'''createPassConfig''', create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of CodeGen passes.
 
*'''getSubtargetImpl''' and '''getObjFileLowering''', returns a reference to that target's TargetSubtargetInfo-derived member variable.
 
 
 
This class contains information about the Data Layout, the Relocation Model and the optimization passes the back-end has.
 

Latest revision as of 19:00, 11 June 2018

The NuPlusTargetMachine class implements the LLVMTargetMachine and is responsible to describe a target machine that is implemented with the LLVM target-independent code generator. It contains information about the Data Layout, the Relocation Model and the optimization passes the back-end has. Note that some aspects defined in this class must be also specified inside the frontend in the NuPlusTargetInfo class (see the nu+ frontend for more information).