forked from OSchip/llvm-project
Make emitFarCall() public, and add a few comments to functions.
llvm-svn: 7399
This commit is contained in:
parent
f128c11bdd
commit
fb8f64a590
|
@ -34,21 +34,45 @@ public:
|
||||||
SparcV9CodeEmitter(TargetMachine &T, MachineCodeEmitter &M);
|
SparcV9CodeEmitter(TargetMachine &T, MachineCodeEmitter &M);
|
||||||
~SparcV9CodeEmitter();
|
~SparcV9CodeEmitter();
|
||||||
|
|
||||||
|
/// runOnMachineFunction - emits the given machine function to memory.
|
||||||
|
///
|
||||||
bool runOnMachineFunction(MachineFunction &F);
|
bool runOnMachineFunction(MachineFunction &F);
|
||||||
|
|
||||||
|
/// emitWord - writes out the given 32-bit value to memory at the current PC.
|
||||||
|
///
|
||||||
void emitWord(unsigned Val);
|
void emitWord(unsigned Val);
|
||||||
|
|
||||||
/// Function generated by the CodeEmitterGenerator using TableGen
|
/// getBinaryCodeForInstr - This function, generated by the
|
||||||
|
/// CodeEmitterGenerator using TableGen, produces the binary encoding for
|
||||||
|
/// machine instructions.
|
||||||
///
|
///
|
||||||
unsigned getBinaryCodeForInstr(MachineInstr &MI);
|
unsigned getBinaryCodeForInstr(MachineInstr &MI);
|
||||||
|
|
||||||
|
/// emitFarCall - produces a code sequence to make a call to a destination
|
||||||
|
/// that does not fit in the 30 bits that a call instruction allows.
|
||||||
|
///
|
||||||
|
void emitFarCall(uint64_t Addr);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
/// getMachineOpValue -
|
||||||
|
///
|
||||||
int64_t getMachineOpValue(MachineInstr &MI, MachineOperand &MO);
|
int64_t getMachineOpValue(MachineInstr &MI, MachineOperand &MO);
|
||||||
inline unsigned getValueBit(int64_t Val, unsigned bit);
|
|
||||||
|
/// emitBasicBlock -
|
||||||
|
///
|
||||||
void emitBasicBlock(MachineBasicBlock &MBB);
|
void emitBasicBlock(MachineBasicBlock &MBB);
|
||||||
|
|
||||||
|
/// getValueBit -
|
||||||
|
///
|
||||||
|
unsigned getValueBit(int64_t Val, unsigned bit);
|
||||||
|
|
||||||
|
/// getGlobalAddress -
|
||||||
|
///
|
||||||
void* getGlobalAddress(GlobalValue *V, MachineInstr &MI,
|
void* getGlobalAddress(GlobalValue *V, MachineInstr &MI,
|
||||||
bool isPCRelative);
|
bool isPCRelative);
|
||||||
|
/// emitFarCall -
|
||||||
|
///
|
||||||
unsigned getRealRegNum(unsigned fakeReg, MachineInstr &MI);
|
unsigned getRealRegNum(unsigned fakeReg, MachineInstr &MI);
|
||||||
inline void emitFarCall(uint64_t Addr);
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue