[LLVMdev] Passing arguments to opt via clang

Anton Korobeynikov
2012-03-04T15:57:06Z

Hello

> 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