[llvm-dev] Need help with source code
Madhur Amilkanthwar via llvm-dev
llvm-dev at lists.llvm.org
Sat Sep 19 10:01:43 PDT 2020
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.
On Sat, Sep 19, 2020, 9:34 PM S M via llvm-dev <llvm-dev at lists.llvm.org>
wrote:
> Hi,
> Hope you're doing well.
> I'm a student at Indian Institute of Technology, Kanpur. Would you be so
> kind to help me with the following task?
>
> I need to somehow use the LLVM source code I have built to print extra
> information in the IR generated by LLVM *during -emit-llvm stage.*
> The extra information must not get printed when running clang directly on
> the file.
> $ clang++ code.cpp -o code.out && ./code.out
> (this does not print the EXTRA information)
> I have a sample c++ code named code.cpp and the extra information
> generated by *-emit-llvm* will be something like:
>
> <<<<===================IR code=================================>>>>
> EXTRA information
> <<<<<==================IR code=================================>>>>
>
> Thank You.
> Sam Maurya
> M.Tech CSE,
> IIT Kanpur, India
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200919/7e0d7de0/attachment.html>
More information about the llvm-dev
mailing list