[llvm-branch-commits] [clang] [llvm] [DirectX] Add Range Overlap validation to `DXILPostOptimizationValidation.cpp` (PR #148919)

Joshua Batista via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jul 17 11:29:38 PDT 2025


================
@@ -0,0 +1,15 @@
+; RUN: not opt -S -passes='dxil-post-optimization-validation' -mtriple=dxil-pc-shadermodel6.6-compute %s 2>&1 | FileCheck %s
+; CHECK: error: register CBuffer (space=0, register=0) is overlapping with register CBuffer (space=0, register=2), verify your root signature definition
+
+define void @CSMain() "hlsl.shader"="compute" {
+entry:
+  ret void
+}
+
+; RootConstants(num32BitConstants=4, b2), DescriptorTable(CBV(b10, numDescriptors=3))
----------------
bob80905 wrote:

Is this comment correct? I don't see the conflict that is happening based on this root signature

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


More information about the llvm-branch-commits mailing list