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 #define DEBUG_TYPE "mips-isel"
18 
19 namespace llvm {
20 
runOnMachineFunction(MachineFunction & MF)21 bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
22   DEBUG(errs() << "In MipsModuleDAGToDAGISel::runMachineFunction\n");
23   TM.resetSubtarget(&MF);
24   return false;
25 }
26 
27 char MipsModuleDAGToDAGISel::ID = 0;
28 
29 }
30 
31 
createMipsModuleISelDag(MipsTargetMachine & TM)32 llvm::FunctionPass *llvm::createMipsModuleISelDag(MipsTargetMachine &TM) {
33   return new MipsModuleDAGToDAGISel(TM);
34 }
35 
36 
37