We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1faa5e2 commit 2bab814Copy full SHA for 2bab814
mlir/test/python/ir/operation.py
@@ -1187,3 +1187,14 @@ def callback(op):
1187
module.operation.walk(callback)
1188
except RuntimeError:
1189
print("Exception raised")
1190
+
1191
1192
+# CHECK-LABEL: TEST: testGetOwnerConcreteOpview
1193
+@run
1194
+def testGetOwnerConcreteOpview():
1195
+ with Context() as ctx, Location.unknown():
1196
+ module = Module.create()
1197
+ with InsertionPoint(module.body):
1198
+ a = arith.ConstantOp(value=42, result=IntegerType.get_signless(32))
1199
+ r = arith.AddIOp(a, a, overflowFlags=arith.IntegerOverflowFlags.nsw)
1200
+ assert isinstance(r.operands[0].owner, arith.ConstantOp)
0 commit comments