summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-10-13 19:51:20 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-10-13 19:51:20 +0000
commit6855f03c56ecc81d383d715ebb74095ab6b81f7e (patch)
tree8f7cc17c00df183134ae720cd8c53971fccb65f6 /llvm
parentabb3b38448b6fbc0bd51ab7e9c8111a99ec38547 (diff)
downloadbcm5719-llvm-6855f03c56ecc81d383d715ebb74095ab6b81f7e.tar.gz
bcm5719-llvm-6855f03c56ecc81d383d715ebb74095ab6b81f7e.zip
Remove WordsEmitted statistic; there's already a non-backend-specific
jello statistic for this (just divide #-bytes-of-code-emitted by 4). Rewrite head-of-file comment. llvm-svn: 9098
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp b/llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp
index 819b8627a41..e741d75cc58 100644
--- a/llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp
+++ b/llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp
@@ -1,6 +1,15 @@
//===-- SparcV9CodeEmitter.cpp --------------------------------------------===//
//
-// FIXME: document
+// SPARC-specific backend for emitting machine code to memory.
+//
+// This module also contains the code for lazily resolving the targets
+// of call instructions, including the callback used to redirect calls
+// to functions for which the code has not yet been generated into the
+// JIT compiler.
+//
+// This file #includes SparcV9CodeEmitter.inc, which contains the code
+// for getBinaryCodeForInstr(), a method that converts a MachineInstr
+// into the corresponding binary machine code word.
//
//===----------------------------------------------------------------------===//
@@ -26,7 +35,6 @@ namespace {
Statistic<> OverwrittenCalls("call-ovwr", "Number of over-written calls");
Statistic<> UnmodifiedCalls("call-skip", "Number of unmodified calls");
Statistic<> CallbackCalls("callback", "Number CompilationCallback() calls");
- Statistic<> WordsEmitted("words-emitted", "No. of words emitted to memory");
}
bool UltraSparc::addPassesToEmitMachineCode(FunctionPassManager &PM,
@@ -442,7 +450,6 @@ SparcV9CodeEmitter::~SparcV9CodeEmitter() {
void SparcV9CodeEmitter::emitWord(unsigned Val) {
// Output the constant in big endian byte order...
- ++WordsEmitted;
unsigned byteVal;
for (int i = 3; i >= 0; --i) {
byteVal = Val >> 8*i;
OpenPOWER on IntegriCloud