@@ -97,12 +97,12 @@ llvm-project/mlir/test/IR/print-ir-nesting.mlir`:
97
97
98
98
```mlir
99
99
"builtin.module"() ( {
100
- %0 :4 = "dialect.op1"() {"attribute name" = 42 : i32} : () -> (i1, i16, i32, i64)
100
+ %results :4 = "dialect.op1"() {"attribute name" = 42 : i32} : () -> (i1, i16, i32, i64)
101
101
"dialect.op2"() ( {
102
- "dialect.innerop1"(%0 #0, %0 #1) : (i1, i16) -> ()
102
+ "dialect.innerop1"(%results #0, %results #1) : (i1, i16) -> ()
103
103
}, {
104
104
"dialect.innerop2"() : () -> ()
105
- "dialect.innerop3"(%0 #0, %0 #2, %0 #3)[^bb1, ^bb2] : (i1, i32, i64) -> ()
105
+ "dialect.innerop3"(%results #0, %results #2, %results #3)[^bb1, ^bb2] : (i1, i32, i64) -> ()
106
106
^bb1(%1: i32): // pred: ^bb0
107
107
"dialect.innerop4"() : () -> ()
108
108
"dialect.innerop5"() : () -> ()
@@ -125,6 +125,8 @@ visiting op: 'builtin.module' with 0 operands and 0 results
125
125
- 'attribute name' : '42 : i32'
126
126
0 nested regions:
127
127
visiting op: 'dialect.op2' with 0 operands and 0 results
128
+ 1 attributes:
129
+ - 'other attribute' : '42 : i64'
128
130
2 nested regions:
129
131
Region with 1 blocks:
130
132
Block with 0 arguments, 0 successors, and 1 operations
@@ -146,7 +148,6 @@ visiting op: 'builtin.module' with 0 operands and 0 results
146
148
0 nested regions:
147
149
visiting op: 'dialect.innerop7' with 0 operands and 0 results
148
150
0 nested regions:
149
- 0 nested regions:
150
151
```
151
152
152
153
## Other IR Traversal Methods
0 commit comments