File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,25 @@ function erase_memref_layout(operand::Value; result::IR.Type, location=Location(
402
402
)
403
403
end
404
404
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
+
405
424
function gather (source:: Value ; output:: IR.Type , indices, dimension, location= Location ())
406
425
op_ty_results = IR. Type[output,]
407
426
operands = Value[source,]
You can’t perform that action at this time.
0 commit comments