18 #define DEBUG_TYPE "mips-isel"
29 const char *getPassName()
const override {
30 return "MIPS DAG->DAG Pattern Instruction Selection";
42 bool MipsModuleDAGToDAGISel::runOnMachineFunction(
MachineFunction &MF) {
43 DEBUG(
errs() <<
"In MipsModuleDAGToDAGISel::runMachineFunction\n");
44 TM.resetSubtarget(&MF);
49 return new MipsModuleDAGToDAGISel(TM);
raw_ostream & errs()
This returns a reference to a raw_ostream for standard error.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
FunctionPass class - This class is used to implement most global optimizations.
FunctionPass * createMipsModuleISelDagPass(MipsTargetMachine &TM)