Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/mlir/Dialects/EnzymeXLA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,11 @@ end
"""
`blas_syrk`

C := alpha*A*A^T + beta*C, or C := alpha*A^T*A + beta*C, where alpha and beta are scalars. C must be a n x n symmetric matrix.\"
C := alpha*A*A^T + beta*C, or C := alpha*A^T*A + beta*C, where alpha and beta are
scalars. C must be a n x n symmetric matrix.

If `fill` is present, then both the upper and lower triangles of the matrix are filled.
Otherwise the values in the non-uplo part of the matrix are undefined.
"""
function blas_syrk(
A::Value,
Expand All @@ -1084,6 +1088,7 @@ function blas_syrk(
output::IR.Type,
uplo,
transpose=nothing,
fill=nothing,
location=Location(),
)
op_ty_results = IR.Type[output,]
Expand All @@ -1092,6 +1097,7 @@ function blas_syrk(
successors = Block[]
attributes = NamedAttribute[namedattribute("uplo", uplo),]
!isnothing(transpose) && push!(attributes, namedattribute("transpose", transpose))
!isnothing(fill) && push!(attributes, namedattribute("fill", fill))

return create_operation(
"enzymexla.blas.syrk",
Expand Down
4 changes: 2 additions & 2 deletions src/mlir/libMLIR_h.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11647,8 +11647,8 @@ function enzymexlaLapackSideAttrGet(ctx, left_side)
)::MlirAttribute
end

function enzymexlaLapackUploAttrGet(ctx, up)
@ccall mlir_c.enzymexlaLapackUploAttrGet(ctx::MlirContext, up::UInt8)::MlirAttribute
function enzymexlaLapackUploAttrGet(ctx, mode)
@ccall mlir_c.enzymexlaLapackUploAttrGet(ctx::MlirContext, mode::Int32)::MlirAttribute
end

function enzymexlaQRAlgorithmAttrGet(ctx, mode)
Expand Down