[llvm-dev] Integrating llvm pass with pass manager

陳韋任 via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 12 18:59:52 PST 2018


Do you pull clang under llvm/tools and compile it as well? In theory, if
`opt` recognize the option, so does `clang -mllvm`.


2018-01-12 8:47 GMT+08:00 sangeeta chowdhary <sangitachowdhary at gmail.com>:

> Hello,
>
> I have tried giving this option like this
>
> clang -c -emit-llvm -mllvm -rdetector hello.c -c -o hello.bc
> but I am getting error " Unknown command line argument '-rdetector’.”
>
> Although same option work with opt -
> opt -rdetector hello.ll
>
>
>
> On Jan 11, 2018, at 6:41 PM, sangeeta chowdhary <
> sangitachowdhary at gmail.com> wrote:
>
> Can you please tell me when I need to give this option and how. I am sorry
> I am new to this. Thank you so much for responding.
>
> On Jan 11, 2018, at 6:28 PM, 陳韋任 <chenwj.cs97g at g2.nctu.edu.tw> wrote:
>
> -mllvm
>
>
>
>


-- 
Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180113/c9b780f5/attachment.html>


More information about the llvm-dev mailing list