[llvm-commits] CVS: llvm/lib/Target/X86/Printer.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Oct 6 10:42:04 PDT 2003
Changes in directory llvm/lib/Target/X86:
Printer.cpp updated: 1.61 -> 1.62
---
Log message:
Add # of printed instructions statistic to both the SPARC and X86 LLC backends.
---
Diffs of the changes:
Index: llvm/lib/Target/X86/Printer.cpp
diff -u llvm/lib/Target/X86/Printer.cpp:1.61 llvm/lib/Target/X86/Printer.cpp:1.62
--- llvm/lib/Target/X86/Printer.cpp:1.61 Wed Sep 10 14:52:24 2003
+++ llvm/lib/Target/X86/Printer.cpp Mon Oct 6 10:41:21 2003
@@ -18,10 +18,13 @@
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Support/Mangler.h"
+#include "Support/Statistic.h"
#include "Support/StringExtras.h"
#include "Support/CommandLine.h"
namespace {
+ Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
+
// FIXME: This should be automatically picked up by autoconf from the C
// frontend
cl::opt<bool> EmitCygwin("enable-cygwin-compatible-output", cl::Hidden,
@@ -573,6 +576,7 @@
const TargetInstrInfo &TII = TM.getInstrInfo();
const TargetInstrDescriptor &Desc = TII.get(Opcode);
+ ++EmittedInsts;
switch (Desc.TSFlags & X86II::FormMask) {
case X86II::Pseudo:
// Print pseudo-instructions as comments; either they should have been
More information about the llvm-commits
mailing list