[llvm-dev] Integrating llvm pass with pass manager
陳韋任 via llvm-dev
llvm-dev at lists.llvm.org
Thu Jan 11 15:28:57 PST 2018
`-mypass` should be only recognize by the backend part (i.e. llvm). You
should add `-mllvm` to tell clang the following argument have to be passed
to the backend part.
2018-01-08 8:02 GMT+08:00 sangeeta chowdhary via llvm-dev <
llvm-dev at lists.llvm.org>:
> Hello,
>
> I have followed steps given in - https://stackoverflow.com/
> questions/29910051/integrating-llvm-passes/48142693#48142693, to
> integrate my pass with pass manager and run it with clang. I am able to
> run my pass with opt - opt -mypass but when I try to run it with clang, I
> always get an error - unknown argument: '-mypass'. Please help me for the
> same. I would be really grateful.
>
> Regards,
> Sangeeta
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
--
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/20180112/1a7ca533/attachment.html>
More information about the llvm-dev
mailing list