forked from OSchip/llvm-project
[HIP] Add __builtin_amdgcn_groupstaticsize
Differential Revision: https://reviews.llvm.org/D102403
This commit is contained in:
parent
8fa168fc50
commit
6a67e05a26
|
@ -65,6 +65,7 @@ BUILTIN(__builtin_amdgcn_ds_gws_sema_v, "vUi", "n")
|
|||
BUILTIN(__builtin_amdgcn_ds_gws_sema_br, "vUiUi", "n")
|
||||
BUILTIN(__builtin_amdgcn_ds_gws_sema_p, "vUi", "n")
|
||||
BUILTIN(__builtin_amdgcn_fence, "vUicC*", "n")
|
||||
BUILTIN(__builtin_amdgcn_groupstaticsize, "Ui", "n")
|
||||
|
||||
BUILTIN(__builtin_amdgcn_atomic_inc32, "UZiUZiD*UZiUicC*", "n")
|
||||
BUILTIN(__builtin_amdgcn_atomic_inc64, "UWiUWiD*UWiUicC*", "n")
|
||||
|
|
|
@ -62,3 +62,9 @@ int test_is_shared_global(const global int* ptr) {
|
|||
int test_is_private_global(const global int* ptr) {
|
||||
return __builtin_amdgcn_is_private(ptr);
|
||||
}
|
||||
|
||||
// CHECK-LABEL: @test_groupstaticsize
|
||||
// CHECK: call i32 @llvm.amdgcn.groupstaticsize()
|
||||
void test_groupstaticsize(global uint* out) {
|
||||
*out = __builtin_amdgcn_groupstaticsize();
|
||||
}
|
||||
|
|
|
@ -30,3 +30,10 @@ void test_s_memtime(global ulong* out)
|
|||
{
|
||||
*out = __builtin_amdgcn_s_memtime();
|
||||
}
|
||||
|
||||
// CHECK-LABEL: @test_groupstaticsize
|
||||
// CHECK: call i32 @llvm.amdgcn.groupstaticsize()
|
||||
void test_groupstaticsize(global uint* out)
|
||||
{
|
||||
*out = __builtin_amdgcn_groupstaticsize();
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// RUN: %clang_cc1 -triple amdgcn-unknown-unknown -target-cpu gfx1010 -S -emit-llvm -o - %s | FileCheck %s
|
||||
|
||||
#pragma OPENCL EXTENSION cl_khr_fp16 : enable
|
||||
typedef unsigned int uint;
|
||||
typedef unsigned long ulong;
|
||||
|
||||
// CHECK-LABEL: @test_fmed3_f16
|
||||
|
@ -18,3 +19,10 @@ void test_s_memtime(global ulong* out)
|
|||
{
|
||||
*out = __builtin_amdgcn_s_memtime();
|
||||
}
|
||||
|
||||
// CHECK-LABEL: @test_groupstaticsize
|
||||
// CHECK: call i32 @llvm.amdgcn.groupstaticsize()
|
||||
void test_groupstaticsize(global uint* out)
|
||||
{
|
||||
*out = __builtin_amdgcn_groupstaticsize();
|
||||
}
|
||||
|
|
|
@ -145,3 +145,10 @@ void test_perm(global uint* out, uint a, uint b, uint s)
|
|||
{
|
||||
*out = __builtin_amdgcn_perm(a, b, s);
|
||||
}
|
||||
|
||||
// CHECK-LABEL: @test_groupstaticsize
|
||||
// CHECK: call i32 @llvm.amdgcn.groupstaticsize()
|
||||
void test_groupstaticsize(global uint* out)
|
||||
{
|
||||
*out = __builtin_amdgcn_groupstaticsize();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue