mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-07 12:07:17 +00:00
35 lines
1.0 KiB
C++
35 lines
1.0 KiB
C++
|
//===----------------------------------------------------------------------===//
|
||
|
// 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"
|
||
|
|
||
|
namespace llvm {
|
||
|
|
||
|
bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
|
||
|
DEBUG(errs() << "In MipsModuleDAGToDAGISel::runMachineFunction\n");
|
||
|
const_cast<MipsSubtarget&>(Subtarget).resetSubtarget(&MF);
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
char MipsModuleDAGToDAGISel::ID = 0;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
llvm::FunctionPass *llvm::createMipsModuleISelDag(MipsTargetMachine &TM) {
|
||
|
return new MipsModuleDAGToDAGISel(TM);
|
||
|
}
|
||
|
|
||
|
|