<div dir="auto">I think the question is vague. When do you want the extra information to be printed? If you don't want it to be printed in default mode then you may be able to add a command line option and invoke it appropriately. <div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 19, 2020, 9:34 PM S M via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,</div><div dir="ltr">Hope you're doing well.</div><div dir="ltr"><div>I'm a student at Indian Institute of Technology, Kanpur. Would you be so kind to help me with the following task?</div><div><br></div><div>I need to somehow use the LLVM source code I have built to print extra information in the IR generated by LLVM <b>during -emit-llvm stage.</b></div><div><div>The extra information must not get printed when running clang directly on the file. </div><div>$ clang++ code.cpp -o code.out && ./code.out </div><div>(this does not print the EXTRA information)</div></div><div> I have a sample c++ code named code.cpp and the extra information generated by <strong style="color:rgb(45,59,69);font-family:"Lato Extended",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px">-emit-llvm</strong> will be something like:</div><div><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13.6px;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;background-color:rgb(246,248,250);border-radius:6px;color:rgb(36,41,46)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;padding:0px;margin:0px;background:initial;border-radius:6px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit"><<<<===================IR code=================================>>>>
EXTRA information
<<<<<==================IR code=================================>>>></code></pre><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13.6px;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;background-color:rgb(246,248,250);border-radius:6px;color:rgb(36,41,46)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;padding:0px;margin:0px;background:initial;border-radius:6px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit">Thank You.
Sam Maurya
M.Tech CSE,
IIT Kanpur, India</code></pre></div></div></div></div></div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>