[llvm] [SPIRV] Add radians intrinsic (PR #110800)
Adam Yang via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 14:30:41 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);
----------------
adam-yang wrote:
I separated the cl specific tests to [llvm/test/CodeGen/SPIRV/opencl/radians.ll](https://github.com/llvm/llvm-project/pull/110800/files#diff-475b96ef54c892f11b256ed84dc5169abcebe11ae128fac4bebb402fac7e0bbe)
https://github.com/llvm/llvm-project/pull/110800
More information about the llvm-commits
mailing list