Thanks, but I'm not sure I understand. I see no such flag in clang 2.9 nor couldn't I find any mention of it. What does it do? Harel Cain On Sun, Mar 4, 2012 at 15:03, Anton Korobeynikov <anton at 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120304/1a539789/attachment.html>
On 04/03/12 14:32, Harel Cain wrote:> Thanks, but I'm not sure I understand. I see no such flag in clang 2.9 nor > couldn't I find any mention of it. What does it do?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 <anton at korobeynikov.info > <mailto:anton at 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 > > > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
On 03/04/2012 02:32 PM, Harel Cain wrote:> Thanks, but I'm not sure I understand. I see no such flag in clang 2.9 > nor couldn't I find any mention of it. What does it do?It's called -mllvm. You can use it like this. clang -mllvm -vectorize ... Cheers Tobi
I have tried to invoke a transformation/optimization pass using -mllvm, without success. I might be missing something. 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? Thx, PMon On Sun, Mar 4, 2012 at 3:48 PM, Tobias Grosser <tobias at grosser.es> wrote:> On 03/04/2012 02:32 PM, Harel Cain wrote: > > Thanks, but I'm not sure I understand. I see no such flag in clang 2.9 > > nor couldn't I find any mention of it. What does it do? > > It's called -mllvm. > > You can use it like this. > > clang -mllvm -vectorize ... > > Cheers > Tobi > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120304/4480a4f2/attachment.html>