<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">`-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.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-08 8:02 GMT+08:00 sangeeta chowdhary via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><span style="font-size:14px">Hello,</span><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">I have followed steps given in -<span class="m_6680529918973216694Apple-tab-span" style="white-space:pre-wrap"> </span><a href="https://stackoverflow.com/questions/29910051/integrating-llvm-passes/48142693#48142693" target="_blank">https://stackoverflow.com/<wbr>questions/29910051/<wbr>integrating-llvm-passes/<wbr>48142693#48142693</a>, to integrate my pass with pass manager and run it with clang. I am <span style="color:rgb(36,39,41);background-color:rgb(255,255,255)">able to run my pass with opt - </span><code style="margin:0px;padding:1px 5px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;background-color:rgb(239,240,241);white-space:pre-wrap;color:rgb(36,39,41)">opt -mypass</code><span style="color:rgb(36,39,41);background-color:rgb(255,255,255)"> but when I try to run it with clang, I always get an error - </span><code style="margin:0px;padding:1px 5px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;background-color:rgb(239,240,241);white-space:pre-wrap;color:rgb(36,39,41)">unknown argument: '-mypass'</code><span style="color:rgb(36,39,41);background-color:rgb(255,255,255)">. Please help me for the same. I would be really grateful.</span></span></div><div><span style="color:rgb(36,39,41);background-color:rgb(255,255,255);font-size:14px"><br></span></div><div><span style="color:rgb(36,39,41);background-color:rgb(255,255,255);font-size:14px">Regards,</span></div><div><span style="color:rgb(36,39,41);background-color:rgb(255,255,255);font-size:14px">Sangeeta</span></div></div><br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Wei-Ren Chen (陳韋任)<br>Homepage: <a href="https://people.cs.nctu.edu.tw/~chenwj" target="_blank">https://people.cs.nctu.edu.tw/~chenwj</a></div></div></div>
</div>