projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A8.6.315 VLD3 (single 3-element structure to all lanes)
[oota-llvm.git]
/
lib
/
Analysis
/
InstCount.cpp
diff --git
a/lib/Analysis/InstCount.cpp
b/lib/Analysis/InstCount.cpp
index 4af6acb0f9790d14d909f405e16aefe4efdeb314..3b385d26ba3c07245a6cdfcce01b18ac86a167ee 100644
(file)
--- a/
lib/Analysis/InstCount.cpp
+++ b/
lib/Analysis/InstCount.cpp
@@
-46,12
+46,14
@@
namespace {
#include "llvm/Instruction.def"
void visitInstruction(Instruction &I) {
#include "llvm/Instruction.def"
void visitInstruction(Instruction &I) {
-
dbg
s() << "Instruction Count does not know about " << I;
+
err
s() << "Instruction Count does not know about " << I;
llvm_unreachable(0);
}
public:
static char ID; // Pass identification, replacement for typeid
llvm_unreachable(0);
}
public:
static char ID; // Pass identification, replacement for typeid
- InstCount() : FunctionPass(&ID) {}
+ InstCount() : FunctionPass(ID) {
+ initializeInstCountPass(*PassRegistry::getPassRegistry());
+ }
virtual bool runOnFunction(Function &F);
virtual bool runOnFunction(Function &F);
@@
-64,8
+66,8
@@
namespace {
}
char InstCount::ID = 0;
}
char InstCount::ID = 0;
-static RegisterPass<InstCount>
-X("instcount", "Counts the various types of Instructions", false, true);
+INITIALIZE_PASS(InstCount, "instcount",
+ "Counts the various types of Instructions", false, true)
FunctionPass *llvm::createInstCountPass() { return new InstCount(); }
FunctionPass *llvm::createInstCountPass() { return new InstCount(); }