blob: b011e8fcd8b76f21ef423d6ca61ec53dc4d9233b [file] [log] [blame]
Reed Kotler1595f362013-04-09 19:46:01 +00001//===----------------------------------------------------------------------===//
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
Chandler Carruthe96dd892014-04-21 22:55:11 +000017#define DEBUG_TYPE "mips-isel"
18
Reed Kotler1595f362013-04-09 19:46:01 +000019namespace llvm {
20
21bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
22 DEBUG(errs() << "In MipsModuleDAGToDAGISel::runMachineFunction\n");
Eric Christopher4e7d1e72014-07-18 23:41:32 +000023 TM.resetSubtarget(&MF);
Reed Kotler1595f362013-04-09 19:46:01 +000024 return false;
25}
26
27char MipsModuleDAGToDAGISel::ID = 0;
28
29}
30
31
32llvm::FunctionPass *llvm::createMipsModuleISelDag(MipsTargetMachine &TM) {
33 return new MipsModuleDAGToDAGISel(TM);
34}
35
36