Felipe Sodré Silva
2010-Apr-11 19:48 UTC
[LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
Hello all, I'm very new to llvm, and I'm trying to compile a C file using llvm-gcc, but I'd like to specify the optimization passes sequence by myself. How can I do this? Thanks! Felipe -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100411/cbacb9cf/attachment.html>
Fernando Carrijo
2010-Apr-11 21:29 UTC
[LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
Hi Felipe, Felipe Sodré Silva <fsodre at gmail.com> wrote:> Hello all, > > I'm very new to llvm, and I'm trying to compile a C file using llvm-gcc, but > I'd like to specify the optimization passes sequence by myself. How can I do > this?I guess this may be what you're looking for: http://llvm.org/cmds/opt.html> Thanks! > > Felipe
Duncan Sands
2010-Apr-12 07:39 UTC
[LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
Hi Felipe,> I'm very new to llvm, and I'm trying to compile a C file using llvm-gcc, > but I'd like to specify the optimization passes sequence by myself. How > can I do this?try something like this: llvm-gcc -c -emit-llvm -o - | opt ...list.transforms.here... > result.bc This results in optimized bitcode in result.bc. Ciao, Duncan.
Felipe Sodré Silva
2010-Apr-13 17:09 UTC
[LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
On Mon, Apr 12, 2010 at 12:39 AM, Duncan Sands <baldrick at free.fr> wrote:> > try something like this: > > llvm-gcc -c -emit-llvm -o - | opt ...list.transforms.here... > result.bc >Another question about it: is this transforms list applied in the same order it's given to the command line? Can I repeat a transformation pass within a list? Thanks you! Felipe -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100413/25e30315/attachment.html>
Seemingly Similar Threads
- [LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
- [LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
- [LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
- Error installing ROR on Ubuntu
- [LLVMdev] The "scope" of passes