[llvm] [RISCV][NewPM] Port RISCVCodeGenPrepare to the new pass manager (PR #168381)
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 18 22:26:41 PST 2025
================
@@ -26,8 +26,16 @@ class RISCVRegisterBankInfo;
class RISCVSubtarget;
class RISCVTargetMachine;
-FunctionPass *createRISCVCodeGenPreparePass();
-void initializeRISCVCodeGenPreparePass(PassRegistry &);
+class RISCVCodeGenPreparePass : public PassInfoMixin<RISCVCodeGenPreparePass> {
+private:
+ const RISCVTargetMachine &TM;
----------------
asb wrote:
I've made that change. FWIW this is where I've followed in the footsteps of the AMDGPU passes.
CC @arsenm
https://github.com/llvm/llvm-project/pull/168381
More information about the llvm-commits
mailing list