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