[clang] [llvm] [HLSL] Implement isfinite() intrinsic (PR #225947)

Dan Brown via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 30 19:50:24 PDT 2026


================
@@ -3433,11 +3433,38 @@ bool SPIRVInstructionSelector::selectOpIsNan(Register ResVReg,
 bool SPIRVInstructionSelector::selectOpIsFinite(Register ResVReg,
                                                 SPIRVTypeInst ResType,
                                                 MachineInstr &I) const {
+  // OpIsFinite requires Kernel capability; emulate with OpIsInf & OpIsNan
----------------
danbrown-amd wrote:

Awaiting guidance.

https://github.com/llvm/llvm-project/pull/225947


More information about the cfe-commits mailing list