[llvm] [SPIRV] Add explicit layout (PR #135789)

Vyacheslav Levytskyy via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 28 07:40:17 PDT 2025


================
@@ -0,0 +1,149 @@
+; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv1.6-vulkan1.3-library %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv1.6-vulkan1.3-library %s -o - -filetype=obj | spirv-val %}
+
+target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64-G1"
+
+; CHECK: OpName [[ScalarBlock_var:%[0-9]+]] "__resource_p_12_{_u32[0]}_0_0"
----------------
VyacheslavLevytskyy wrote:

Maybe CHECK-DAG for OpName? We don't have a guarantee of the order for OpName.

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


More information about the llvm-commits mailing list