Go to the documentation of this file.
21 #define DEBUG_TYPE "mips-isel"
32 return "MIPS DAG->DAG Pattern Instruction Selection";
47 bool MipsModuleDAGToDAGISel::runOnMachineFunction(
MachineFunction &MF) {
48 LLVM_DEBUG(
errs() <<
"In MipsModuleDAGToDAGISel::runMachineFunction\n");
49 auto &TPC = getAnalysis<TargetPassConfig>();
51 TM.resetSubtarget(&MF);
56 return new MipsModuleDAGToDAGISel();
This is an optimization pass for GlobalISel generic memory operations.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
Represent the analysis usage information of a pass.
FunctionPass * createMipsModuleISelDagPass()
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
Target-Independent Code Generator Pass Configuration Options.
StringRef - Represent a constant reference to a string, i.e.
AnalysisUsage & addPreserved()
Add the specified Pass class to the set of analyses preserved by this pass.
const char LLVMTargetMachineRef TM
FunctionPass class - This class is used to implement most global optimizations.
AnalysisUsage & addRequired()