search for: jeffhao

Displaying 12 results from an estimated 12 matches for "jeffhao".

Did you mean: jeffbai
2008 Dec 02
2
[LLVMdev] Error when using getAnalysis
Hi, I had a question about this as well. The documentation about writing a pass shows an example like what John wrote, calling a function pass within a module pass on a per function basis. However, if I code it that way, I still get the same error: opt: /x/jeffhao/llvm/llvm/include/llvm/PassAnalysisSupport.h:232: AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*, llvm::Function&) [with AnalysisType = llvm::LoopInfo]: Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by...
2008 Dec 02
0
[LLVMdev] Error when using getAnalysis
...had a question about this as well. The documentation about > writing a > pass shows an example like what John wrote, calling a function pass > within > a module pass on a per function basis. However, if I code it that > way, I > still get the same error: > > opt: /x/jeffhao/llvm/llvm/include/llvm/PassAnalysisSupport.h:232: > AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*, > llvm::Function&) [with AnalysisType = llvm::LoopInfo]: Assertion > `ResultPass && "getAnalysis*() called on an analysis that was not " > "&...
2008 Dec 02
1
[LLVMdev] Error when using getAnalysis
...ll. The documentation about >> writing a >> pass shows an example like what John wrote, calling a function pass >> within >> a module pass on a per function basis. However, if I code it that >> way, I >> still get the same error: >> >> opt: /x/jeffhao/llvm/llvm/include/llvm/PassAnalysisSupport.h:232: >> AnalysisType& llvm::Pass::getAnalysisID(const llvm::PassInfo*, >> llvm::Function&) [with AnalysisType = llvm::LoopInfo]: Assertion >> `ResultPass && "getAnalysis*() called on an analysis that was not "...
2008 Dec 01
0
[LLVMdev] Error when using getAnalysis
nitisha warkari wrote: > Hi, > > I'm trying to use the function getAnalysis. This is the code I'm using : > > void getAnalysisUsage(AnalysisUsage &AU) const { > AU.addRequired<LoopInfo>(); > AU.setPreservesAll(); > } > > virtual bool runOnModule(Module &M) { > LoopInfo &LI = getAnalysis<LoopInfo>(); > >
2008 Nov 30
3
[LLVMdev] Error when using getAnalysis
Hi, I'm trying to use the function getAnalysis. This is the code I'm using : void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<LoopInfo>(); AU.setPreservesAll(); } virtual bool runOnModule(Module &M) { LoopInfo &LI = getAnalysis<LoopInfo>(); } I get following error when I try to run my pass : opt:
2008 Oct 16
1
[LLVMdev] llvm profiling
I'd like to get some runtime profile data on my code using LLVM. The various -insert-X-profiling passes seem to add the profiling instrumentation to the code, but how do I actually generate profiling output? It seems like utils/profile.pl can do this, but it uses profile_rt.so which doesn't exist. I can manually compile the runtime directory using make install-bytecode, but it
2009 Jan 30
0
[LLVMdev] Recursive compilation detected
Hi, I've trying to test a pass with a C version of the 171.swim SPECfp benchmark. If I run llvm-gcc on the C files, I can generate a functioning executable. However, if I use llvm-gcc with -emit-llvm, then run lli on the resulting bitcode, I get the following error: lli: /x/jeffhao/llvm/llvm-2.4/lib/ExecutionEngine/JIT/JIT.cpp:467: void llvm::JIT::runJITOnFunction(llvm::Function*): Assertion `!isAlreadyCodeGenerating && "Error: Recursive compilation detected!"' failed. Anyone know how to fix this? Jeff
2009 Jan 30
0
[LLVMdev] Recursive compilation detected
Hi, I've trying to test a pass with a C version of the 171.swim SPECfp benchmark. If I run llvm-gcc on the C files, I can generate a functioning executable. However, if I use llvm-gcc with -emit-llvm, then run lli on the resulting bitcode, I get the following error: lli: /x/jeffhao/llvm/llvm-2.4/lib/ExecutionEngine/JIT/JIT.cpp:467: void llvm::JIT::runJITOnFunction(llvm::Function*): Assertion `! isAlreadyCodeGenerating && "Error: Recursive compilation detected!"' failed. Anyone know how to fix this? Jeff
2009 Feb 26
0
[LLVMdev] MemoryDependenceAnalysis in ModulePass
Hi, I'm having some trouble using the MemoryDependenceAnalysis pass within a ModulePass. If I use addRequired and getAnalysis, it works properly within a FunctionPass, but opt aborts when I try to do the same in a ModulePass, with the following error: opt: /x/jeffhao/llvm/llvm/include/llvm/Target/TargetData.h:114: llvm::TargetData::TargetData(): Assertion '0 && "ERROR: Bad TargetData ctor used. " "Tool did not specify a TargetData to use?"' failed. Has anyone else seen this error and know a way around it? Thanks, Jeff
2009 Mar 20
0
[LLVMdev] Problem with MemoryDependenceAnalysis
On Mar 20, 2009, at 8:13 AM, Amr Yehia wrote: > Dear all, > > I am having a problem adding a MemoryDependenceAnalysis pass to a > Module > Pass i created, it gives me the following error when i add > (Info.addRequired<MemoryDependenceAnalysis>();) it in the > getAnalysisUsage(AnalysisUsage &Info) function. > If MemoryDependenceAnalysis requires any module
2009 Mar 20
2
[LLVMdev] Problem with MemoryDependenceAnalysis
...DFGModulePass < $2.bc and opt $OPT_OPTIONS -load ${LLVM_PATH}/Release/lib/.libs/libDFGMODULEPASS.so -memdep -DFGModulePass < $2.bc by the way ... i found another mail addressing the same problem as i have in the mailing list archive but i couldn't find a reply the message was sent by jeffhao on Thu, 26 Feb 2009 17:39:32 -0500 thank you. > - > Devang > >> adding DependenceFlowGraph_FunctionAnalaysis_Pass ... >> doneopt[0x75627f] >> /lib64/libc.so.6[0x3880a30070] >> /lib64/libc.so.6(gsignal+0x35)[0x3880a30015] >> /lib64/libc.so.6(abort+0...
2009 Mar 20
2
[LLVMdev] Problem with MemoryDependenceAnalysis
Dear all, I am having a problem adding a MemoryDependenceAnalysis pass to a Module Pass i created, it gives me the following error when i add (Info.addRequired<MemoryDependenceAnalysis>();) it in the getAnalysisUsage(AnalysisUsage &Info) function. adding callgraph pass ... done opt: /net/home/yehia/llvm/llvm-2.4/include/llvm/Target/TargetData.h:114: