Displaying 2 results from an estimated 2 matches for "ldstcallcounter".
2008 Jul 17
2
[LLVMdev] Pass Added as Required fails assert
...roven to function correctly. On another
machine, whenever the second pass is run, it consistently fails the
assertion:
opt: /home/tmason/llvm/llvm/include/llvm/PassAnalysisSupport.h:193:
AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*) const [with
AnalysisType = <unnamed>::LdStCallCounter]: Assertion `ResultPass &&
"getAnalysis*() called on an analysis that was not " "'required' by pass!"'
failed.
We have modified opt.cpp with the following lines:
addPass(PM, createLdStCallCounter()); // tmason
addPass(PM, createLAMPProfilerPass()...
2008 Jul 17
0
[LLVMdev] Pass Added as Required fails assert
...n. It only fails in this
manner when main is the first (or only) function in the source file.
Debugging information:
Breakpoint 2, getAnalysisUsage (this=0x88072c8, AU=@0xbfa352f8) at
/home/pprabhu/llvm/llvm/lib/Transforms/Instrumentation/LAMPProfiling.cpp:93
93 AU.addRequired<LdStCallCounter>();
(gdb) c
Continuing.
Breakpoint 2, getAnalysisUsage (this=0x88072c8, AU=@0xbfa350b4) at
/home/pprabhu/llvm/llvm/lib/Transforms/Instrumentation/LAMPProfiling.cpp:93
93 AU.addRequired<LdStCallCounter>();
(gdb) c
Continuing.
Breakpoint 2, getAnalysisUsage (this=0x88072c8,...