[clang] [llvm] [HLSL] Implement the `degrees` intrinsic (PR #111209)
Finn Plummer via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 4 16:23:52 PDT 2024
================
@@ -2625,6 +2645,8 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
return selectFmix(ResVReg, ResType, I);
case Intrinsic::spv_length:
return selectLength(ResVReg, ResType, I);
+ case Intrinsic::spv_degrees:
+ return selectDegrees(ResVReg, ResType, I);
----------------
inbelic wrote:
Yep, you are right and I now realize I should also support the option to use the opencl lowering path which can be done using `selectExtInst`.
https://github.com/llvm/llvm-project/pull/111209
More information about the cfe-commits
mailing list