<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>