[LLVMdev] How To Pass An Command Line Option To The Pass
Tobias von Koch
tobias.von.koch at gmail.com
Tue Feb 21 02:44:12 PST 2012
Hi Sevak,
You can use the cl::opt<> template to declare your options inside your LLVM
pass. When calling clang, you can then pass options using -mllvm (e.g.
clang -mllvm -my-option=1).
Tobias
On Tue, Feb 21, 2012 at 09:41, Sevak Sargsyan <sevaksargsyan777 at gmail.com>wrote:
> Hi all,
>
> I have a problem with passing multiple option(-flag=aaa/bbb) from clang to
> llvm,
> I don't know how to parse it, should I parse it in clang and pass it
> to llvm or should I parse it in llvm pass where I use it,
> could you help me.
>
> Thanks in advance,
> Sevak.
> _______________________________________________
> 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/20120221/97a784f2/attachment.html>
More information about the llvm-dev
mailing list