20 #define DEBUG_TYPE "mips-isel" 31 return "MIPS DAG->DAG Pattern Instruction Selection";
46 bool MipsModuleDAGToDAGISel::runOnMachineFunction(
MachineFunction &MF) {
47 LLVM_DEBUG(
errs() <<
"In MipsModuleDAGToDAGISel::runMachineFunction\n");
48 auto &TPC = getAnalysis<TargetPassConfig>();
55 return new MipsModuleDAGToDAGISel();
AnalysisUsage & addPreserved()
Add the specified Pass class to the set of analyses preserved by this pass.
raw_ostream & errs()
This returns a reference to a raw_ostream for standard error.
This class represents lattice values for constants.
void resetSubtarget(MachineFunction *MF)
Reset the subtarget for the Mips target.
AnalysisUsage & addRequired()
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
Target-Independent Code Generator Pass Configuration Options.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
FunctionPass * createMipsModuleISelDagPass()
StringRef - Represent a constant reference to a string, i.e.