Skip to content

Commit 29b0eac

Browse files
Regenerate MLIR Bindings (#621)
Co-authored-by: enzyme-ci-bot[bot] <78882869+enzyme-ci-bot[bot]@users.noreply.github.com>
1 parent 51a1f46 commit 29b0eac

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/mlir/Dialects/TPU.jl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,25 @@ function erase_memref_layout(operand::Value; result::IR.Type, location=Location(
402402
)
403403
end
404404

405+
function fptosi(input::Value; output::IR.Type, rounding_mode, location=Location())
406+
op_ty_results = IR.Type[output,]
407+
operands = Value[input,]
408+
owned_regions = Region[]
409+
successors = Block[]
410+
attributes = NamedAttribute[namedattribute("rounding_mode", rounding_mode),]
411+
412+
return create_operation(
413+
"tpu.fptosi",
414+
location;
415+
operands,
416+
owned_regions,
417+
successors,
418+
attributes,
419+
results=op_ty_results,
420+
result_inference=false,
421+
)
422+
end
423+
405424
function gather(source::Value; output::IR.Type, indices, dimension, location=Location())
406425
op_ty_results = IR.Type[output,]
407426
operands = Value[source,]

0 commit comments

Comments
 (0)