From 6b49e7f821ea7a2ab82c6908fa06704fcb291600 Mon Sep 17 00:00:00 2001 From: "enzyme-ci-bot[bot]" <78882869+enzyme-ci-bot[bot]@users.noreply.github.com> Date: Tue, 14 Oct 2025 23:47:47 +0000 Subject: [PATCH] Regenerate MLIR Bindings --- src/mlir/Dialects/EnzymeXLA.jl | 34 ++++++++++++++++++++++++++++++++++ src/mlir/libMLIR_h.jl | 4 ++++ 2 files changed, 38 insertions(+) diff --git a/src/mlir/Dialects/EnzymeXLA.jl b/src/mlir/Dialects/EnzymeXLA.jl index ca396710ca..79a5cd298a 100755 --- a/src/mlir/Dialects/EnzymeXLA.jl +++ b/src/mlir/Dialects/EnzymeXLA.jl @@ -837,6 +837,40 @@ function stream2token(source::Value; result::IR.Type, location=Location()) ) end +""" +`lapack_symm` + +C := alpha*A*B + beta*C, or C := alpha*B*A + beta*C, where alpha and beta are scalars, A is a symmetric matrix\" +""" +function lapack_symm( + A::Value, + B::Value, + C::Value, + alpha::Value, + beta::Value; + output::IR.Type, + side, + uplo, + location=Location(), +) + op_ty_results = IR.Type[output,] + operands = Value[A, B, C, alpha, beta] + owned_regions = Region[] + successors = Block[] + attributes = NamedAttribute[namedattribute("side", side), namedattribute("uplo", uplo)] + + return create_operation( + "enzymexla.lapack.symm", + location; + operands, + owned_regions, + successors, + attributes, + results=op_ty_results, + result_inference=false, + ) +end + function wrap( operand::Value; result=nothing::Union{Nothing,IR.Type}, diff --git a/src/mlir/libMLIR_h.jl b/src/mlir/libMLIR_h.jl index 3955d63279..6e9e695241 100755 --- a/src/mlir/libMLIR_h.jl +++ b/src/mlir/libMLIR_h.jl @@ -11497,6 +11497,10 @@ function enzymexlaLapackSideAttrGet(ctx, left_side) )::MlirAttribute end +function enzymexlaLapackUploAttrGet(ctx, up) + @ccall mlir_c.enzymexlaLapackUploAttrGet(ctx::MlirContext, up::UInt8)::MlirAttribute +end + function enzymexlaQRAlgorithmAttrGet(ctx, mode) @ccall mlir_c.enzymexlaQRAlgorithmAttrGet(ctx::MlirContext, mode::Int32)::MlirAttribute end