[clang] [llvm] [HLSL] Move `radians` implementation to header files (PR #215379)

Kaitlin Peng via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 11 15:05:09 PDT 2026


================
@@ -1,27 +1,34 @@
 // RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -fnative-int16-type -emit-llvm-only -disable-llvm-passes -verify
 
 float test_too_few_arg() {
-  return __builtin_hlsl_elementwise_radians();
-  // expected-error at -1 {{too few arguments to function call, expected 1, have 0}}
+  return radians();
----------------
kmpeng wrote:

Ok, that's fair. I'll remove `radians-errors.hlsl` and keep it in mind for future intrinsics

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


More information about the cfe-commits mailing list