[llvm-dev] [NPM] Register target specific pass with opt
Chen, Yuanfang via llvm-dev
llvm-dev at lists.llvm.org
Thu Sep 17 12:20:41 PDT 2020
Hi Ankit,
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?
- Yuanfang
________________________________________
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of Ankit Aggarwal via llvm-dev <llvm-dev at lists.llvm.org>
Sent: Thursday, September 17, 2020 12:14 PM
To: llvm-dev at lists.llvm.org
Subject: [llvm-dev] [NPM] Register target specific pass with opt
Hello LLVM community,
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?
Thanks
Ankit
More information about the llvm-dev
mailing list