diff options
author | Jakub Kuderski <jakub@nod-labs.com> | 2024-03-28 14:13:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 14:13:04 -0400 |
commit | d61ec513c42005bb071eb15386deb5de585ff267 (patch) | |
tree | 0d36d923cbf65f62c6a9e394e0d117d2f5514df6 /clang/lib/Frontend/TestModuleFileExtension.cpp | |
parent | 599027857e1007ff402094a3a550b4832f3f5146 (diff) | |
download | llvm-d61ec513c42005bb071eb15386deb5de585ff267.zip llvm-d61ec513c42005bb071eb15386deb5de585ff267.tar.gz llvm-d61ec513c42005bb071eb15386deb5de585ff267.tar.bz2 |
[mlir][spirv] Add IsInf/IsNan expansion for WebGPU (#86903)
These non-finite math ops are supported by SPIR-V but not by WGSL.
Assume finite floating point values and expand these ops into `false`.
Previously, this worked by adding fast math flags during conversion from
arith to spirv, but this got removed in
https://github.com/llvm/llvm-project/pull/86578.
Also do some misc cleanups in the surrounding code.
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions