[clang] [HLSL] Implement the `lit` intrinsic (PR #134171)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 8 12:49:28 PDT 2025


================
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note
+
+float4 test_double_inputs(double p0, double p1, double p2) {
+  return lit(p0, p1, p2);
----------------
farzonl wrote:

this is my bad. Since this isn't a template anymore we can probably delete this file. the function overload rules should be the same for every function. I suspect we already have tests like this.

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


More information about the cfe-commits mailing list