forked from OSchip/llvm-project
e27197f360
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 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
LegalizeStandardForSPIRV.cpp | ||
StandardToSPIRV.cpp | ||
StandardToSPIRVPass.cpp |