forked from OSchip/llvm-project
parent
86a12015ee
commit
3d38609fdd
|
@ -63,12 +63,11 @@ class MipsCodeEmitter : public MachineFunctionPass {
|
||||||
static char ID;
|
static char ID;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MipsCodeEmitter(TargetMachine &tm, JITCodeEmitter &mce) :
|
MipsCodeEmitter(TargetMachine &tm, JITCodeEmitter &mce)
|
||||||
MachineFunctionPass(ID), JTI(0),
|
: MachineFunctionPass(ID), JTI(0),
|
||||||
II((const MipsInstrInfo *) tm.getInstrInfo()),
|
II((const MipsInstrInfo *) tm.getInstrInfo()), TD(tm.getDataLayout()),
|
||||||
TD(tm.getDataLayout()), TM(tm), MCE(mce), MCPEs(0), MJTEs(0),
|
TM(tm), MCE(mce), MCPEs(0), MJTEs(0),
|
||||||
IsPIC(TM.getRelocationModel() == Reloc::PIC_) {
|
IsPIC(TM.getRelocationModel() == Reloc::PIC_) {}
|
||||||
}
|
|
||||||
|
|
||||||
bool runOnMachineFunction(MachineFunction &MF);
|
bool runOnMachineFunction(MachineFunction &MF);
|
||||||
|
|
||||||
|
@ -106,8 +105,7 @@ class MipsCodeEmitter : public MachineFunctionPass {
|
||||||
|
|
||||||
unsigned getJumpTargetOpValue(const MachineInstr &MI, unsigned OpNo) const;
|
unsigned getJumpTargetOpValue(const MachineInstr &MI, unsigned OpNo) const;
|
||||||
|
|
||||||
unsigned getBranchTargetOpValue(const MachineInstr &MI,
|
unsigned getBranchTargetOpValue(const MachineInstr &MI, unsigned OpNo) const;
|
||||||
unsigned OpNo) const;
|
|
||||||
unsigned getMemEncoding(const MachineInstr &MI, unsigned OpNo) const;
|
unsigned getMemEncoding(const MachineInstr &MI, unsigned OpNo) const;
|
||||||
unsigned getSizeExtEncoding(const MachineInstr &MI, unsigned OpNo) const;
|
unsigned getSizeExtEncoding(const MachineInstr &MI, unsigned OpNo) const;
|
||||||
unsigned getSizeInsEncoding(const MachineInstr &MI, unsigned OpNo) const;
|
unsigned getSizeInsEncoding(const MachineInstr &MI, unsigned OpNo) const;
|
||||||
|
|
Loading…
Reference in New Issue