[llvm] [SPIR-V] Implement SPV_KHR_float_controls2 (PR #146941)
Dmitry Sidorov via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 6 09:18:04 PDT 2025
================
@@ -995,4 +1033,22 @@ unsigned getArrayComponentCount(const MachineRegisterInfo *MRI,
return foldImm(ResType->getOperand(2), MRI);
}
+size_t computeFPFastMathDefaultInfoVecIndex(size_t BitWidth) {
+ switch (BitWidth) {
+ case 16: // half
+ return 0;
+ case 32: // float
+ return 1;
+ case 64: // double
+ return 2;
+ case 128: // fp128
----------------
MrSidims wrote:
How does SPIR-V BE handle 128-bit fp type?
https://github.com/llvm/llvm-project/pull/146941
More information about the llvm-commits
mailing list