search for: functionpassnam

Displaying 5 results from an estimated 5 matches for "functionpassnam".

Did you mean: functionpassname
2011 Jun 16
0
[LLVMdev] Cannot use function pass in a module pass
...(http://llvm.org/docs/WritingAnLLVMPass.html) states in my module pass > I cannot perform getAnalysis and fetch the function pass result. > When trying to do so `opt` fails with the following mesage: This may not be your problem, but in older versions of LLVM, you cannot call getAnalysis<FunctionPassName>(F) if F is a function with no body. You need to do something like: if (!(F->isDeclaration())) { getAnalysis<FunctionPassName>(F); ... } -- John T. > [***@*** ***]$ opt -load ~/llvm/Debug+Asserts/lib/MyPassLibrary.so > -mymodulepass< input.bc>/dev/null >...
2011 Jun 16
1
[LLVMdev] Cannot use function pass in a module pass
.../WritingAnLLVMPass.html) states in my module pass >> I cannot perform getAnalysis and fetch the function pass result. >> When trying to do so `opt` fails with the following mesage: > > This may not be your problem, but in older versions of LLVM, you cannot > call getAnalysis<FunctionPassName>(F) if F is a function with no body. > You need to do something like: > > if (!(F->isDeclaration())) { >     getAnalysis<FunctionPassName>(F); >     ... > } > > -- John T. > >> [***@*** ***]$ opt -load ~/llvm/Debug+Asserts/lib/MyPassLibrary.so >>...
2011 Jun 15
3
[LLVMdev] Cannot use function pass in a module pass
Hi. I'm trying to implement a module pass which can be dynamically loaded by `opt` (against up-to-date llvm from svn). Despite what the tutorial (http://llvm.org/docs/WritingAnLLVMPass.html) states in my module pass I cannot perform getAnalysis and fetch the function pass result. When trying to do so `opt` fails with the following mesage: [***@*** ***]$ opt -load
2015 May 20
3
[LLVMdev] Processing functions in call graph SCC "order" with function-level analyses
...l have to run the function analyses manually, I might as well keep rolling with the CallGraphSCCPass. (I probably should have mentioned that this is what I’m using right now.) > > I'm not sure what you mean by "manually." If you use a ModulePass, you can use the getAnalysis<FunctionPassName>(F) method to get a reference to a function pass. The ModulePass's getAnalysisUsage() method will need to use addRequired<FunctionPass>() to require each FunctionPass, but I think the PassManager will run the passes automatically as needed. > > Note that you cannot use the Pas...
2015 May 19
3
[LLVMdev] Processing functions in call graph SCC "order" with function-level analyses
Thanks John. Does this solve the problem of analysis availability though? If I still have to run the function analyses manually, I might as well keep rolling with the CallGraphSCCPass. (I probably should have mentioned that this is what I’m using right now.) Félix > Le 2015-05-19 à 10:12:32, John Criswell <jtcriswel at gmail.com> a écrit : > > On 5/18/15 10:45 PM, Félix Cloutier