From 88b075a664cc68cd1ebd138b16573e8157a37e5c Mon Sep 17 00:00:00 2001 From: "enzyme-ci-bot[bot]" <78882869+enzyme-ci-bot[bot]@users.noreply.github.com> Date: Fri, 31 Jan 2025 00:34:49 +0000 Subject: [PATCH] Regenerate MLIR Bindings --- src/mlir/Dialects/EnzymeXLA.jl | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/mlir/Dialects/EnzymeXLA.jl b/src/mlir/Dialects/EnzymeXLA.jl index 0ee73ded4..52ae4c508 100644 --- a/src/mlir/Dialects/EnzymeXLA.jl +++ b/src/mlir/Dialects/EnzymeXLA.jl @@ -56,4 +56,42 @@ function kernel_call( ) end +function memref2pointer(source::Value; result::IR.Type, location=Location()) + op_ty_results = IR.Type[result,] + operands = Value[source,] + owned_regions = Region[] + successors = Block[] + attributes = NamedAttribute[] + + return create_operation( + "enzymexla.memref2pointer", + location; + operands, + owned_regions, + successors, + attributes, + results=op_ty_results, + result_inference=false, + ) +end + +function pointer2memref(source::Value; result::IR.Type, location=Location()) + op_ty_results = IR.Type[result,] + operands = Value[source,] + owned_regions = Region[] + successors = Block[] + attributes = NamedAttribute[] + + return create_operation( + "enzymexla.pointer2memref", + location; + operands, + owned_regions, + successors, + attributes, + results=op_ty_results, + result_inference=false, + ) +end + end # enzymexla