Mingming Liu via llvm-dev
2021-Nov-12 18:26 UTC
[llvm-dev] status of CodeGen in new Pass Manager
Hi, This is a newbie question around CodeGen related passes and the current status in new Pass Manager. From https://llvm.org/docs/NewPassManager.html#status-of-the-new-and-legacy-pass-managers, there are ongoing efforts to make the codegen pipeline work in the new Pass Manager (which is great!). Searching in the bug list ( https://bugs.llvm.org/buglist.cgi?component=opt&list_id=226453&product=tools&query_format=advanced&resolution=---&short_desc=codegen&short_desc_type=allwordssubstr) gives no result. I'm wondering if anyone has more information on the current status of CodeGen in the new Pass Manager (a tracking bug or other pointers)? The context is that, I'm using opt CLI (by default new PM is used), and surprised that codegenprepare pass doesn't run, so dig down and having more questions :-) Any related information will be appreciated! -- Thanks, Mingming -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211112/2e39ac04/attachment.html>
Mircea Trofin via llvm-dev
2021-Nov-12 18:51 UTC
[llvm-dev] status of CodeGen in new Pass Manager
Unless I'm missing something, llc runs codegen, opt runs the optimization passes up to machine lowering. In other words - try llc instead of opt On Fri, Nov 12, 2021 at 10:27 AM Mingming Liu via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hi, > This is a newbie question around CodeGen related passes and the current > status in new Pass Manager. > > From > https://llvm.org/docs/NewPassManager.html#status-of-the-new-and-legacy-pass-managers, > there are ongoing efforts to make the codegen pipeline work in the new Pass > Manager (which is great!). Searching in the bug list ( > https://bugs.llvm.org/buglist.cgi?component=opt&list_id=226453&product=tools&query_format=advanced&resolution=---&short_desc=codegen&short_desc_type=allwordssubstr) > gives no result. > > I'm wondering if anyone has more information on the current status of > CodeGen in the new Pass Manager (a tracking bug or other pointers)? > > The context is that, I'm using opt CLI (by default new PM is used), and > surprised that codegenprepare pass doesn't run, so dig down and having more > questions :-) > > Any related information will be appreciated! > > -- > Thanks, > Mingming > _______________________________________________ > 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/20211112/8a95bfb8/attachment.html>
Hi Mingming, About the status of using the new pass manager for the codegen pipeline, the RFC was here (http://lists.llvm.org/pipermail/llvm-dev/2020-July/143309.html) but there was no Bugzilla ticket for it, sorry! I've just created one https://bugs.llvm.org/show_bug.cgi?id=52493 with updates for anyone who might be interested. I haven't been able to follow up on it for a while but a few in-flight patches are still relevant and in good shape (check PR52493). I'll see if I could push them forward in the near future. About codegen-prepare, I don't have much to add other than Arthur's answer, except that D85168 would enable the use case, although it has some dependencies so it's not like that it could be landed soon. HTH, - Yuanfang ________________________________________ From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of Mingming Liu via llvm-dev <llvm-dev at lists.llvm.org> Sent: Friday, November 12, 2021 10:26 AM To: llvm-dev at lists.llvm.org Subject: [llvm-dev] status of CodeGen in new Pass Manager Hi, This is a newbie question around CodeGen related passes and the current status in new Pass Manager. From https://llvm.org/docs/NewPassManager.html#status-of-the-new-and-legacy-pass-managers<https://urldefense.com/v3/__https://llvm.org/docs/NewPassManager.html*status-of-the-new-and-legacy-pass-managers__;Iw!!JmoZiZGBv3RvKRSx!tI8u93htbfzW8OQkAVIdBlQTDHabCnLJtB2D5fD_OjBuK1ACPDpumEw6GK_dphuBDA$>, there are ongoing efforts to make the codegen pipeline work in the new Pass Manager (which is great!). Searching in the bug list (https://bugs.llvm.org/buglist.cgi?component=opt&list_id=226453&product=tools&query_format=advanced&resolution=---&short_desc=codegen&short_desc_type=allwordssubstr<https://urldefense.com/v3/__https://bugs.llvm.org/buglist.cgi?component=opt&list_id=226453&product=tools&query_format=advanced&resolution=---&short_desc=codegen&short_desc_type=allwordssubstr__;!!JmoZiZGBv3RvKRSx!tI8u93htbfzW8OQkAVIdBlQTDHabCnLJtB2D5fD_OjBuK1ACPDpumEw6GK-25d1S-w$>) gives no result. I'm wondering if anyone has more information on the current status of CodeGen in the new Pass Manager (a tracking bug or other pointers)? The context is that, I'm using opt CLI (by default new PM is used), and surprised that codegenprepare pass doesn't run, so dig down and having more questions :-) Any related information will be appreciated! -- Thanks, Mingming