You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.182
Former-commit-id: f9d55cf82631bfd710c387739687e5845296aea1
This commit is contained in:
parent
8625704ad8
commit
b716dc8d12
@ -1,54 +0,0 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Instruction Selector Subtarget Control
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// This file defines a pass used to change the subtarget for the
|
||||
// Mips Instruction selector.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Mips.h"
|
||||
#include "MipsTargetMachine.h"
|
||||
#include "llvm/CodeGen/TargetPassConfig.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "mips-isel"
|
||||
|
||||
namespace {
|
||||
class MipsModuleDAGToDAGISel : public MachineFunctionPass {
|
||||
public:
|
||||
static char ID;
|
||||
|
||||
MipsModuleDAGToDAGISel() : MachineFunctionPass(ID) {}
|
||||
|
||||
// Pass Name
|
||||
StringRef getPassName() const override {
|
||||
return "MIPS DAG->DAG Pattern Instruction Selection";
|
||||
}
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.addRequired<TargetPassConfig>();
|
||||
MachineFunctionPass::getAnalysisUsage(AU);
|
||||
}
|
||||
|
||||
bool runOnMachineFunction(MachineFunction &MF) override;
|
||||
};
|
||||
|
||||
char MipsModuleDAGToDAGISel::ID = 0;
|
||||
}
|
||||
|
||||
bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) {
|
||||
DEBUG(errs() << "In MipsModuleDAGToDAGISel::runMachineFunction\n");
|
||||
auto &TPC = getAnalysis<TargetPassConfig>();
|
||||
auto &TM = TPC.getTM<MipsTargetMachine>();
|
||||
TM.resetSubtarget(&MF);
|
||||
return false;
|
||||
}
|
||||
|
||||
llvm::FunctionPass *llvm::createMipsModuleISelDagPass() {
|
||||
return new MipsModuleDAGToDAGISel();
|
||||
}
|
Reference in New Issue
Block a user