[clang] [llvm] [HIPSTDPAR] Add `sincos` support (PR #224620)
Dmitry Sidorov via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 18 06:58:20 PDT 2026
================
@@ -375,6 +375,21 @@ entry:
ret void
}
+define void @test_sincos(float %flt, double %dbl, ptr %psflt, ptr %pcflt,
+; CHECK-LABEL: define void @test_sincos(
+; CHECK-SAME: float [[FLT:%.*]], double [[DBL:%.*]], ptr [[PSFLT:%.*]], ptr [[PCFLT:%.*]], ptr [[PSDBL:%.*]], ptr [[PCDBL:%.*]]) {
+; CHECK-NEXT: [[ENTRY:.*:]]
+; CHECK-NEXT: [[TMP0:%.*]] = call { float, float } @__hipstdpar_sincos_f32(float [[FLT]])
+; CHECK-NEXT: [[TMP1:%.*]] = call { double, double } @__hipstdpar_sincos_f64(double [[DBL]])
----------------
MrSidims wrote:
Will there be an appropriate PR to https://github.com/ROCm/rocm-libraries/blob/develop/projects/rocthrust/thrust/system/hip/hipstdpar/impl/math_lib.hpp with `sincos` definition? (sorry, away from a laptop suitable to check its existence myself).
https://github.com/llvm/llvm-project/pull/224620
More information about the cfe-commits
mailing list