forked from OSchip/llvm-project
amdgcn: Fix datalayout after clang r324101
r324101 switched around AS numbering Acked-by: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 325863
This commit is contained in:
parent
0fda3a8721
commit
911666f3fa
|
@ -1 +1,4 @@
|
|||
workitem/get_num_groups.ll
|
||||
workitem/get_num_groups.40.ll
|
||||
workitem/get_global_size.40.ll
|
||||
workitem/get_local_size.40.ll
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
cl_khr_int64_extended_atomics/minmax_helpers.ll
|
||||
workitem/get_global_size.ll
|
||||
workitem/get_local_size.ll
|
||||
workitem/get_num_groups.ll
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
cl_khr_int64_extended_atomics/minmax_helpers.ll
|
||||
workitem/get_global_size.ll
|
||||
workitem/get_local_size.ll
|
||||
workitem/get_num_groups.ll
|
|
@ -0,0 +1,4 @@
|
|||
cl_khr_int64_extended_atomics/minmax_helpers.ll
|
||||
workitem/get_global_size.ll
|
||||
workitem/get_local_size.ll
|
||||
workitem/get_num_groups.ll
|
|
@ -0,0 +1,4 @@
|
|||
cl_khr_int64_extended_atomics/minmax_helpers.ll
|
||||
workitem/get_global_size.ll
|
||||
workitem/get_local_size.ll
|
||||
workitem/get_num_groups.ll
|
|
@ -1,7 +1,6 @@
|
|||
cl_khr_int64_extended_atomics/minmax_helpers.ll
|
||||
math/ldexp.cl
|
||||
mem_fence/fence.cl
|
||||
mem_fence/waitcnt.ll
|
||||
synchronization/barrier.cl
|
||||
workitem/get_global_offset.cl
|
||||
workitem/get_group_id.cl
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
cl_khr_int64_extended_atomics/minmax_helpers.39.ll
|
||||
mem_fence/waitcnt.ll
|
||||
workitem/get_global_size.39.ll
|
||||
workitem/get_local_size.39.ll
|
||||
workitem/get_num_groups.39.ll
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
cl_khr_int64_extended_atomics/minmax_helpers.39.ll
|
||||
mem_fence/waitcnt.ll
|
||||
workitem/get_global_size.40.ll
|
||||
workitem/get_local_size.40.ll
|
||||
workitem/get_num_groups.40.ll
|
|
@ -0,0 +1,4 @@
|
|||
cl_khr_int64_extended_atomics/minmax_helpers.39.ll
|
||||
workitem/get_global_size.40.ll
|
||||
workitem/get_local_size.40.ll
|
||||
workitem/get_num_groups.40.ll
|
|
@ -0,0 +1,4 @@
|
|||
cl_khr_int64_extended_atomics/minmax_helpers.39.ll
|
||||
workitem/get_global_size.40.ll
|
||||
workitem/get_local_size.40.ll
|
||||
workitem/get_num_groups.40.ll
|
|
@ -0,0 +1,49 @@
|
|||
target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64"
|
||||
|
||||
define i64 @__clc__sync_fetch_and_min_global_8(i64 addrspace(1)* nocapture %ptr, i64 %value) nounwind alwaysinline {
|
||||
entry:
|
||||
%0 = atomicrmw volatile min i64 addrspace(1)* %ptr, i64 %value seq_cst
|
||||
ret i64 %0
|
||||
}
|
||||
|
||||
define i64 @__clc__sync_fetch_and_umin_global_8(i64 addrspace(1)* nocapture %ptr, i64 %value) nounwind alwaysinline {
|
||||
entry:
|
||||
%0 = atomicrmw volatile umin i64 addrspace(1)* %ptr, i64 %value seq_cst
|
||||
ret i64 %0
|
||||
}
|
||||
|
||||
define i64 @__clc__sync_fetch_and_min_local_8(i64 addrspace(3)* nocapture %ptr, i64 %value) nounwind alwaysinline {
|
||||
entry:
|
||||
%0 = atomicrmw volatile min i64 addrspace(3)* %ptr, i64 %value seq_cst
|
||||
ret i64 %0
|
||||
}
|
||||
|
||||
define i64 @__clc__sync_fetch_and_umin_local_8(i64 addrspace(3)* nocapture %ptr, i64 %value) nounwind alwaysinline {
|
||||
entry:
|
||||
%0 = atomicrmw volatile umin i64 addrspace(3)* %ptr, i64 %value seq_cst
|
||||
ret i64 %0
|
||||
}
|
||||
|
||||
define i64 @__clc__sync_fetch_and_max_global_8(i64 addrspace(1)* nocapture %ptr, i64 %value) nounwind alwaysinline {
|
||||
entry:
|
||||
%0 = atomicrmw volatile max i64 addrspace(1)* %ptr, i64 %value seq_cst
|
||||
ret i64 %0
|
||||
}
|
||||
|
||||
define i64 @__clc__sync_fetch_and_umax_global_8(i64 addrspace(1)* nocapture %ptr, i64 %value) nounwind alwaysinline {
|
||||
entry:
|
||||
%0 = atomicrmw volatile umax i64 addrspace(1)* %ptr, i64 %value seq_cst
|
||||
ret i64 %0
|
||||
}
|
||||
|
||||
define i64 @__clc__sync_fetch_and_max_local_8(i64 addrspace(3)* nocapture %ptr, i64 %value) nounwind alwaysinline {
|
||||
entry:
|
||||
%0 = atomicrmw volatile max i64 addrspace(3)* %ptr, i64 %value seq_cst
|
||||
ret i64 %0
|
||||
}
|
||||
|
||||
define i64 @__clc__sync_fetch_and_umax_local_8(i64 addrspace(3)* nocapture %ptr, i64 %value) nounwind alwaysinline {
|
||||
entry:
|
||||
%0 = atomicrmw volatile umax i64 addrspace(3)* %ptr, i64 %value seq_cst
|
||||
ret i64 %0
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64"
|
||||
target datalayout = "e-p:64:64-p1:64:64-p2:64:64-p3:32:32-p4:32:32-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-A5"
|
||||
|
||||
define i64 @__clc__sync_fetch_and_min_global_8(i64 addrspace(1)* nocapture %ptr, i64 %value) nounwind alwaysinline {
|
||||
entry:
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
declare i32 @llvm.r600.read.global.size.x() nounwind readnone
|
||||
declare i32 @llvm.r600.read.global.size.y() nounwind readnone
|
||||
declare i32 @llvm.r600.read.global.size.z() nounwind readnone
|
||||
|
||||
target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64"
|
||||
|
||||
define i64 @get_global_size(i32 %dim) nounwind readnone alwaysinline {
|
||||
switch i32 %dim, label %default [i32 0, label %x_dim i32 1, label %y_dim i32 2, label %z_dim]
|
||||
x_dim:
|
||||
%x = call i32 @llvm.r600.read.global.size.x()
|
||||
%x.ext = zext i32 %x to i64
|
||||
ret i64 %x.ext
|
||||
y_dim:
|
||||
%y = call i32 @llvm.r600.read.global.size.y()
|
||||
%y.ext = zext i32 %y to i64
|
||||
ret i64 %y.ext
|
||||
z_dim:
|
||||
%z = call i32 @llvm.r600.read.global.size.z()
|
||||
%z.ext = zext i32 %z to i64
|
||||
ret i64 %z.ext
|
||||
default:
|
||||
ret i64 1
|
||||
}
|
|
@ -2,7 +2,7 @@ declare i32 @llvm.r600.read.global.size.x() nounwind readnone
|
|||
declare i32 @llvm.r600.read.global.size.y() nounwind readnone
|
||||
declare i32 @llvm.r600.read.global.size.z() nounwind readnone
|
||||
|
||||
target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64"
|
||||
target datalayout = "e-p:64:64-p1:64:64-p2:64:64-p3:32:32-p4:32:32-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-A5"
|
||||
|
||||
define i64 @get_global_size(i32 %dim) nounwind readnone alwaysinline {
|
||||
switch i32 %dim, label %default [i32 0, label %x_dim i32 1, label %y_dim i32 2, label %z_dim]
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
declare i32 @llvm.r600.read.local.size.x() nounwind readnone
|
||||
declare i32 @llvm.r600.read.local.size.y() nounwind readnone
|
||||
declare i32 @llvm.r600.read.local.size.z() nounwind readnone
|
||||
|
||||
target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64"
|
||||
|
||||
define i64 @get_local_size(i32 %dim) nounwind readnone alwaysinline {
|
||||
switch i32 %dim, label %default [i32 0, label %x_dim i32 1, label %y_dim i32 2, label %z_dim]
|
||||
x_dim:
|
||||
%x = call i32 @llvm.r600.read.local.size.x()
|
||||
%x.ext = zext i32 %x to i64
|
||||
ret i64 %x.ext
|
||||
y_dim:
|
||||
%y = call i32 @llvm.r600.read.local.size.y()
|
||||
%y.ext = zext i32 %y to i64
|
||||
ret i64 %y.ext
|
||||
z_dim:
|
||||
%z = call i32 @llvm.r600.read.local.size.z()
|
||||
%z.ext = zext i32 %z to i64
|
||||
ret i64 %z.ext
|
||||
default:
|
||||
ret i64 1
|
||||
}
|
|
@ -2,7 +2,7 @@ declare i32 @llvm.r600.read.local.size.x() nounwind readnone
|
|||
declare i32 @llvm.r600.read.local.size.y() nounwind readnone
|
||||
declare i32 @llvm.r600.read.local.size.z() nounwind readnone
|
||||
|
||||
target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64"
|
||||
target datalayout = "e-p:64:64-p1:64:64-p2:64:64-p3:32:32-p4:32:32-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-A5"
|
||||
|
||||
define i64 @get_local_size(i32 %dim) nounwind readnone alwaysinline {
|
||||
switch i32 %dim, label %default [i32 0, label %x_dim i32 1, label %y_dim i32 2, label %z_dim]
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
declare i32 @llvm.r600.read.ngroups.x() nounwind readnone
|
||||
declare i32 @llvm.r600.read.ngroups.y() nounwind readnone
|
||||
declare i32 @llvm.r600.read.ngroups.z() nounwind readnone
|
||||
|
||||
target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64"
|
||||
|
||||
define i64 @get_num_groups(i32 %dim) nounwind readnone alwaysinline {
|
||||
switch i32 %dim, label %default [i32 0, label %x_dim i32 1, label %y_dim i32 2, label %z_dim]
|
||||
x_dim:
|
||||
%x = call i32 @llvm.r600.read.ngroups.x()
|
||||
%x.ext = zext i32 %x to i64
|
||||
ret i64 %x.ext
|
||||
y_dim:
|
||||
%y = call i32 @llvm.r600.read.ngroups.y()
|
||||
%y.ext = zext i32 %y to i64
|
||||
ret i64 %y.ext
|
||||
z_dim:
|
||||
%z = call i32 @llvm.r600.read.ngroups.z()
|
||||
%z.ext = zext i32 %z to i64
|
||||
ret i64 %z.ext
|
||||
default:
|
||||
ret i64 1
|
||||
}
|
|
@ -2,7 +2,7 @@ declare i32 @llvm.r600.read.ngroups.x() nounwind readnone
|
|||
declare i32 @llvm.r600.read.ngroups.y() nounwind readnone
|
||||
declare i32 @llvm.r600.read.ngroups.z() nounwind readnone
|
||||
|
||||
target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64"
|
||||
target datalayout = "e-p:64:64-p1:64:64-p2:64:64-p3:32:32-p4:32:32-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-A5"
|
||||
|
||||
define i64 @get_num_groups(i32 %dim) nounwind readnone alwaysinline {
|
||||
switch i32 %dim, label %default [i32 0, label %x_dim i32 1, label %y_dim i32 2, label %z_dim]
|
||||
|
|
Loading…
Reference in New Issue