[Mlir-commits] [mlir] [MLIR] Add two-phase region parsing API to OpAsmParser (PR #190545)

Henrich Lauko llvmlistbot at llvm.org
Mon Apr 6 03:55:50 PDT 2026


xlauko wrote:

For function signature you have quite common representation `(%arg1 : type1, %arg2 : type2, %arg3 : type3, ...) -> (return-types)`
which you can uniformly abbrevieate in ODS as `function-signature` for instance.

But with loops you have various forms:
- `scf.while (%arg1 = %init1) : (f32) -> i64`
- `scf.for %i = 0 to 128 step %c1`
-  `scf.parallel (%iv) = (%lb) to (%ub) step (%step) init (%init, %init)`

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


More information about the Mlir-commits mailing list