LLVM API Documentation
#include <MipsTargetMachine.h>
Public Member Functions | |
MipsTargetMachine (const Target &T, StringRef TT, StringRef CPU, StringRef FS, const TargetOptions &Options, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OL, bool isLittle) | |
virtual | ~MipsTargetMachine () |
void | addAnalysisPasses (PassManagerBase &PM) override |
Register analysis passes for this target with a pass manager. | |
const MipsSubtarget * | getSubtargetImpl () const override |
void | resetSubtarget (MachineFunction *MF) |
Reset the subtarget for the Mips target. | |
TargetPassConfig * | createPassConfig (PassManagerBase &PM) override |
Definition at line 27 of file MipsTargetMachine.h.
MipsTargetMachine::MipsTargetMachine | ( | const Target & | T, |
StringRef | TT, | ||
StringRef | CPU, | ||
StringRef | FS, | ||
const TargetOptions & | Options, | ||
Reloc::Model | RM, | ||
CodeModel::Model | CM, | ||
CodeGenOpt::Level | OL, | ||
bool | isLittle | ||
) |
Definition at line 53 of file MipsTargetMachine.cpp.
References llvm::LLVMTargetMachine::initAsmInfo().
virtual llvm::MipsTargetMachine::~MipsTargetMachine | ( | ) | [inline, virtual] |
Definition at line 38 of file MipsTargetMachine.h.
void MipsTargetMachine::addAnalysisPasses | ( | PassManagerBase & | PM | ) | [override, virtual] |
Register analysis passes for this target with a pass manager.
This registers target independent analysis passes.
Reimplemented from llvm::LLVMTargetMachine.
Definition at line 169 of file MipsTargetMachine.cpp.
References llvm::MipsSubtarget::allowMixed16_32(), llvm::createNoTargetTransformInfoPass(), DEBUG, and llvm::errs().
TargetPassConfig * MipsTargetMachine::createPassConfig | ( | PassManagerBase & | PM | ) | [override, virtual] |
createPassConfig - Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of CodeGen passes.
createPassConfig - Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of CodeGen passes.
Targets may override this to extend TargetPassConfig.
Reimplemented from llvm::LLVMTargetMachine.
Definition at line 135 of file MipsTargetMachine.cpp.
const MipsSubtarget* llvm::MipsTargetMachine::getSubtargetImpl | ( | ) | const [inline, override, virtual] |
getSubtargetImpl - virtual method implemented by subclasses that returns a reference to that target's TargetSubtargetInfo-derived member variable.
Reimplemented from llvm::TargetMachine.
Definition at line 42 of file MipsTargetMachine.h.
Referenced by llvm::createMipsISelDag().
void MipsTargetMachine::resetSubtarget | ( | MachineFunction * | MF | ) |
Reset the subtarget for the Mips target.
Definition at line 86 of file MipsTargetMachine.cpp.
References llvm::dbgs(), DEBUG, llvm::AttributeSet::FunctionIndex, llvm::Function::getAttributes(), llvm::MachineFunction::getFunction(), llvm::AttributeSet::hasAttribute(), and llvm::MachineFunction::setSubtarget().
Referenced by llvm::MipsModuleDAGToDAGISel::runOnMachineFunction().