diff options
Diffstat (limited to 'llvm/lib/Target/Alpha')
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp | 5 | ||||
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp | 7 | ||||
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaLLRP.cpp | 12 |
4 files changed, 10 insertions, 15 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp index be8973a337a..6e36f115234 100644 --- a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp +++ b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp @@ -12,6 +12,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "asm-printer" #include "Alpha.h" #include "AlphaInstrInfo.h" #include "AlphaTargetMachine.h" @@ -26,9 +27,9 @@ #include "llvm/ADT/Statistic.h" using namespace llvm; +STATISTIC(EmittedInsts, "Number of machine instrs printed"); + namespace { - Statistic EmittedInsts("asm-printer", "Number of machine instrs printed"); - struct VISIBILITY_HIDDEN AlphaAsmPrinter : public AsmPrinter { /// Unique incrementer for label values for referencing Global values. diff --git a/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp b/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp index 6f5bc70f058..15aef8532d5 100644 --- a/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp +++ b/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp @@ -12,6 +12,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "alpha-emitter" #include "AlphaTargetMachine.h" #include "AlphaRelocations.h" #include "Alpha.h" @@ -22,15 +23,9 @@ #include "llvm/CodeGen/Passes.h" #include "llvm/Function.h" #include "llvm/Support/Debug.h" -#include "llvm/ADT/Statistic.h" using namespace llvm; namespace { - Statistic - NumEmitted("alpha-emitter", "Number of machine instructions emitted"); -} - -namespace { class AlphaCodeEmitter : public MachineFunctionPass { const AlphaInstrInfo *II; TargetMachine &TM; diff --git a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp index fc752aa31f6..14790456599 100644 --- a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp @@ -22,7 +22,6 @@ #include "llvm/CodeGen/SelectionDAG.h" #include "llvm/CodeGen/SelectionDAGISel.h" #include "llvm/Target/TargetOptions.h" -#include "llvm/ADT/Statistic.h" #include "llvm/Constants.h" #include "llvm/GlobalValue.h" #include "llvm/Intrinsics.h" diff --git a/llvm/lib/Target/Alpha/AlphaLLRP.cpp b/llvm/lib/Target/Alpha/AlphaLLRP.cpp index 6e59e466b69..a5c984eaf6c 100644 --- a/llvm/lib/Target/Alpha/AlphaLLRP.cpp +++ b/llvm/lib/Target/Alpha/AlphaLLRP.cpp @@ -8,10 +8,11 @@ //===----------------------------------------------------------------------===// // // Here we check for potential replay traps introduced by the spiller -// We also align some branch targets if we can do so for free +// We also align some branch targets if we can do so for free. +// //===----------------------------------------------------------------------===// - +#define DEBUG_TYPE "alpha-nops" #include "Alpha.h" #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/MachineInstrBuilder.h" @@ -22,11 +23,10 @@ #include "llvm/Support/CommandLine.h" using namespace llvm; -namespace { - Statistic nopintro("alpha-nops", "Number of nops inserted"); - Statistic nopalign("alpha-nops-align", - "Number of nops inserted for alignment"); +STATISTIC(nopintro, "Number of nops inserted"); +STATISTIC(nopalign, "Number of nops inserted for alignment"); +namespace { cl::opt<bool> AlignAll("alpha-align-all", cl::Hidden, cl::desc("Align all blocks")); |