================
@@ -1,7 +1,14 @@
-// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
-// RUN:   dxil-pc-shadermodel6.3-library %s \
+// RUN: %clang_cc1 -finclude-default-header -triple 
dxil-pc-shadermodel6.3-library %s \
 // RUN:   -emit-llvm -disable-llvm-passes -o - | FileCheck %s
 
+// RUN: %clang_cc1 -finclude-default-header -triple spirv-pc-vulkan-library %s 
\
+// RUN:   -emit-llvm -disable-llvm-passes -o - | FileCheck %s
+
+// CHECK: @a = external addrspace(2) externally_initialized global float, 
align 4
+// CHECK: @b = external addrspace(2) externally_initialized global double, 
align 8
+// CHECK: @c = external addrspace(2) externally_initialized global float, 
align 4
+// CHECK: @d = external addrspace(2) externally_initialized global double, 
align 8
+
 // CHECK: @[[CB:.+]] = external constant { float, double }
----------------
hekota wrote:

There is going to be a pass after codegen that will translate all of the 
addrspace(2) globals and loads to constant buffer load intrinsics. An update to 
the constant buffers design document that explains this coming soon.

https://github.com/llvm/llvm-project/pull/123411
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to