Skip to content

Commit b1f6a94

Browse files
adding tests
1 parent 7210fcc commit b1f6a94

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
; ModuleID = '/workspace/llvm-project/clang/test/AST/HLSL/ByteAddressBuffer-AST.hlsl'
2+
source_filename = "/workspace/llvm-project/clang/test/AST/HLSL/ByteAddressBuffer-AST.hlsl"
3+
target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64"
4+
target triple = "dxilv1.0-pc-shadermodel6.0-library"
5+
6+
!llvm.module.flags = !{!0, !1}
7+
!dx.valver = !{!2}
8+
!llvm.ident = !{!3}
9+
10+
!0 = !{i32 1, !"wchar_size", i32 4}
11+
!1 = !{i32 4, !"dx.disable_optimizations", i32 1}
12+
!2 = !{i32 1, i32 8}
13+
!3 = !{!"clang version 20.0.0git (https://github.com/joaosaffran/llvm-project.git c3b3c87db9b6a47bea9ed69575d4a9a728d1b154)"}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -x hlsl -emit-llvm %s -o - | FileCheck %s
2+
3+
// CHECK: class.hlsl::ByteAddressBuffer" = type <{ target("dx.RawBuffer", i8, 1, 1)
4+
// CHECK: @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @_GLOBAL__sub_I_ByteAddressBuffer.hlsl, ptr null }]
5+
6+
ByteAddressBuffer Buffer;
7+
8+
//CHECK: define internal void @_GLOBAL__sub_I_ByteAddressBuffer.hlsl()

0 commit comments

Comments
 (0)