[llvm-commits] CVS: llvm/lib/Target/Sparc/EmitAssembly.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Oct 6 10:42:02 PDT 2003
Changes in directory llvm/lib/Target/Sparc:
EmitAssembly.cpp updated: 1.90 -> 1.91
---
Log message:
Add # of printed instructions statistic to both the SPARC and X86 LLC backends.
---
Diffs of the changes:
Index: llvm/lib/Target/Sparc/EmitAssembly.cpp
diff -u llvm/lib/Target/Sparc/EmitAssembly.cpp:1.90 llvm/lib/Target/Sparc/EmitAssembly.cpp:1.91
--- llvm/lib/Target/Sparc/EmitAssembly.cpp:1.90 Tue Sep 23 12:27:28 2003
+++ llvm/lib/Target/Sparc/EmitAssembly.cpp Mon Oct 6 10:41:20 2003
@@ -21,11 +21,14 @@
#include "llvm/Pass.h"
#include "llvm/Assembly/Writer.h"
#include "Support/StringExtras.h"
+#include "Support/Statistic.h"
#include "SparcInternals.h"
#include <string>
namespace {
+Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
+
class GlobalIdTable: public Annotation {
static AnnotationID AnnotId;
friend class AsmPrinter; // give access to AnnotId
@@ -483,7 +486,6 @@
toAsm << ")";
}
-
void
SparcFunctionAsmPrinter::emitMachineInst(const MachineInstr *MI)
{
@@ -507,6 +509,7 @@
N = 1;
toAsm << "\n";
+ ++EmittedInsts;
}
void
More information about the llvm-commits
mailing list