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
6 changes: 6 additions & 0 deletions src/mlir/Dialects/EnzymeXLA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ function lapack_gesdd(
Vt::IR.Type,
info::IR.Type,
full=nothing,
compute_uv=nothing,
location=Location(),
)
op_ty_results = IR.Type[U, S, Vt, info]
Expand All @@ -427,6 +428,7 @@ function lapack_gesdd(
successors = Block[]
attributes = NamedAttribute[]
!isnothing(full) && push!(attributes, namedattribute("full", full))
!isnothing(compute_uv) && push!(attributes, namedattribute("compute_uv", compute_uv))

return create_operation(
"enzymexla.lapack.gesdd",
Expand All @@ -447,6 +449,7 @@ function lapack_gesvd(
Vt::IR.Type,
info::IR.Type,
full=nothing,
compute_uv=nothing,
location=Location(),
)
op_ty_results = IR.Type[U, S, Vt, info]
Expand All @@ -455,6 +458,7 @@ function lapack_gesvd(
successors = Block[]
attributes = NamedAttribute[]
!isnothing(full) && push!(attributes, namedattribute("full", full))
!isnothing(compute_uv) && push!(attributes, namedattribute("compute_uv", compute_uv))

return create_operation(
"enzymexla.lapack.gesvd",
Expand All @@ -475,6 +479,7 @@ function lapack_gesvj(
Vt::IR.Type,
info::IR.Type,
full=nothing,
compute_uv=nothing,
location=Location(),
)
op_ty_results = IR.Type[U, S, Vt, info]
Expand All @@ -483,6 +488,7 @@ function lapack_gesvj(
successors = Block[]
attributes = NamedAttribute[]
!isnothing(full) && push!(attributes, namedattribute("full", full))
!isnothing(compute_uv) && push!(attributes, namedattribute("compute_uv", compute_uv))

return create_operation(
"enzymexla.lapack.gesvj",
Expand Down
6 changes: 6 additions & 0 deletions src/mlir/libMLIR_h.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11665,4 +11665,10 @@ function enzymexlaGeluApproximationAttrGet(ctx, mode)
)::MlirAttribute
end

function enzymexlaGuaranteedAnalysisResultAttrGet(ctx, mode)
@ccall mlir_c.enzymexlaGuaranteedAnalysisResultAttrGet(
ctx::MlirContext, mode::Int32
)::MlirAttribute
end

const MLIR_CAPI_DWARF_ADDRESS_SPACE_NULL = -1