[all-commits] [llvm/llvm-project] 4e2131: [SPIRV] Add FloatControl2 capability (#144371)
Steven Perron via All-commits
all-commits at lists.llvm.org
Wed Jul 2 05:49:19 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4e213159af9eea0716d2cdfbae2c482176608042
https://github.com/llvm/llvm-project/commit/4e213159af9eea0716d2cdfbae2c482176608042
Author: Steven Perron <stevenperron at google.com>
Date: 2025-07-02 (Wed, 02 Jul 2025)
Changed paths:
M llvm/docs/SPIRVUsage.rst
M llvm/lib/Target/SPIRV/SPIRVCommandLine.cpp
M llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
M llvm/lib/Target/SPIRV/SPIRVSymbolicOperands.td
A llvm/test/CodeGen/SPIRV/capability-FloatControl2.ll
Log Message:
-----------
[SPIRV] Add FloatControl2 capability (#144371)
Add handling for FPFastMathMode in SPIR-V shaders. This is a first pass
that
simply does a direct translation when the proper extension is available.
This will unblock work for HLSL. However, it is not a full solution.
The default math mode for spir-v is determined by the API. When
targeting Vulkan many of the fast math options are assumed. We should do
something particular when targeting Vulkan.
We will also need to handle the hlsl "precise" keyword correctly when
FPFastMathMode is not available.
Unblockes https://github.com/llvm/llvm-project/issues/140739, but we are
keeing it open to track the remaining issues mentioned above.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list