search for: addoptimizationpasses

Displaying 6 results from an estimated 6 matches for "addoptimizationpasses".

2016 May 10
2
Some questions about phase ordering in OPT and LLC
> >> 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 -mymodulepass...
2016 May 09
2
Some questions about phase ordering in OPT and LLC
...? > > > There are two PassManager instantiated and ran on the IR. I am not aware of a good reason for that (the first one is created with PassManagerBuilder::populateFunctionPassManager() and the second one with PassManagerBuilder::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 fun...
2010 Mar 02
2
[LLVMdev] make SHARED_LIBRARY=1 broken?
...::createArgumentPromotionPass(unsigned int)' opt.cpp:(.text+0x668): undefined reference to `llvm::createFunctionAttrsPass()' opt.cpp:(.text+0x688): undefined reference to `llvm::createGlobalDCEPass()' /home/src/llvm-trunk/llvm/tools/opt/Release/opt.o: In function `(anonymous namespace)::AddOptimizationPasses(llvm::PassManager&, llvm::FunctionPassManager&, unsigned int)': opt.cpp:(.text+0x6e7): undefined reference to `llvm::createFunctionInliningPass(int)' opt.cpp:(.text+0x781): undefined reference to `llvm::createAlwaysInlinerPass()' /home/src/llvm-trunk/llvm/tools/opt/Release/opt.o...
2010 Mar 02
0
[LLVMdev] make SHARED_LIBRARY=1 broken?
...Pass(unsigned int)' > opt.cpp:(.text+0x668): undefined reference to > `llvm::createFunctionAttrsPass()' > opt.cpp:(.text+0x688): undefined reference to `llvm::createGlobalDCEPass()' > /home/src/llvm-trunk/llvm/tools/opt/Release/opt.o: In function `(anonymous > namespace)::AddOptimizationPasses(llvm::PassManager&, > llvm::FunctionPassManager&, unsigned int)': > opt.cpp:(.text+0x6e7): undefined reference to > `llvm::createFunctionInliningPass(int)' > opt.cpp:(.text+0x781): undefined reference to > `llvm::createAlwaysInlinerPass()' > /home/src/llvm-trun...
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
2010 Mar 02
4
[LLVMdev] make SHARED_LIBRARY=1 broken?
...pt.cpp:(.text+0x668): undefined reference to > > `llvm::createFunctionAttrsPass()' > > opt.cpp:(.text+0x688): undefined reference to > `llvm::createGlobalDCEPass()' > > /home/src/llvm-trunk/llvm/tools/opt/Release/opt.o: In function > `(anonymous > > namespace)::AddOptimizationPasses(llvm::PassManager&, > > llvm::FunctionPassManager&, unsigned int)': > > opt.cpp:(.text+0x6e7): undefined reference to > > `llvm::createFunctionInliningPass(int)' > > opt.cpp:(.text+0x781): undefined reference to > > `llvm::createAlwaysInlinerPass()'...