tensorflow / mlir

"Multi-Level Intermediate Representation" Compiler Infrastructure
1.74k stars 260 forks source link

[spirv] Add cast operations. #208

Closed denis0x0D closed 5 years ago

denis0x0D commented 5 years ago

This patch addresses https://github.com/tensorflow/mlir/issues/174

Add cast operations: OpConvertFToU, OpConvertFToS, OpConvertSToF, OpConvertUToF, OpUConvert, OpSConvert, OpSConvert.

@antiagainst @MaheshRavishankar can you please take a look? Thanks!

denis0x0D commented 5 years ago

squashed into one commit and rebased on master.