llvm-project/mlir/test/Target/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
..
arithmetic-ops.mlir
array.mlir
atomic-ops.mlir
barrier-ops.mlir [mlir][OpFormatGen] Format enum attribute cases as keywords when possible 2021-01-14 11:35:49 -08:00
bit-ops.mlir
cast-ops.mlir
composite-op.mlir
constant.mlir
cooperative-matrix-ops.mlir
debug.mlir
decorations.mlir
entry-point.mlir
execution-mode.mlir
function-call.mlir
global-variable.mlir
glsl-ops.mlir [mlir][spirv] Define spv.GLSL.Fma and add lowerings 2021-01-19 09:14:21 -05:00
group-ops.mlir [mlir][OpFormatGen] Format enum attribute cases as keywords when possible 2021-01-14 11:35:49 -08:00
logical-ops.mlir [mlir][spirv] Define spv.IsNan/spv.IsInf and add lowerings 2021-01-22 13:09:33 -05:00
loop.mlir
matrix.mlir
memory-ops.mlir
module.mlir
non-uniform-ops.mlir [mlir][OpFormatGen] Format enum attribute cases as keywords when possible 2021-01-14 11:35:49 -08:00
ocl-ops.mlir
phi.mlir
selection.mlir
spec-constant.mlir
struct.mlir
terminator.mlir
undef.mlir