summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-07-29 20:52:56 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-07-29 20:52:56 +0000
commitfb8f64a5901e51e435593abb782c92469b0ef2af (patch)
tree5145d11d6ba28b9c35ca659dc2b392a0a0831e65 /llvm/lib/Target/Sparc
parentf128c11bdd3e4bae6253ba1d3416ccdc1f9d5dca (diff)
downloadbcm5719-llvm-fb8f64a5901e51e435593abb782c92469b0ef2af.tar.gz
bcm5719-llvm-fb8f64a5901e51e435593abb782c92469b0ef2af.zip
Make emitFarCall() public, and add a few comments to functions.
llvm-svn: 7399
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/SparcV9CodeEmitter.h30
1 files changed, 27 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcV9CodeEmitter.h b/llvm/lib/Target/Sparc/SparcV9CodeEmitter.h
index 9e3b5bd5bf5..b1c01910f6f 100644
--- a/llvm/lib/Target/Sparc/SparcV9CodeEmitter.h
+++ b/llvm/lib/Target/Sparc/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);
};
OpenPOWER on IntegriCloud