llvm-project/mlir/test/Dialect/SPIRV
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
..
IR [mlir][spirv] Define spv.IsNan/spv.IsInf and add lowerings 2021-01-22 13:09:33 -05:00
Linking/ModuleCombiner [mlir][spirv] NFC: Shuffle code around to better follow convention 2020-12-17 11:03:26 -05:00
Transforms [mlir][OpFormatGen] Format enum attribute cases as keywords when possible 2021-01-14 11:35:49 -08:00