diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-07-29 20:52:56 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-07-29 20:52:56 +0000 |
commit | a21b8e8213e57bffc828986eb69ab2da2650b667 (patch) | |
tree | 29b19ffa711b954f50dabcea280e89c2af2b1deb /lib/Target | |
parent | 588668d4681bf928e09534c373b1bcf86757f899 (diff) | |
download | external_llvm-a21b8e8213e57bffc828986eb69ab2da2650b667.zip external_llvm-a21b8e8213e57bffc828986eb69ab2da2650b667.tar.gz external_llvm-a21b8e8213e57bffc828986eb69ab2da2650b667.tar.bz2 |
Make emitFarCall() public, and add a few comments to functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/SparcV9/SparcV9CodeEmitter.h | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.h b/lib/Target/SparcV9/SparcV9CodeEmitter.h index 9e3b5bd..b1c0191 100644 --- a/lib/Target/SparcV9/SparcV9CodeEmitter.h +++ b/lib/Target/SparcV9/SparcV9CodeEmitter.h @@ -34,21 +34,45 @@ public: SparcV9CodeEmitter(TargetMachine &T, MachineCodeEmitter &M); ~SparcV9CodeEmitter(); + /// runOnMachineFunction - emits the given machine function to memory. + /// bool runOnMachineFunction(MachineFunction &F); + + /// emitWord - writes out the given 32-bit value to memory at the current PC. + /// 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); + /// 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: + /// getMachineOpValue - + /// int64_t getMachineOpValue(MachineInstr &MI, MachineOperand &MO); - inline unsigned getValueBit(int64_t Val, unsigned bit); + + /// emitBasicBlock - + /// void emitBasicBlock(MachineBasicBlock &MBB); + + /// getValueBit - + /// + unsigned getValueBit(int64_t Val, unsigned bit); + + /// getGlobalAddress - + /// void* getGlobalAddress(GlobalValue *V, MachineInstr &MI, bool isPCRelative); + /// emitFarCall - + /// unsigned getRealRegNum(unsigned fakeReg, MachineInstr &MI); - inline void emitFarCall(uint64_t Addr); }; |