llvm-project/mlir/test/Conversion/StandardToSPIRV
Lei Zhang e27197f360 [mlir][spirv] Define spv.IsNan/spv.IsInf and add lowerings
spv.Ordered/spv.Unordered are meant for OpenCL Kernel capability.
For Vulkan Shader capability, we should use spv.IsNan to check
whether a number is NaN.

Add a new pattern for converting `std.cmpf ord|uno` to spv.IsNan
and bumped the pattern converting to spv.Ordered/spv.Unordered
to a higher benefit. The SPIR-V target environment will properly
select between these two patterns.

Reviewed By: mravishankar

Differential Revision: https://reviews.llvm.org/D95237
2021-01-22 13:09:33 -05:00
..
alloc.mlir [MLIR][SPIRV] Rename `spv._address_of` to `spv.mlir.addressof` 2020-11-17 12:12:27 -05:00
legalization.mlir [spirv] Fix legalize standard to spir-v for transfer ops 2020-10-21 13:56:01 -07:00
std-ops-to-spirv.mlir [mlir][spirv] Define spv.IsNan/spv.IsInf and add lowerings 2021-01-22 13:09:33 -05:00
std-types-to-spirv.mlir [MLIR][SPIRV] Support identified and recursive structs. 2020-10-13 10:18:21 -04:00
subview-to-spirv.mlir [mlir][spirv] Adapt subview legalization to the updated op semantics. 2020-05-20 12:00:21 -07:00