2013-04-10 03:46:01 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Instruction Selector Subtarget Control
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// This file defines a pass used to change the subtarget for the
|
|
|
|
// Mips Instruction selector.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "MipsISelDAGToDAG.h"
|
|
|
|
#include "MipsModuleISelDAGToDAG.h"
|
|
|
|
#include "llvm/Support/Casting.h"
|
|
|
|
#include "llvm/Support/Debug.h"
|
|
|
|
#include "llvm/Support/raw_ostream.h"
|
|
|
|
|
2014-04-22 06:55:11 +08:00
|
|
|
#define DEBUG_TYPE "mips-isel"
|
|
|
|
|
2013-04-10 03:46:01 +08:00
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
|
|
|
|
DEBUG(errs() << "In MipsModuleDAGToDAGISel::runMachineFunction\n");
|
2014-07-19 07:41:32 +08:00
|
|
|
TM.resetSubtarget(&MF);
|
2013-04-10 03:46:01 +08:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
char MipsModuleDAGToDAGISel::ID = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
llvm::FunctionPass *llvm::createMipsModuleISelDag(MipsTargetMachine &TM) {
|
|
|
|
return new MipsModuleDAGToDAGISel(TM);
|
|
|
|
}
|
|
|
|
|
|
|
|
|