[llvm-branch-commits] [clang] [llvm] [HLSL] Add resource constructor with implicit binding for global resources (PR #138976)

Helena Kotas via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed May 7 14:57:38 PDT 2025


================
@@ -33,7 +33,7 @@ void SecondEntry() {}
 
 // Verify the constructor is alwaysinline
 // NOINLINE: ; Function Attrs: {{.*}}alwaysinline
-// NOINLINE-NEXT: define linkonce_odr void @_ZN4hlsl8RWBufferIfEC2Ev({{.*}} [[CtorAttr:\#[0-9]+]]
+// NOINLINE-NEXT: define linkonce_odr void @_ZN4hlsl8RWBufferIfEC2Ejijj({{.*}} [[CtorAttr:\#[0-9]+]]
----------------
hekota wrote:

This is changing the `RWBuffer<float> Buffer;` initialization from the default constructor (init handle to poison value) to the constructor with implicit binding.

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


More information about the llvm-branch-commits mailing list