Skip to content

Commit f834c16

Browse files
committed
Fix tests
1 parent db1bba8 commit f834c16

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

clang/test/CodeGen/amdgpu-barrier-type-debug-info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
// CHECK: name: "__amdgpu_named_workgroup_barrier_t",{{.*}}baseType: ![[BT:[0-9]+]]
55
// CHECK: [[BT]] = !DIBasicType(name: "__amdgpu_named_workgroup_barrier_t", size: 128, encoding: DW_ATE_unsigned)
66
void test_locals(void) {
7-
__amdgpu_named_workgroup_barrier_t k0;
7+
__amdgpu_named_workgroup_barrier_t *k0;
88
}

llvm/lib/IR/Type.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,8 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) {
951951

952952
// DirectX resources
953953
if (Name.starts_with("dx."))
954-
return TargetTypeInfo(PointerType::get(C, 0), TargetExtType::CanBeGlobal);
954+
return TargetTypeInfo(PointerType::get(C, 0), TargetExtType::CanBeGlobal,
955+
TargetExtType::CanBeLocal);
955956

956957
// Opaque types in the AMDGPU name space.
957958
if (Name == "amdgcn.named.barrier") {

llvm/test/Assembler/target-type-properties.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ define void @foo() {
2929

3030
;--- alloca.ll
3131
define void @foo() {
32-
%val = alloca target("spirv.Image")
32+
%val = alloca target("amdgcn.named.barrier", 0)
3333
; CHECK-ALLOCA: Alloca has illegal target extension type
3434
ret void
3535
}
3636

3737
;--- byval.ll
38-
declare void @foo(ptr byval(target("spirv.Image")))
38+
declare void @foo(ptr byval(target("amdgcn.named.barrier", 0)))
3939
; CHECK-BYVAL: 'byval' argument has illegal target extension type

0 commit comments

Comments
 (0)