[flang-commits] [flang] [flang] Lowering fortran structured do-while loops to `scf.while` (PR #177476)

via flang-commits flang-commits at lists.llvm.org
Mon Jan 26 06:53:43 PST 2026


================
@@ -25,9 +25,108 @@ static llvm::cl::opt<bool> clDisableStructuredFir(
     "no-structured-fir", llvm::cl::desc("disable generation of structured FIR"),
     llvm::cl::init(false), llvm::cl::Hidden);
 
+namespace Fortran::lower {
+llvm::cl::opt<bool> lowerDoWhileToSCFWhile(
----------------
jeanPerier wrote:

better to keep it static here (comment above).

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


More information about the flang-commits mailing list