--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
I think he meant -mllvm not -mlvm. The next thing that follows is passed to
LLVM, for example -mllvm -disable-llvm-optzns
Ciao, Duncan.
>
>
> Harel Cain
>
>
> On Sun, Mar 4, 2012 at 15:03, Anton Korobeynikov <an...@korobeynikov.info
> <mailto:an...@korobeynikov.info>> wrote:
>
> > In the good old llvmc, the -Wo flag could be used to pass arguments to the
> > optimizer. Is there a similar mechanism anywhere for clang? Is there also a
> > similar mechanism to -Wllc?
> -mlvm will handle all of them
>
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>
>
>
>
>
It's called -mllvm.
You can use it like this.
clang -mllvm -vectorize ...
Cheers
Tobi
> For example I have a shared/dynamic library which contains LLVM passes. I
> used to invoke them with llvmc like this:
>>>llvmc mycode.c -o mycode.o -c -opt -Wo,=-load,libFoo.dylib,-Foo
> Can this style of optimization be executed using -mllvm argument?
No. You cannot add additional passes this way, only pass 'ordinary' arguments.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University