Displaying 6 results from an estimated 6 matches for "myfunctionpass".
Did you mean:
functionpass
2011 Jun 15
3
[LLVMdev] Cannot use function pass in a module pass
...LVMPass.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 ~/llvm/Debug+Asserts/lib/MyPassLibrary.so
-mymodulepass < input.bc >/dev/null
MyModulePass::runOnModule
MyFunctionPass::runOnFunction(process)
opt: /***/llvm/include/llvm/MyFunctionPass.h:241: AnalysisType&
llvm::Pass::getAnalysisID(llvm::AnalysisID, llvm::Function&) [with
AnalysisType = {anonymous}::MyFunctionPass, llvm::AnalysisID = const
void*]: Assertion `ResultPass && "Unable to find reque...
2011 Jun 16
0
[LLVMdev] Cannot use function pass in a module pass
...h 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
> MyModulePass::runOnModule
> MyFunctionPass::runOnFunction(process)
> opt: /***/llvm/include/llvm/MyFunctionPass.h:241: AnalysisType&
> llvm::Pass::getAnalysisID(llvm::AnalysisID, llvm::Function&) [with
> AnalysisType = {anonymous}::MyFunctionPass, llvm::AnalysisID = const
> void*]: Assertion `ResultPass&& "...
2011 Jun 16
1
[LLVMdev] Cannot use function pass in a module pass
...t; if (!(F->isDeclaration())) {
> getAnalysis<FunctionPassName>(F);
> ...
> }
>
> -- John T.
>
>> [***@*** ***]$ opt -load ~/llvm/Debug+Asserts/lib/MyPassLibrary.so
>> -mymodulepass< input.bc>/dev/null
>> MyModulePass::runOnModule
>> MyFunctionPass::runOnFunction(process)
>> opt: /***/llvm/include/llvm/MyFunctionPass.h:241: AnalysisType&
>> llvm::Pass::getAnalysisID(llvm::AnalysisID, llvm::Function&) [with
>> AnalysisType = {anonymous}::MyFunctionPass, llvm::AnalysisID = const
>> void*]: Assertion `ResultPass&a...
2016 May 10
2
Some questions about phase ordering in OPT and LLC
...ook at AddOptimizationPasses() in opt.cpp.
> >
> > As far as I understand, the two passmanager do not interleave their
> > passes. It first runs all the function passes and below. Then all the
> > module passes. So if you specify:
> >
> > opt -mymodulepass0 -myfunctionpass -mymodulepass1
> >
> > What you actually get is:
> >
> > 1. myfunctionpass on each function
> > 2. mymodulepass0
> > 3. mymodulepass0
>
> (I assume your 3 was intended to be mymodulepass1 right?)
(yes)
> So AFAIK no, you should get the order you spe...
2016 May 09
2
Some questions about phase ordering in OPT and LLC
...Builder::populateModulePassManager()).
>
> You can look at AddOptimizationPasses() in opt.cpp.
As far as I understand, the two passmanager do not interleave their
passes. It first runs all the function passes and below. Then all the
module passes. So if you specify:
opt -mymodulepass0 -myfunctionpass -mymodulepass1
What you actually get is:
1. myfunctionpass on each function
2. mymodulepass0
3. mymodulepass0
2016 May 09
4
Some questions about phase ordering in OPT and LLC
Hi,
I'm a PhD student doing phase ordering as part of my PhD topic and I
would like to ask some questions about LLVM.
Executing the following command to see what passes does OPT execute when
targeting a SPARC V8 processor:
/opt/clang+llvm-3.7.1-x86_64-linux-gnu-ubuntu-15.10/bin/llvm-as <
/dev/null | /opt/clang+llvm-3.7.1-x86_64-linux-gnu-ubuntu-15.10/bin/opt
-O3 -march=sparc -mcpu=v8