LLVM API Documentation

MipsModuleISelDAGToDAG.cpp
Go to the documentation of this file.
00001 //===----------------------------------------------------------------------===//
00002 // Instruction Selector Subtarget Control
00003 //===----------------------------------------------------------------------===//
00004 
00005 //===----------------------------------------------------------------------===//
00006 // This file defines a pass used to change the subtarget for the
00007 // Mips Instruction selector.
00008 //
00009 //===----------------------------------------------------------------------===//
00010 
00011 #include "MipsISelDAGToDAG.h"
00012 #include "MipsModuleISelDAGToDAG.h"
00013 #include "llvm/Support/Casting.h"
00014 #include "llvm/Support/Debug.h"
00015 #include "llvm/Support/raw_ostream.h"
00016 
00017 #define DEBUG_TYPE "mips-isel"
00018 
00019 namespace llvm {
00020 
00021 bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
00022   DEBUG(errs() << "In MipsModuleDAGToDAGISel::runMachineFunction\n");
00023   TM.resetSubtarget(&MF);
00024   return false;
00025 }
00026 
00027 char MipsModuleDAGToDAGISel::ID = 0;
00028 
00029 }
00030 
00031 
00032 llvm::FunctionPass *llvm::createMipsModuleISelDag(MipsTargetMachine &TM) {
00033   return new MipsModuleDAGToDAGISel(TM);
00034 }
00035 
00036