mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[Attributor][FIX] Update AMDGPU attributor test
The test contains UB and should be improved, for now we update the check lines pass it.
This commit is contained in:
parent
700878ee36
commit
2b8eaac9b5
@ -1,6 +1,8 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-globals
|
||||
; RUN: opt -mtriple=amdgcn-unknown-amdhsa -S -amdgpu-annotate-kernel-features < %s | FileCheck -check-prefixes=HSA,AKF_HSA %s
|
||||
; RUN: opt -mtriple=amdgcn-unknown-amdhsa -S -amdgpu-attributor < %s | FileCheck -check-prefixes=HSA,ATTRIBUTOR_HSA %s
|
||||
; RUN: opt -mtriple=amdgcn-unknown-amdhsa -S -amdgpu-annotate-kernel-features < %s | FileCheck -check-prefixes=AKF_HSA %s
|
||||
; RUN: opt -mtriple=amdgcn-unknown-amdhsa -S -amdgpu-attributor < %s | FileCheck -check-prefixes=ATTRIBUTOR_HSA %s
|
||||
|
||||
; TODO: The test contains UB which is refined by the Attributor and should be removed.
|
||||
|
||||
declare i32 @llvm.amdgcn.workgroup.id.x() #0
|
||||
declare i32 @llvm.amdgcn.workgroup.id.y() #0
|
||||
@ -17,11 +19,15 @@ declare i8 addrspace(4)* @llvm.amdgcn.implicitarg.ptr() #0
|
||||
declare i64 @llvm.amdgcn.dispatch.id() #0
|
||||
|
||||
define void @use_workitem_id_x() #1 {
|
||||
; HSA-LABEL: define {{[^@]+}}@use_workitem_id_x
|
||||
; HSA-SAME: () #[[ATTR1:[0-9]+]] {
|
||||
; HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workitem.id.x()
|
||||
; HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; HSA-NEXT: ret void
|
||||
; AKF_HSA-LABEL: define {{[^@]+}}@use_workitem_id_x
|
||||
; AKF_HSA-SAME: () #[[ATTR1:[0-9]+]] {
|
||||
; AKF_HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workitem.id.x()
|
||||
; AKF_HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_workitem_id_x
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%val = call i32 @llvm.amdgcn.workitem.id.x()
|
||||
store volatile i32 %val, i32 addrspace(1)* undef
|
||||
@ -29,11 +35,15 @@ define void @use_workitem_id_x() #1 {
|
||||
}
|
||||
|
||||
define void @use_workitem_id_y() #1 {
|
||||
; HSA-LABEL: define {{[^@]+}}@use_workitem_id_y
|
||||
; HSA-SAME: () #[[ATTR2:[0-9]+]] {
|
||||
; HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workitem.id.y()
|
||||
; HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; HSA-NEXT: ret void
|
||||
; AKF_HSA-LABEL: define {{[^@]+}}@use_workitem_id_y
|
||||
; AKF_HSA-SAME: () #[[ATTR2:[0-9]+]] {
|
||||
; AKF_HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workitem.id.y()
|
||||
; AKF_HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_workitem_id_y
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%val = call i32 @llvm.amdgcn.workitem.id.y()
|
||||
store volatile i32 %val, i32 addrspace(1)* undef
|
||||
@ -41,11 +51,15 @@ define void @use_workitem_id_y() #1 {
|
||||
}
|
||||
|
||||
define void @use_workitem_id_z() #1 {
|
||||
; HSA-LABEL: define {{[^@]+}}@use_workitem_id_z
|
||||
; HSA-SAME: () #[[ATTR3:[0-9]+]] {
|
||||
; HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workitem.id.z()
|
||||
; HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; HSA-NEXT: ret void
|
||||
; AKF_HSA-LABEL: define {{[^@]+}}@use_workitem_id_z
|
||||
; AKF_HSA-SAME: () #[[ATTR3:[0-9]+]] {
|
||||
; AKF_HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workitem.id.z()
|
||||
; AKF_HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_workitem_id_z
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%val = call i32 @llvm.amdgcn.workitem.id.z()
|
||||
store volatile i32 %val, i32 addrspace(1)* undef
|
||||
@ -53,11 +67,15 @@ define void @use_workitem_id_z() #1 {
|
||||
}
|
||||
|
||||
define void @use_workgroup_id_x() #1 {
|
||||
; HSA-LABEL: define {{[^@]+}}@use_workgroup_id_x
|
||||
; HSA-SAME: () #[[ATTR4:[0-9]+]] {
|
||||
; HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workgroup.id.x()
|
||||
; HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; HSA-NEXT: ret void
|
||||
; AKF_HSA-LABEL: define {{[^@]+}}@use_workgroup_id_x
|
||||
; AKF_HSA-SAME: () #[[ATTR4:[0-9]+]] {
|
||||
; AKF_HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workgroup.id.x()
|
||||
; AKF_HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_workgroup_id_x
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%val = call i32 @llvm.amdgcn.workgroup.id.x()
|
||||
store volatile i32 %val, i32 addrspace(1)* undef
|
||||
@ -65,11 +83,15 @@ define void @use_workgroup_id_x() #1 {
|
||||
}
|
||||
|
||||
define void @use_workgroup_id_y() #1 {
|
||||
; HSA-LABEL: define {{[^@]+}}@use_workgroup_id_y
|
||||
; HSA-SAME: () #[[ATTR5:[0-9]+]] {
|
||||
; HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workgroup.id.y()
|
||||
; HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; HSA-NEXT: ret void
|
||||
; AKF_HSA-LABEL: define {{[^@]+}}@use_workgroup_id_y
|
||||
; AKF_HSA-SAME: () #[[ATTR5:[0-9]+]] {
|
||||
; AKF_HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workgroup.id.y()
|
||||
; AKF_HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_workgroup_id_y
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%val = call i32 @llvm.amdgcn.workgroup.id.y()
|
||||
store volatile i32 %val, i32 addrspace(1)* undef
|
||||
@ -77,11 +99,15 @@ define void @use_workgroup_id_y() #1 {
|
||||
}
|
||||
|
||||
define void @use_workgroup_id_z() #1 {
|
||||
; HSA-LABEL: define {{[^@]+}}@use_workgroup_id_z
|
||||
; HSA-SAME: () #[[ATTR6:[0-9]+]] {
|
||||
; HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workgroup.id.z()
|
||||
; HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; HSA-NEXT: ret void
|
||||
; AKF_HSA-LABEL: define {{[^@]+}}@use_workgroup_id_z
|
||||
; AKF_HSA-SAME: () #[[ATTR6:[0-9]+]] {
|
||||
; AKF_HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workgroup.id.z()
|
||||
; AKF_HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_workgroup_id_z
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%val = call i32 @llvm.amdgcn.workgroup.id.z()
|
||||
store volatile i32 %val, i32 addrspace(1)* undef
|
||||
@ -89,11 +115,15 @@ define void @use_workgroup_id_z() #1 {
|
||||
}
|
||||
|
||||
define void @use_dispatch_ptr() #1 {
|
||||
; HSA-LABEL: define {{[^@]+}}@use_dispatch_ptr
|
||||
; HSA-SAME: () #[[ATTR7:[0-9]+]] {
|
||||
; HSA-NEXT: [[DISPATCH_PTR:%.*]] = call i8 addrspace(4)* @llvm.amdgcn.dispatch.ptr()
|
||||
; HSA-NEXT: store volatile i8 addrspace(4)* [[DISPATCH_PTR]], i8 addrspace(4)* addrspace(1)* undef, align 8
|
||||
; HSA-NEXT: ret void
|
||||
; AKF_HSA-LABEL: define {{[^@]+}}@use_dispatch_ptr
|
||||
; AKF_HSA-SAME: () #[[ATTR7:[0-9]+]] {
|
||||
; AKF_HSA-NEXT: [[DISPATCH_PTR:%.*]] = call i8 addrspace(4)* @llvm.amdgcn.dispatch.ptr()
|
||||
; AKF_HSA-NEXT: store volatile i8 addrspace(4)* [[DISPATCH_PTR]], i8 addrspace(4)* addrspace(1)* undef, align 8
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_dispatch_ptr
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%dispatch.ptr = call i8 addrspace(4)* @llvm.amdgcn.dispatch.ptr()
|
||||
store volatile i8 addrspace(4)* %dispatch.ptr, i8 addrspace(4)* addrspace(1)* undef
|
||||
@ -101,11 +131,15 @@ define void @use_dispatch_ptr() #1 {
|
||||
}
|
||||
|
||||
define void @use_queue_ptr() #1 {
|
||||
; HSA-LABEL: define {{[^@]+}}@use_queue_ptr
|
||||
; HSA-SAME: () #[[ATTR8:[0-9]+]] {
|
||||
; HSA-NEXT: [[QUEUE_PTR:%.*]] = call i8 addrspace(4)* @llvm.amdgcn.queue.ptr()
|
||||
; HSA-NEXT: store volatile i8 addrspace(4)* [[QUEUE_PTR]], i8 addrspace(4)* addrspace(1)* undef, align 8
|
||||
; HSA-NEXT: ret void
|
||||
; AKF_HSA-LABEL: define {{[^@]+}}@use_queue_ptr
|
||||
; AKF_HSA-SAME: () #[[ATTR8:[0-9]+]] {
|
||||
; AKF_HSA-NEXT: [[QUEUE_PTR:%.*]] = call i8 addrspace(4)* @llvm.amdgcn.queue.ptr()
|
||||
; AKF_HSA-NEXT: store volatile i8 addrspace(4)* [[QUEUE_PTR]], i8 addrspace(4)* addrspace(1)* undef, align 8
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_queue_ptr
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%queue.ptr = call i8 addrspace(4)* @llvm.amdgcn.queue.ptr()
|
||||
store volatile i8 addrspace(4)* %queue.ptr, i8 addrspace(4)* addrspace(1)* undef
|
||||
@ -113,11 +147,15 @@ define void @use_queue_ptr() #1 {
|
||||
}
|
||||
|
||||
define void @use_dispatch_id() #1 {
|
||||
; HSA-LABEL: define {{[^@]+}}@use_dispatch_id
|
||||
; HSA-SAME: () #[[ATTR9:[0-9]+]] {
|
||||
; HSA-NEXT: [[VAL:%.*]] = call i64 @llvm.amdgcn.dispatch.id()
|
||||
; HSA-NEXT: store volatile i64 [[VAL]], i64 addrspace(1)* undef, align 4
|
||||
; HSA-NEXT: ret void
|
||||
; AKF_HSA-LABEL: define {{[^@]+}}@use_dispatch_id
|
||||
; AKF_HSA-SAME: () #[[ATTR9:[0-9]+]] {
|
||||
; AKF_HSA-NEXT: [[VAL:%.*]] = call i64 @llvm.amdgcn.dispatch.id()
|
||||
; AKF_HSA-NEXT: store volatile i64 [[VAL]], i64 addrspace(1)* undef, align 4
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_dispatch_id
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%val = call i64 @llvm.amdgcn.dispatch.id()
|
||||
store volatile i64 %val, i64 addrspace(1)* undef
|
||||
@ -125,13 +163,17 @@ define void @use_dispatch_id() #1 {
|
||||
}
|
||||
|
||||
define void @use_workgroup_id_y_workgroup_id_z() #1 {
|
||||
; HSA-LABEL: define {{[^@]+}}@use_workgroup_id_y_workgroup_id_z
|
||||
; HSA-SAME: () #[[ATTR10:[0-9]+]] {
|
||||
; HSA-NEXT: [[VAL0:%.*]] = call i32 @llvm.amdgcn.workgroup.id.y()
|
||||
; HSA-NEXT: [[VAL1:%.*]] = call i32 @llvm.amdgcn.workgroup.id.z()
|
||||
; HSA-NEXT: store volatile i32 [[VAL0]], i32 addrspace(1)* undef, align 4
|
||||
; HSA-NEXT: store volatile i32 [[VAL1]], i32 addrspace(1)* undef, align 4
|
||||
; HSA-NEXT: ret void
|
||||
; AKF_HSA-LABEL: define {{[^@]+}}@use_workgroup_id_y_workgroup_id_z
|
||||
; AKF_HSA-SAME: () #[[ATTR10:[0-9]+]] {
|
||||
; AKF_HSA-NEXT: [[VAL0:%.*]] = call i32 @llvm.amdgcn.workgroup.id.y()
|
||||
; AKF_HSA-NEXT: [[VAL1:%.*]] = call i32 @llvm.amdgcn.workgroup.id.z()
|
||||
; AKF_HSA-NEXT: store volatile i32 [[VAL0]], i32 addrspace(1)* undef, align 4
|
||||
; AKF_HSA-NEXT: store volatile i32 [[VAL1]], i32 addrspace(1)* undef, align 4
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_workgroup_id_y_workgroup_id_z
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%val0 = call i32 @llvm.amdgcn.workgroup.id.y()
|
||||
%val1 = call i32 @llvm.amdgcn.workgroup.id.z()
|
||||
@ -148,7 +190,7 @@ define void @func_indirect_use_workitem_id_x() #1 {
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_workitem_id_x
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workitem_id_x() #[[ATTR22:[0-9]+]]
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workitem_id_x() #[[ATTR10:[0-9]+]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_workitem_id_x()
|
||||
@ -163,7 +205,7 @@ define void @kernel_indirect_use_workitem_id_x() #1 {
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@kernel_indirect_use_workitem_id_x
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workitem_id_x() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workitem_id_x() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_workitem_id_x()
|
||||
@ -177,8 +219,8 @@ define void @func_indirect_use_workitem_id_y() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_workitem_id_y
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR2]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workitem_id_y() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workitem_id_y() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_workitem_id_y()
|
||||
@ -192,8 +234,8 @@ define void @func_indirect_use_workitem_id_z() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_workitem_id_z
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR3]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workitem_id_z() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workitem_id_z() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_workitem_id_z()
|
||||
@ -207,8 +249,8 @@ define void @func_indirect_use_workgroup_id_x() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_workgroup_id_x
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR4]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workgroup_id_x() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workgroup_id_x() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_workgroup_id_x()
|
||||
@ -222,8 +264,8 @@ define void @kernel_indirect_use_workgroup_id_x() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@kernel_indirect_use_workgroup_id_x
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR4]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workgroup_id_x() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workgroup_id_x() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_workgroup_id_x()
|
||||
@ -237,8 +279,8 @@ define void @func_indirect_use_workgroup_id_y() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_workgroup_id_y
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR5]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workgroup_id_y() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workgroup_id_y() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_workgroup_id_y()
|
||||
@ -252,8 +294,8 @@ define void @func_indirect_use_workgroup_id_z() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_workgroup_id_z
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR6]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workgroup_id_z() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_workgroup_id_z() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_workgroup_id_z()
|
||||
@ -267,8 +309,8 @@ define void @func_indirect_indirect_use_workgroup_id_y() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_indirect_use_workgroup_id_y
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR5]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @func_indirect_use_workgroup_id_y() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @func_indirect_use_workgroup_id_y() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @func_indirect_use_workgroup_id_y()
|
||||
@ -282,8 +324,8 @@ define void @indirect_x2_use_workgroup_id_y() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@indirect_x2_use_workgroup_id_y
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR5]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @func_indirect_indirect_use_workgroup_id_y() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @func_indirect_indirect_use_workgroup_id_y() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @func_indirect_indirect_use_workgroup_id_y()
|
||||
@ -297,8 +339,8 @@ define void @func_indirect_use_dispatch_ptr() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_dispatch_ptr
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR7]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_dispatch_ptr() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_dispatch_ptr() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_dispatch_ptr()
|
||||
@ -312,8 +354,8 @@ define void @func_indirect_use_queue_ptr() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_queue_ptr
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR8]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_queue_ptr() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_queue_ptr() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_queue_ptr()
|
||||
@ -327,8 +369,8 @@ define void @func_indirect_use_dispatch_id() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_dispatch_id
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR9]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_dispatch_id() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_dispatch_id() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_dispatch_id()
|
||||
@ -342,7 +384,7 @@ define void @func_indirect_use_workgroup_id_y_workgroup_id_z() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_workgroup_id_y_workgroup_id_z
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR11:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR2:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: unreachable
|
||||
;
|
||||
call void @func_indirect_use_workgroup_id_y_workgroup_id_z()
|
||||
@ -358,10 +400,8 @@ define void @recursive_use_workitem_id_y() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@recursive_use_workitem_id_y
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR12:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: [[VAL:%.*]] = call i32 @llvm.amdgcn.workitem.id.y()
|
||||
; ATTRIBUTOR_HSA-NEXT: store volatile i32 [[VAL]], i32 addrspace(1)* undef, align 4
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @recursive_use_workitem_id_y() #[[ATTR23:[0-9]+]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR3:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @recursive_use_workitem_id_y() #[[ATTR11:[0-9]+]]
|
||||
; ATTRIBUTOR_HSA-NEXT: unreachable
|
||||
;
|
||||
%val = call i32 @llvm.amdgcn.workitem.id.y()
|
||||
@ -377,8 +417,8 @@ define void @call_recursive_use_workitem_id_y() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@call_recursive_use_workitem_id_y
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR2]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @recursive_use_workitem_id_y() #[[ATTR23]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @recursive_use_workitem_id_y() #[[ATTR11]]
|
||||
; ATTRIBUTOR_HSA-NEXT: unreachable
|
||||
;
|
||||
call void @recursive_use_workitem_id_y()
|
||||
@ -386,11 +426,17 @@ define void @call_recursive_use_workitem_id_y() #1 {
|
||||
}
|
||||
|
||||
define void @use_group_to_flat_addrspacecast(i32 addrspace(3)* %ptr) #1 {
|
||||
; HSA-LABEL: define {{[^@]+}}@use_group_to_flat_addrspacecast
|
||||
; HSA-SAME: (i32 addrspace(3)* [[PTR:%.*]]) #[[ATTR8]] {
|
||||
; HSA-NEXT: [[STOF:%.*]] = addrspacecast i32 addrspace(3)* [[PTR]] to i32 addrspace(4)*
|
||||
; HSA-NEXT: store volatile i32 0, i32 addrspace(4)* [[STOF]], align 4
|
||||
; HSA-NEXT: ret void
|
||||
; AKF_HSA-LABEL: define {{[^@]+}}@use_group_to_flat_addrspacecast
|
||||
; AKF_HSA-SAME: (i32 addrspace(3)* [[PTR:%.*]]) #[[ATTR8]] {
|
||||
; AKF_HSA-NEXT: [[STOF:%.*]] = addrspacecast i32 addrspace(3)* [[PTR]] to i32 addrspace(4)*
|
||||
; AKF_HSA-NEXT: store volatile i32 0, i32 addrspace(4)* [[STOF]], align 4
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_group_to_flat_addrspacecast
|
||||
; ATTRIBUTOR_HSA-SAME: (i32 addrspace(3)* [[PTR:%.*]]) #[[ATTR4:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: [[STOF:%.*]] = addrspacecast i32 addrspace(3)* [[PTR]] to i32 addrspace(4)*
|
||||
; ATTRIBUTOR_HSA-NEXT: store volatile i32 0, i32 addrspace(4)* [[STOF]], align 4
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%stof = addrspacecast i32 addrspace(3)* %ptr to i32 addrspace(4)*
|
||||
store volatile i32 0, i32 addrspace(4)* %stof
|
||||
@ -406,7 +452,7 @@ define void @use_group_to_flat_addrspacecast_gfx9(i32 addrspace(3)* %ptr) #2 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_group_to_flat_addrspacecast_gfx9
|
||||
; ATTRIBUTOR_HSA-SAME: (i32 addrspace(3)* [[PTR:%.*]]) #[[ATTR13:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-SAME: (i32 addrspace(3)* [[PTR:%.*]]) #[[ATTR5:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: [[STOF:%.*]] = addrspacecast i32 addrspace(3)* [[PTR]] to i32 addrspace(4)*
|
||||
; ATTRIBUTOR_HSA-NEXT: store volatile i32 0, i32 addrspace(4)* [[STOF]], align 4
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
@ -425,10 +471,10 @@ define void @use_group_to_flat_addrspacecast_queue_ptr_gfx9(i32 addrspace(3)* %p
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_group_to_flat_addrspacecast_queue_ptr_gfx9
|
||||
; ATTRIBUTOR_HSA-SAME: (i32 addrspace(3)* [[PTR:%.*]]) #[[ATTR14:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-SAME: (i32 addrspace(3)* [[PTR:%.*]]) #[[ATTR5]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: [[STOF:%.*]] = addrspacecast i32 addrspace(3)* [[PTR]] to i32 addrspace(4)*
|
||||
; ATTRIBUTOR_HSA-NEXT: store volatile i32 0, i32 addrspace(4)* [[STOF]], align 4
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @func_indirect_use_queue_ptr() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @func_indirect_use_queue_ptr() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%stof = addrspacecast i32 addrspace(3)* %ptr to i32 addrspace(4)*
|
||||
@ -444,8 +490,8 @@ define void @indirect_use_group_to_flat_addrspacecast() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@indirect_use_group_to_flat_addrspacecast
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR8]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_group_to_flat_addrspacecast(i32 addrspace(3)* null) #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR4]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_group_to_flat_addrspacecast(i32 addrspace(3)* null) #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_group_to_flat_addrspacecast(i32 addrspace(3)* null)
|
||||
@ -459,8 +505,8 @@ define void @indirect_use_group_to_flat_addrspacecast_gfx9() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@indirect_use_group_to_flat_addrspacecast_gfx9
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR15:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_group_to_flat_addrspacecast_gfx9(i32 addrspace(3)* null) #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_group_to_flat_addrspacecast_gfx9(i32 addrspace(3)* null) #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_group_to_flat_addrspacecast_gfx9(i32 addrspace(3)* null)
|
||||
@ -474,8 +520,8 @@ define void @indirect_use_group_to_flat_addrspacecast_queue_ptr_gfx9() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@indirect_use_group_to_flat_addrspacecast_queue_ptr_gfx9
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR8]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_group_to_flat_addrspacecast_queue_ptr_gfx9(i32 addrspace(3)* null) #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_group_to_flat_addrspacecast_queue_ptr_gfx9(i32 addrspace(3)* null) #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_group_to_flat_addrspacecast_queue_ptr_gfx9(i32 addrspace(3)* null)
|
||||
@ -490,9 +536,7 @@ define void @use_kernarg_segment_ptr() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_kernarg_segment_ptr
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR16:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: [[KERNARG_SEGMENT_PTR:%.*]] = call i8 addrspace(4)* @llvm.amdgcn.kernarg.segment.ptr()
|
||||
; ATTRIBUTOR_HSA-NEXT: store volatile i8 addrspace(4)* [[KERNARG_SEGMENT_PTR]], i8 addrspace(4)* addrspace(1)* undef, align 8
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%kernarg.segment.ptr = call i8 addrspace(4)* @llvm.amdgcn.kernarg.segment.ptr()
|
||||
@ -506,8 +550,8 @@ define void @func_indirect_use_kernarg_segment_ptr() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_kernarg_segment_ptr
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR15]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_kernarg_segment_ptr() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_kernarg_segment_ptr() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_kernarg_segment_ptr()
|
||||
@ -522,9 +566,7 @@ define amdgpu_kernel void @kern_use_implicitarg_ptr() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@kern_use_implicitarg_ptr
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR17:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: [[IMPLICITARG_PTR:%.*]] = call i8 addrspace(4)* @llvm.amdgcn.implicitarg.ptr()
|
||||
; ATTRIBUTOR_HSA-NEXT: store volatile i8 addrspace(4)* [[IMPLICITARG_PTR]], i8 addrspace(4)* addrspace(1)* undef, align 8
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%implicitarg.ptr = call i8 addrspace(4)* @llvm.amdgcn.implicitarg.ptr()
|
||||
@ -540,9 +582,7 @@ define void @use_implicitarg_ptr() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_implicitarg_ptr
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR17]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: [[IMPLICITARG_PTR:%.*]] = call i8 addrspace(4)* @llvm.amdgcn.implicitarg.ptr()
|
||||
; ATTRIBUTOR_HSA-NEXT: store volatile i8 addrspace(4)* [[IMPLICITARG_PTR]], i8 addrspace(4)* addrspace(1)* undef, align 8
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
%implicitarg.ptr = call i8 addrspace(4)* @llvm.amdgcn.implicitarg.ptr()
|
||||
@ -557,8 +597,8 @@ define void @func_indirect_use_implicitarg_ptr() #1 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_implicitarg_ptr
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR17]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_implicitarg_ptr() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR1]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @use_implicitarg_ptr() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @use_implicitarg_ptr()
|
||||
@ -583,8 +623,8 @@ define void @func_call_external() #3 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_call_external
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR18:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @external.func() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR6:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @external.func() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @external.func()
|
||||
@ -598,7 +638,7 @@ define void @func_call_defined() #3 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_call_defined
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR19:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR7:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @defined.func()
|
||||
@ -611,8 +651,8 @@ define void @func_call_asm() #3 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_call_asm
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR19]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void asm sideeffect "", ""() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR7]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void asm sideeffect "", ""() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void asm sideeffect "", ""() #3
|
||||
@ -626,8 +666,8 @@ define amdgpu_kernel void @kern_call_external() #3 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@kern_call_external
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR20:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @external.func() #[[ATTR22]]
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR8:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: call void @external.func() #[[ATTR10]]
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @external.func()
|
||||
@ -641,7 +681,7 @@ define amdgpu_kernel void @func_kern_defined() #3 {
|
||||
; AKF_HSA-NEXT: ret void
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_kern_defined
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR19]] {
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR7]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret void
|
||||
;
|
||||
call void @defined.func()
|
||||
@ -656,9 +696,7 @@ define i32 @use_dispatch_ptr_ret_type() #1 {
|
||||
; AKF_HSA-NEXT: ret i32 0
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@use_dispatch_ptr_ret_type
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR21:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: [[DISPATCH_PTR:%.*]] = call i8 addrspace(4)* @llvm.amdgcn.dispatch.ptr()
|
||||
; ATTRIBUTOR_HSA-NEXT: store volatile i8 addrspace(4)* [[DISPATCH_PTR]], i8 addrspace(4)* addrspace(1)* undef, align 8
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR9:[0-9]+]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: ret i32 0
|
||||
;
|
||||
%dispatch.ptr = call i8 addrspace(4)* @llvm.amdgcn.dispatch.ptr()
|
||||
@ -674,7 +712,7 @@ define float @func_indirect_use_dispatch_ptr_constexpr_cast_func() #1 {
|
||||
; AKF_HSA-NEXT: ret float [[FADD]]
|
||||
;
|
||||
; ATTRIBUTOR_HSA-LABEL: define {{[^@]+}}@func_indirect_use_dispatch_ptr_constexpr_cast_func
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR21]] {
|
||||
; ATTRIBUTOR_HSA-SAME: () #[[ATTR9]] {
|
||||
; ATTRIBUTOR_HSA-NEXT: [[F:%.*]] = call float bitcast (i32 ()* @use_dispatch_ptr_ret_type to float ()*)()
|
||||
; ATTRIBUTOR_HSA-NEXT: [[FADD:%.*]] = fadd float [[F]], 1.000000e+00
|
||||
; ATTRIBUTOR_HSA-NEXT: ret float [[FADD]]
|
||||
@ -713,27 +751,15 @@ attributes #3 = { nounwind }
|
||||
; AKF_HSA: attributes #[[ATTR20]] = { nounwind "amdgpu-dispatch-id" "amdgpu-dispatch-ptr" "amdgpu-implicitarg-ptr" "amdgpu-queue-ptr" "amdgpu-work-group-id-x" "amdgpu-work-group-id-y" "amdgpu-work-group-id-z" "amdgpu-work-item-id-x" "amdgpu-work-item-id-y" "amdgpu-work-item-id-z" "target-cpu"="fiji" }
|
||||
;.
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR0:[0-9]+]] = { nounwind readnone speculatable willreturn "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR1]] = { nounwind "amdgpu-work-item-id-x" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR2]] = { nounwind "amdgpu-work-item-id-y" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR3]] = { nounwind "amdgpu-work-item-id-z" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR4]] = { nounwind "amdgpu-work-group-id-x" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR5]] = { nounwind "amdgpu-work-group-id-y" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR6]] = { nounwind "amdgpu-work-group-id-z" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR7]] = { nounwind "amdgpu-dispatch-ptr" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR8]] = { nounwind "amdgpu-queue-ptr" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR9]] = { nounwind "amdgpu-dispatch-id" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR10]] = { nounwind "amdgpu-work-group-id-y" "amdgpu-work-group-id-z" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR11]] = { noreturn nounwind readnone "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR12]] = { noreturn nounwind "amdgpu-work-item-id-y" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR13]] = { nounwind "target-cpu"="gfx900" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR14]] = { nounwind "amdgpu-queue-ptr" "target-cpu"="gfx900" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR15]] = { nounwind "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR16]] = { nounwind "amdgpu-kernarg-segment-ptr" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR17]] = { nounwind "amdgpu-implicitarg-ptr" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR18]] = { nounwind "amdgpu-dispatch-id" "amdgpu-dispatch-ptr" "amdgpu-implicitarg-ptr" "amdgpu-queue-ptr" "amdgpu-work-group-id-x" "amdgpu-work-group-id-y" "amdgpu-work-group-id-z" "amdgpu-work-item-id-x" "amdgpu-work-item-id-y" "amdgpu-work-item-id-z" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR19]] = { nounwind "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR20]] = { nounwind "amdgpu-calls" "amdgpu-dispatch-id" "amdgpu-dispatch-ptr" "amdgpu-implicitarg-ptr" "amdgpu-queue-ptr" "amdgpu-work-group-id-x" "amdgpu-work-group-id-y" "amdgpu-work-group-id-z" "amdgpu-work-item-id-x" "amdgpu-work-item-id-y" "amdgpu-work-item-id-z" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR21]] = { nounwind "amdgpu-dispatch-id" "amdgpu-dispatch-ptr" "amdgpu-implicitarg-ptr" "amdgpu-queue-ptr" "amdgpu-work-group-id-x" "amdgpu-work-group-id-y" "amdgpu-work-group-id-z" "amdgpu-work-item-id-x" "amdgpu-work-item-id-y" "amdgpu-work-item-id-z" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR22]] = { nounwind }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR23]] = { noreturn nounwind }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR1]] = { nounwind "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR2]] = { noreturn nounwind readnone "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR3]] = { noreturn nounwind "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR4]] = { nounwind "amdgpu-queue-ptr" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR5]] = { nounwind "target-cpu"="gfx900" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR6]] = { nounwind "amdgpu-dispatch-id" "amdgpu-dispatch-ptr" "amdgpu-implicitarg-ptr" "amdgpu-queue-ptr" "amdgpu-work-group-id-x" "amdgpu-work-group-id-y" "amdgpu-work-group-id-z" "amdgpu-work-item-id-x" "amdgpu-work-item-id-y" "amdgpu-work-item-id-z" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR7]] = { nounwind "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR8]] = { nounwind "amdgpu-calls" "amdgpu-dispatch-id" "amdgpu-dispatch-ptr" "amdgpu-implicitarg-ptr" "amdgpu-queue-ptr" "amdgpu-work-group-id-x" "amdgpu-work-group-id-y" "amdgpu-work-group-id-z" "amdgpu-work-item-id-x" "amdgpu-work-item-id-y" "amdgpu-work-item-id-z" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR9]] = { nounwind "amdgpu-dispatch-id" "amdgpu-dispatch-ptr" "amdgpu-implicitarg-ptr" "amdgpu-queue-ptr" "amdgpu-work-group-id-x" "amdgpu-work-group-id-y" "amdgpu-work-group-id-z" "amdgpu-work-item-id-x" "amdgpu-work-item-id-y" "amdgpu-work-item-id-z" "target-cpu"="fiji" "uniform-work-group-size"="false" }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR10]] = { nounwind }
|
||||
; ATTRIBUTOR_HSA: attributes #[[ATTR11]] = { noreturn nounwind }
|
||||
;.
|
||||
|
Loading…
Reference in New Issue
Block a user