xref: /trueos/contrib/llvm/lib/Target/Mips/MipsModuleISelDAGToDAG.cpp (revision 8d21fe8a6db85aa205755bfd9930de5b0a6fa749)
1 //===----------------------------------------------------------------------===//
2 // Instruction Selector Subtarget Control
3 //===----------------------------------------------------------------------===//
4 
5 //===----------------------------------------------------------------------===//
6 // This file defines a pass used to change the subtarget for the
7 // Mips Instruction selector.
8 //
9 //===----------------------------------------------------------------------===//
10 
11 #include "MipsISelDAGToDAG.h"
12 #include "MipsModuleISelDAGToDAG.h"
13 #include "llvm/Support/Casting.h"
14 #include "llvm/Support/Debug.h"
15 #include "llvm/Support/raw_ostream.h"
16 
17 namespace llvm {
18 
runOnMachineFunction(MachineFunction & MF)19 bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
20   DEBUG(errs() << "In MipsModuleDAGToDAGISel::runMachineFunction\n");
21   const_cast<MipsSubtarget&>(Subtarget).resetSubtarget(&MF);
22   return false;
23 }
24 
25 char MipsModuleDAGToDAGISel::ID = 0;
26 
27 }
28 
29 
createMipsModuleISelDag(MipsTargetMachine & TM)30 llvm::FunctionPass *llvm::createMipsModuleISelDag(MipsTargetMachine &TM) {
31   return new MipsModuleDAGToDAGISel(TM);
32 }
33 
34 
35