aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorXiaolei Feng <76484843+Rayfxl@users.noreply.github.com>2025-08-01 01:54:14 +0800
committerGitHub <noreply@github.com>2025-07-31 13:54:14 -0400
commit1bc58851868ad1f8ac6313d9f2337ec827b85019 (patch)
tree1cf06adf680cdab60ca724b587865b6377d22435 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent7f93487862d98bf1c168babba87daf6224d8a46f (diff)
downloadllvm-1bc58851868ad1f8ac6313d9f2337ec827b85019.zip
llvm-1bc58851868ad1f8ac6313d9f2337ec827b85019.tar.gz
llvm-1bc58851868ad1f8ac6313d9f2337ec827b85019.tar.bz2
[MLIR][SPIRV] Add spirv.IsFinite and lower math.{isfinite,isinf,isnan} to spirv. (#151552)
This patch adds support for lowering several float classification ops from the Math dialect to the SPIR-V dialect. ### Highlights: - Introduced a new `spirv.IsFinite` operation corresponding to the SPIR-V `OpIsFinite` instruction. - Lowered `math.isfinite`, `math.isinf`, and `math.isnan` to SPIR-V using `CheckedElementwiseOpPattern`. - Added corresponding tests for op definition and conversion lowering. This addresses the discussion in: https://github.com/llvm/llvm-project/issues/150778 --- Let me know if any additional adjustments are needed! --------- Co-authored-by: Jakub Kuderski <kubakuderski@gmail.com>
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions