mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 21:31:41 +00:00
[mips] Remove trivial header for the MipsModuleISelDAGToDAG pass. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232260 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
56fe63e20e
commit
e282854e63
@ -26,6 +26,7 @@ namespace llvm {
|
|||||||
ModulePass *createMipsOs16Pass(MipsTargetMachine &TM);
|
ModulePass *createMipsOs16Pass(MipsTargetMachine &TM);
|
||||||
ModulePass *createMips16HardFloatPass(MipsTargetMachine &TM);
|
ModulePass *createMips16HardFloatPass(MipsTargetMachine &TM);
|
||||||
|
|
||||||
|
FunctionPass *createMipsModuleISelDagPass(MipsTargetMachine &TM);
|
||||||
FunctionPass *createMipsOptimizePICCallPass(MipsTargetMachine &TM);
|
FunctionPass *createMipsOptimizePICCallPass(MipsTargetMachine &TM);
|
||||||
FunctionPass *createMipsDelaySlotFillerPass(MipsTargetMachine &TM);
|
FunctionPass *createMipsDelaySlotFillerPass(MipsTargetMachine &TM);
|
||||||
FunctionPass *createMipsLongBranchPass(MipsTargetMachine &TM);
|
FunctionPass *createMipsLongBranchPass(MipsTargetMachine &TM);
|
||||||
|
@ -8,40 +8,35 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "MipsISelDAGToDAG.h"
|
#include "Mips.h"
|
||||||
#include "MipsModuleISelDAGToDAG.h"
|
|
||||||
#include "MipsTargetMachine.h"
|
#include "MipsTargetMachine.h"
|
||||||
#include "llvm/Support/Casting.h"
|
|
||||||
#include "llvm/Support/Debug.h"
|
#include "llvm/Support/Debug.h"
|
||||||
#include "llvm/Support/raw_ostream.h"
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
#define DEBUG_TYPE "mips-isel"
|
#define DEBUG_TYPE "mips-isel"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
//===----------------------------------------------------------------------===//
|
class MipsModuleDAGToDAGISel : public MachineFunctionPass {
|
||||||
// MipsModuleDAGToDAGISel - MIPS specific code to select MIPS machine
|
public:
|
||||||
// instructions for SelectionDAG operations.
|
static char ID;
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
class MipsModuleDAGToDAGISel : public MachineFunctionPass {
|
|
||||||
public:
|
|
||||||
|
|
||||||
static char ID;
|
explicit MipsModuleDAGToDAGISel(MipsTargetMachine &TM_)
|
||||||
|
|
||||||
explicit MipsModuleDAGToDAGISel(MipsTargetMachine &TM_)
|
|
||||||
: MachineFunctionPass(ID), TM(TM_) {}
|
: MachineFunctionPass(ID), TM(TM_) {}
|
||||||
|
|
||||||
// Pass Name
|
// Pass Name
|
||||||
const char *getPassName() const override {
|
const char *getPassName() const override {
|
||||||
return "MIPS DAG->DAG Pattern Instruction Selection";
|
return "MIPS DAG->DAG Pattern Instruction Selection";
|
||||||
}
|
}
|
||||||
|
|
||||||
bool runOnMachineFunction(MachineFunction &MF) override;
|
bool runOnMachineFunction(MachineFunction &MF) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
MipsTargetMachine &TM;
|
MipsTargetMachine &TM;
|
||||||
};
|
};
|
||||||
} // namespace
|
|
||||||
|
char MipsModuleDAGToDAGISel::ID = 0;
|
||||||
|
}
|
||||||
|
|
||||||
bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
|
bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
|
||||||
DEBUG(errs() << "In MipsModuleDAGToDAGISel::runMachineFunction\n");
|
DEBUG(errs() << "In MipsModuleDAGToDAGISel::runMachineFunction\n");
|
||||||
@ -49,10 +44,6 @@ bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
char MipsModuleDAGToDAGISel::ID = 0;
|
llvm::FunctionPass *llvm::createMipsModuleISelDagPass(MipsTargetMachine &TM) {
|
||||||
|
|
||||||
llvm::FunctionPass *llvm::createMipsModuleISelDag(MipsTargetMachine &TM) {
|
|
||||||
return new MipsModuleDAGToDAGISel(TM);
|
return new MipsModuleDAGToDAGISel(TM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
//===---- MipsModuleISelDAGToDAG.h - Change Subtarget --------===//
|
|
||||||
//
|
|
||||||
// The LLVM Compiler Infrastructure
|
|
||||||
//
|
|
||||||
// This file is distributed under the University of Illinois Open Source
|
|
||||||
// License. See LICENSE.TXT for details.
|
|
||||||
//
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
//
|
|
||||||
// This file defines a pass used to change the subtarget for the
|
|
||||||
// Mips Instruction selector.
|
|
||||||
//
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
|
|
||||||
#ifndef LLVM_LIB_TARGET_MIPS_MIPSMODULEISELDAGTODAG_H
|
|
||||||
#define LLVM_LIB_TARGET_MIPS_MIPSMODULEISELDAGTODAG_H
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
// Instruction Selector Implementation
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
class FunctionPass;
|
|
||||||
class MipsTargetMachine;
|
|
||||||
|
|
||||||
/// createMipsISelDag - This pass converts a legalized DAG into a
|
|
||||||
/// MIPS-specific DAG, ready for instruction scheduling.
|
|
||||||
FunctionPass *createMipsModuleISelDag(MipsTargetMachine &TM);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
@ -19,7 +19,6 @@
|
|||||||
#include "Mips16InstrInfo.h"
|
#include "Mips16InstrInfo.h"
|
||||||
#include "MipsFrameLowering.h"
|
#include "MipsFrameLowering.h"
|
||||||
#include "MipsInstrInfo.h"
|
#include "MipsInstrInfo.h"
|
||||||
#include "MipsModuleISelDAGToDAG.h"
|
|
||||||
#include "MipsSEFrameLowering.h"
|
#include "MipsSEFrameLowering.h"
|
||||||
#include "MipsSEISelDAGToDAG.h"
|
#include "MipsSEISelDAGToDAG.h"
|
||||||
#include "MipsSEISelLowering.h"
|
#include "MipsSEISelLowering.h"
|
||||||
@ -219,7 +218,7 @@ void MipsPassConfig::addIRPasses() {
|
|||||||
// Install an instruction selector pass using
|
// Install an instruction selector pass using
|
||||||
// the ISelDag to gen Mips code.
|
// the ISelDag to gen Mips code.
|
||||||
bool MipsPassConfig::addInstSelector() {
|
bool MipsPassConfig::addInstSelector() {
|
||||||
addPass(createMipsModuleISelDag(getMipsTargetMachine()));
|
addPass(createMipsModuleISelDagPass(getMipsTargetMachine()));
|
||||||
addPass(createMips16ISelDag(getMipsTargetMachine()));
|
addPass(createMips16ISelDag(getMipsTargetMachine()));
|
||||||
addPass(createMipsSEISelDag(getMipsTargetMachine()));
|
addPass(createMipsSEISelDag(getMipsTargetMachine()));
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user