[clang] [HLSL] update StructuredBuffer subscript test for alwaysinline (PR #109023)
Greg Roth via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 17 10:42:24 PDT 2024
https://github.com/pow2clk created https://github.com/llvm/llvm-project/pull/109023
The Alwaysinline change made the mangled form of entry points get removed. The StructuredBuffer-subscript.hlsl test was introduced in the meantime depending on that version of the entry point. This revises it in the same way as RWBuffer-subscript
Follow up to #89282
>From 908902cfb33d9aa283457a9b95091d5067f80216 Mon Sep 17 00:00:00 2001
From: Greg Roth <grroth at microsoft.com>
Date: Tue, 17 Sep 2024 11:40:21 -0600
Subject: [PATCH] [HLSL] update StructuredBuffer subscript test for
alwaysinline
The Alwaysinline change made the mangled form of entry points get
removed. The StructuredBuffer-subscript.hlsl test was introduced in
the meantime depending on that version of the entry point. This
revises it in the same way as RWBuffer-subscript
Follow up to #89282
---
.../CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
index 9bd885d94d7e75..155749ec4f94a9 100644
--- a/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
+++ b/clang/test/CodeGenHLSL/builtins/StructuredBuffer-subscript.hlsl
@@ -11,6 +11,7 @@ void main(unsigned GI : SV_GroupIndex) {
// Even at -O0 the subscript operators get inlined. The -O0 IR is a bit messy
// and confusing to follow so the match here is pretty weak.
-// CHECK: define internal void @"?main@@YAXI at Z"
-// CHECK-NOT: call
+// CHECK: define void @main()
+// Verify inlining leaves only calls to "llvm." intrinsics
+// CHECK-NOT: call {{[^@]*}} @{{[^l][^l][^v][^m][^\.]}}
// CHECK: ret void
More information about the cfe-commits
mailing list