Remove WordsEmitted statistic; there's already a non-backend-specific
authorBrian Gaeke <gaeke@uiuc.edu>
Mon, 13 Oct 2003 19:51:20 +0000 (19:51 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Mon, 13 Oct 2003 19:51:20 +0000 (19:51 +0000)
jello statistic for this (just divide #-bytes-of-code-emitted by 4).

Rewrite head-of-file comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9098 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9CodeEmitter.cpp

index 819b8627a412ccd95b782e8e26774510802b5f6a..e741d75cc58ed372decee5f938a39cc7bff09799 100644 (file)
@@ -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;