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

Henrich Lauko llvmlistbot at llvm.org
Mon Apr 6 04:04:34 PDT 2026


xlauko wrote:

I guess we would like to have something like, for example fo scf.for:

```
region-arg($body) `=` $lowerBound `to` $upperBound` step $step `iter_args` `(` region-arg($body) `=` $init `)`
region-body($body)
```

Underneath I imagine this would use two phase parser 1. parse region arguments 2. parse body and forward its parsed arguments to it.

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


More information about the Mlir-commits mailing list