[llvm] [SPIRV] Add radians intrinsic (PR #110800)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 19:50:23 PDT 2024
================
@@ -2534,6 +2534,8 @@ bool SPIRVInstructionSelector::selectIntrinsic(Register ResVReg,
}
case Intrinsic::spv_step:
return selectExtInst(ResVReg, ResType, I, CL::step, GL::Step);
+ case Intrinsic::spv_radians:
+ return selectExtInst(ResVReg, ResType, I, CL::radians, GL::Radians);
----------------
farzonl wrote:
I’ll let other folks weigh in. I was afraid of testing scope creep. We do want a set of tests that are hlsl only. The question is do we want to be on the hook for opencl tests and do we want to go and update every hlsl intrinsic to have cl tests as well?
https://github.com/llvm/llvm-project/pull/110800
More information about the llvm-commits
mailing list