[flang-commits] [flang] [FIRToMemRef] add CL option to disable FIRToMemRef for debugging (PR #184658)
Susan Tan ス-ザン タン via flang-commits
flang-commits at lists.llvm.org
Thu Mar 5 09:37:25 PST 2026
SusanTan wrote:
> Would it work for you if this was done like it is done with other FIR passes which is done by plugging the passes via an addXXX wrapper that uses `addPassConditionally` with a cl::opt to control adding the passes?
>
> See for instance [addBoxedProcedurePass](https://github.com/llvm/llvm-project/blob/768182dff6ec12a91beae27fb2f5c2f20f6d4993/flang/lib/Optimizer/Passes/Pipelines.cpp#L146)
>
> If this works for your use case, I would favor it for consistency with how this is done with other passes.
Thank you Jean! I think I will just add this downstream. thank you!
https://github.com/llvm/llvm-project/pull/184658
More information about the flang-commits
mailing list