[flang-commits] [flang] [FIRToMemRef] add CL option to disable FIRToMemRef for debugging (PR #184658)

via flang-commits flang-commits at lists.llvm.org
Thu Mar 5 01:57:49 PST 2026


https://github.com/jeanPerier commented:

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.


https://github.com/llvm/llvm-project/pull/184658


More information about the flang-commits mailing list