<div dir="ltr">There is currently not yet an equivalent for adjustPassManager() in NPM, see <a href="https://bugs.llvm.org/show_bug.cgi?id=47244">https://bugs.llvm.org/show_bug.cgi?id=47244</a>. That will have to be worked out before the NPM flip.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 17, 2020 at 12:49 PM Ankit Aggarwal via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Chen,<br>
<br>
Thanks for the quick response.<br>
<br>
Halide which is a DSL for image processing has moved to the New Pass Manager. Earlier we were using TargetMachine's adjustPassManager to run HexagonVectorLoopCarriedReusePass. Now we want to be able to run this pass with the New Pass Manager.<br>
<br>
Regards<br>
Ankit<br>
<br>
-----Original Message-----<br>
From: Chen, Yuanfang <<a href="mailto:Yuanfang.Chen@sony.com" target="_blank">Yuanfang.Chen@sony.com</a>><br>
Sent: Thursday, September 17, 2020 12:21 PM<br>
To: <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>; Ankit Aggarwal <<a href="mailto:aankit@quicinc.com" target="_blank">aankit@quicinc.com</a>><br>
Subject: [EXT] Re: [NPM] Register target specific pass with opt<br>
<br>
Hi Ankit,<br>
<br>
Testing target specific passes using opt+NPM is not currently supported. The work is still work-in-progress. What is the motivation for doing this?<br>
<br>
- Yuanfang<br>
<br>
________________________________________<br>
From: llvm-dev <<a href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank">llvm-dev-bounces@lists.llvm.org</a>> on behalf of Ankit Aggarwal via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>><br>
Sent: Thursday, September 17, 2020 12:14 PM<br>
To: <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
Subject: [llvm-dev] [NPM] Register target specific pass with opt<br>
<br>
Hello LLVM community,<br>
<br>
I was trying to port a target specific loop transformation pass (HexagonVectorLoopCarriedReusePass) to the New Pass Manager. However, I could not figure out a way to register this pass with opt. I can see that llvm/lib/Passes/PassRegistry.def is the registry for target independent passes. Can anyone point me to an example/API which can help me in registering this pass so that I can use it -passes option in opt?<br>
<br>
Thanks<br>
Ankit<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>