I want to check debug output of "PrologEpilogInserter" machine pass, and I have seen in the code that there are various `DEBUG` macros added. However, there is no `-debug` option present for `llc` like it is for `opt`. Closest option I saw after seeing output of `llc --help-list` is `-verify-debug-info` but that does not give any output. Regards, Meet. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180321/a470d8f4/attachment.html>
llc accepts all the -debug variants when built with asserts (or debug build). It will accept -debug as well as -debug=prologepilog for your case. On Wed, Mar 21, 2018 at 7:27 AM, Meet Udeshi via llvm-dev < llvm-dev at lists.llvm.org> wrote:> I want to check debug output of "PrologEpilogInserter" machine pass, and I > have seen in the code that there are various `DEBUG` macros added. > > However, there is no `-debug` option present for `llc` like it is for > `opt`. Closest option I saw after seeing output of `llc --help-list` is > `-verify-debug-info` but that does not give any output. > > Regards, > Meet. > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://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/20180321/f1f74213/attachment.html>
I later realised that it wasn't enabled by default and I will have to rebuild a debug version of LLVM. It would probably help to mention that somewhere on this page: https://llvm.org/docs/CommandGuide/llc.html Thanks Nemanja! Regards, Meet. On Wed, Mar 21, 2018 at 11:12 PM Nemanja Ivanovic <nemanja.i.ibm at gmail.com> wrote:> llc accepts all the -debug variants when built with asserts (or debug > build). It will accept -debug as well as -debug=prologepilog for your case. > > On Wed, Mar 21, 2018 at 7:27 AM, Meet Udeshi via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> I want to check debug output of "PrologEpilogInserter" machine pass, and >> I have seen in the code that there are various `DEBUG` macros added. >> >> However, there is no `-debug` option present for `llc` like it is for >> `opt`. Closest option I saw after seeing output of `llc --help-list` is >> `-verify-debug-info` but that does not give any output. >> >> Regards, >> Meet. >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://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/20180321/3bf57e42/attachment.html>