PenYiWang via llvm-dev
2020-Feb-25 06:19 UTC
[llvm-dev] How to print all pass when using -flto floag ?
Hi We knew that "clang -mllvm -debug-pass=Structure ..." can print all pass' name. But, when we use LTO , -flto flag and gold plugin. I found that the option " -debug-pass=Structure" would not pass to ld. so it would not print all the LTO pass's name. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200225/f814bad3/attachment.html>
Hiroshi Yamauchi via llvm-dev
2020-Feb-25 16:49 UTC
[llvm-dev] How to print all pass when using -flto floag ?
I am not sure but passing either of "-Wl,-mllvm,-debug-pass=Structure" "-Wl,-mllvm,-plugin-opt,-debug-pass=Structure" "-Wl,-mllvm,-plugin-opt=-debug-pass=Structure" may work. On Mon, Feb 24, 2020 at 10:20 PM PenYiWang via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hi > > We knew that "clang -mllvm -debug-pass=Structure ..." can print all pass' > name. > > But, > > when we use LTO , -flto flag and gold plugin. > > I found that the option " -debug-pass=Structure" would not pass to ld. > > so it would not print all the LTO pass's name. > > > _______________________________________________ > 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/20200225/ec6184eb/attachment.html>
PenYiWang via llvm-dev
2020-Feb-27 11:22 UTC
[llvm-dev] How to print all pass when using -flto floag ?
Thank You~ it works Hiroshi Yamauchi <yamauchi at google.com> 於 2020年2月26日 週三 上午12:49寫道:> I am not sure but passing either of > > "-Wl,-mllvm,-debug-pass=Structure" > "-Wl,-mllvm,-plugin-opt,-debug-pass=Structure" > "-Wl,-mllvm,-plugin-opt=-debug-pass=Structure" > > may work. > > On Mon, Feb 24, 2020 at 10:20 PM PenYiWang via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hi >> >> We knew that "clang -mllvm -debug-pass=Structure ..." can print all >> pass' name. >> >> But, >> >> when we use LTO , -flto flag and gold plugin. >> >> I found that the option " -debug-pass=Structure" would not pass to ld. >> >> so it would not print all the LTO pass's name. >> >> >> _______________________________________________ >> 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/20200227/6b01c0c9/attachment.html>