anna thomas
2011-Dec-01 11:28 UTC
[LLVMdev] Using the output of a user defined analysis pass in a user defined transform Pass
Hi, I have created a transform pass that uses the results of my analysis pass. My analysis pass depends on the DominatorTree pass. I am facing an issue when I try to use the results I get from my analysis pass in my transform pass. I can run the analysis pass separately using opt -load without any problem. Both the transform and analysis pass object files are in one .so file which I use with opt -load. However, in my transform pass, when I use addRequired<analysis_pass> in the getAnalysisUsage function, I get a segmentation fault when I try to run the transform pass. I found that I do not have this error when I use an analysis pass that does not need to be loaded (for example, loopinfo). Also, both my transform and analysis pass are function passes. Is it necessary that my analysis pass should be integrated into opt (without using -load) if it has to be used by my transform pass? Thanks, Anna -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111201/ac3bf4b4/attachment.html>
Possibly Parallel Threads
- [LLVMdev] Infinite loop when adding a new analysis pass
- [LLVMdev] getAnalysis*() called on an analysis that was not " "'required' by pass!
- [LLVMdev] 2.9 segfault when requesting for both LoopInfo and DominatorTree analyses.
- [LLVMdev] 2.9 segfault when requesting for both LoopInfo and DominatorTree analyses.
- [LLVMdev] Adding dependency on MemoryDependenceAnalysis pass to LICM causes opt to get stuck in addPass