[Mlir-commits] [mlir] [mlir] Make C/Python ExecutionEngine constructible with an Operation. (PR #86329)
Jacques Pienaar
llvmlistbot at llvm.org
Tue Apr 9 02:09:29 PDT 2024
================
@@ -21,17 +21,46 @@ def run(f):
assert Context._get_live_count() == 0
-# Verify capsule interop.
-# CHECK-LABEL: TEST: testCapsule
-def testCapsule():
+# Verify capsule interop for passing an Operation.
+# CHECK-LABEL: TEST: testAcceptsOperation
+def testAcceptsOperation():
+ with Context():
+ module = Operation.parse(
+ r"""
+builtin.module {
+llvm.func @none() {
----------------
jpienaar wrote:
Nit: indent body
https://github.com/llvm/llvm-project/pull/86329
More information about the Mlir-commits
mailing list