NuPlusTargetMachine class

From NaplesPU Documentation
Jump to: navigation, search

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 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.