Implement FPToUI and UIToFP ops in standard dialect
authorMars Saxman <mars.saxman@intel.com>
Wed, 19 Aug 2020 20:45:18 +0000 (22:45 +0200)
committerAlex Zinenko <zinenko@google.com>
Wed, 19 Aug 2020 20:49:09 +0000 (22:49 +0200)
commitd34df52377fda5452a8c244a8378957eaed66700
tree40da14bf0da538cc8fabadcbfdae8f263581ead0
parent28ccc52c4045f3d142e6f83d6f64d359b1c12808
Implement FPToUI and UIToFP ops in standard dialect

Add the unsigned complements to the existing FPToSI and SIToFP operations in the
standard dialect, with one-to-one lowerings to the corresponding LLVM operations.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D85557
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/test/Conversion/StandardToLLVM/convert-to-llvmir.mlir