2018-03-24 02:43:15 +08:00
|
|
|
// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -target-cpu tahiti -O0 -emit-llvm -o - %s | FileCheck %s
|
2021-12-04 23:52:07 +08:00
|
|
|
// RUN: %clang_cc1 -triple amdgcn-- -target-cpu tahiti -O0 -emit-llvm -o - %s | FileCheck %s
|
2016-09-26 09:02:57 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O0 -emit-llvm -verify -o - %s | FileCheck -check-prefix=X86 %s
|
|
|
|
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(0, 0))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_0_0() {}
|
|
|
|
__attribute__((amdgpu_waves_per_eu(0))) // expected-no-diagnostics
|
|
|
|
kernel void waves_per_eu_0() {}
|
|
|
|
__attribute__((amdgpu_waves_per_eu(0, 0))) // expected-no-diagnostics
|
|
|
|
kernel void waves_per_eu_0_0() {}
|
|
|
|
__attribute__((amdgpu_num_sgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void num_sgpr0() {}
|
|
|
|
__attribute__((amdgpu_num_vgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void num_vgpr0() {}
|
|
|
|
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_waves_per_eu(0))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_0_0_waves_per_eu_0() {}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_waves_per_eu(0, 0))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_0_0_waves_per_eu_0_0() {}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_num_sgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_0_0_num_sgpr_0() {}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_num_vgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_0_0_num_vgpr_0() {}
|
|
|
|
__attribute__((amdgpu_waves_per_eu(0), amdgpu_num_sgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void waves_per_eu_0_num_sgpr_0() {}
|
|
|
|
__attribute__((amdgpu_waves_per_eu(0), amdgpu_num_vgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void waves_per_eu_0_num_vgpr_0() {}
|
|
|
|
__attribute__((amdgpu_waves_per_eu(0, 0), amdgpu_num_sgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void waves_per_eu_0_0_num_sgpr_0() {}
|
|
|
|
__attribute__((amdgpu_waves_per_eu(0, 0), amdgpu_num_vgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void waves_per_eu_0_0_num_vgpr_0() {}
|
|
|
|
__attribute__((amdgpu_num_sgpr(0), amdgpu_num_vgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void num_sgpr_0_num_vgpr_0() {}
|
|
|
|
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_waves_per_eu(0), amdgpu_num_sgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_0_0_waves_per_eu_0_num_sgpr_0() {}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_waves_per_eu(0), amdgpu_num_vgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_0_0_waves_per_eu_0_num_vgpr_0() {}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_waves_per_eu(0, 0), amdgpu_num_sgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_0_0_waves_per_eu_0_0_num_sgpr_0() {}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_waves_per_eu(0, 0), amdgpu_num_vgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_0_0_waves_per_eu_0_0_num_vgpr_0() {}
|
|
|
|
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_waves_per_eu(0), amdgpu_num_sgpr(0), amdgpu_num_vgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_0_0_waves_per_eu_0_num_sgpr_0_num_vgpr_0() {}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(0, 0), amdgpu_waves_per_eu(0, 0), amdgpu_num_sgpr(0), amdgpu_num_vgpr(0))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_0_0_waves_per_eu_0_0_num_sgpr_0_num_vgpr_0() {}
|
|
|
|
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(32, 64))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_32_64() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @flat_work_group_size_32_64() [[FLAT_WORK_GROUP_SIZE_32_64:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_waves_per_eu(2))) // expected-no-diagnostics
|
|
|
|
kernel void waves_per_eu_2() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @waves_per_eu_2() [[WAVES_PER_EU_2:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_waves_per_eu(2, 4))) // expected-no-diagnostics
|
|
|
|
kernel void waves_per_eu_2_4() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @waves_per_eu_2_4() [[WAVES_PER_EU_2_4:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_num_sgpr(32))) // expected-no-diagnostics
|
|
|
|
kernel void num_sgpr_32() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @num_sgpr_32() [[NUM_SGPR_32:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_num_vgpr(64))) // expected-no-diagnostics
|
|
|
|
kernel void num_vgpr_64() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @num_vgpr_64() [[NUM_VGPR_64:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(32, 64), amdgpu_waves_per_eu(2))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_32_64_waves_per_eu_2() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @flat_work_group_size_32_64_waves_per_eu_2() [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(32, 64), amdgpu_waves_per_eu(2, 4))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_32_64_waves_per_eu_2_4() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @flat_work_group_size_32_64_waves_per_eu_2_4() [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_4:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(32, 64), amdgpu_num_sgpr(32))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_32_64_num_sgpr_32() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @flat_work_group_size_32_64_num_sgpr_32() [[FLAT_WORK_GROUP_SIZE_32_64_NUM_SGPR_32:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(32, 64), amdgpu_num_vgpr(64))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_32_64_num_vgpr_64() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @flat_work_group_size_32_64_num_vgpr_64() [[FLAT_WORK_GROUP_SIZE_32_64_NUM_VGPR_64:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_waves_per_eu(2), amdgpu_num_sgpr(32))) // expected-no-diagnostics
|
|
|
|
kernel void waves_per_eu_2_num_sgpr_32() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @waves_per_eu_2_num_sgpr_32() [[WAVES_PER_EU_2_NUM_SGPR_32:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_waves_per_eu(2), amdgpu_num_vgpr(64))) // expected-no-diagnostics
|
|
|
|
kernel void waves_per_eu_2_num_vgpr_64() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @waves_per_eu_2_num_vgpr_64() [[WAVES_PER_EU_2_NUM_VGPR_64:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_waves_per_eu(2, 4), amdgpu_num_sgpr(32))) // expected-no-diagnostics
|
|
|
|
kernel void waves_per_eu_2_4_num_sgpr_32() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @waves_per_eu_2_4_num_sgpr_32() [[WAVES_PER_EU_2_4_NUM_SGPR_32:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_waves_per_eu(2, 4), amdgpu_num_vgpr(64))) // expected-no-diagnostics
|
|
|
|
kernel void waves_per_eu_2_4_num_vgpr_64() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @waves_per_eu_2_4_num_vgpr_64() [[WAVES_PER_EU_2_4_NUM_VGPR_64:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_num_sgpr(32), amdgpu_num_vgpr(64))) // expected-no-diagnostics
|
|
|
|
kernel void num_sgpr_32_num_vgpr_64() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @num_sgpr_32_num_vgpr_64() [[NUM_SGPR_32_NUM_VGPR_64:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(32, 64), amdgpu_waves_per_eu(2), amdgpu_num_sgpr(32)))
|
|
|
|
kernel void flat_work_group_size_32_64_waves_per_eu_2_num_sgpr_32() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @flat_work_group_size_32_64_waves_per_eu_2_num_sgpr_32() [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_NUM_SGPR_32:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(32, 64), amdgpu_waves_per_eu(2), amdgpu_num_vgpr(64)))
|
|
|
|
kernel void flat_work_group_size_32_64_waves_per_eu_2_num_vgpr_64() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @flat_work_group_size_32_64_waves_per_eu_2_num_vgpr_64() [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_NUM_VGPR_64:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(32, 64), amdgpu_waves_per_eu(2, 4), amdgpu_num_sgpr(32)))
|
|
|
|
kernel void flat_work_group_size_32_64_waves_per_eu_2_4_num_sgpr_32() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @flat_work_group_size_32_64_waves_per_eu_2_4_num_sgpr_32() [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_4_NUM_SGPR_32:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(32, 64), amdgpu_waves_per_eu(2, 4), amdgpu_num_vgpr(64)))
|
|
|
|
kernel void flat_work_group_size_32_64_waves_per_eu_2_4_num_vgpr_64() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @flat_work_group_size_32_64_waves_per_eu_2_4_num_vgpr_64() [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_4_NUM_VGPR_64:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(32, 64), amdgpu_waves_per_eu(2), amdgpu_num_sgpr(32), amdgpu_num_vgpr(64))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_32_64_waves_per_eu_2_num_sgpr_32_num_vgpr_64() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @flat_work_group_size_32_64_waves_per_eu_2_num_sgpr_32_num_vgpr_64() [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_NUM_SGPR_32_NUM_VGPR_64:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
__attribute__((amdgpu_flat_work_group_size(32, 64), amdgpu_waves_per_eu(2, 4), amdgpu_num_sgpr(32), amdgpu_num_vgpr(64))) // expected-no-diagnostics
|
|
|
|
kernel void flat_work_group_size_32_64_waves_per_eu_2_4_num_sgpr_32_num_vgpr_64() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @flat_work_group_size_32_64_waves_per_eu_2_4_num_sgpr_32_num_vgpr_64() [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_4_NUM_SGPR_32_NUM_VGPR_64:#[0-9]+]]
|
2016-09-26 09:02:57 +08:00
|
|
|
}
|
|
|
|
|
2017-04-07 02:15:44 +08:00
|
|
|
__attribute__((reqd_work_group_size(32, 2, 1))) // expected-no-diagnostics
|
|
|
|
kernel void reqd_work_group_size_32_2_1() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @reqd_work_group_size_32_2_1() [[FLAT_WORK_GROUP_SIZE_64_64:#[0-9]+]]
|
2017-04-07 02:15:44 +08:00
|
|
|
}
|
|
|
|
__attribute__((reqd_work_group_size(32, 2, 1), amdgpu_flat_work_group_size(16, 128))) // expected-no-diagnostics
|
|
|
|
kernel void reqd_work_group_size_32_2_1_flat_work_group_size_16_128() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @reqd_work_group_size_32_2_1_flat_work_group_size_16_128() [[FLAT_WORK_GROUP_SIZE_16_128:#[0-9]+]]
|
2017-04-07 02:15:44 +08:00
|
|
|
}
|
|
|
|
|
2018-03-24 02:43:15 +08:00
|
|
|
void a_function() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} void @a_function() [[A_FUNCTION:#[0-9]+]]
|
2018-03-24 02:43:15 +08:00
|
|
|
}
|
|
|
|
|
2019-08-28 03:25:40 +08:00
|
|
|
kernel void default_kernel() {
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} amdgpu_kernel void @default_kernel() [[DEFAULT_KERNEL_ATTRS:#[0-9]+]]
|
2019-08-28 03:25:40 +08:00
|
|
|
}
|
|
|
|
|
2017-04-07 02:15:44 +08:00
|
|
|
|
2016-09-26 09:02:57 +08:00
|
|
|
// Make sure this is silently accepted on other targets.
|
|
|
|
// X86-NOT: "amdgpu-flat-work-group-size"
|
|
|
|
// X86-NOT: "amdgpu-waves-per-eu"
|
|
|
|
// X86-NOT: "amdgpu-num-vgpr"
|
|
|
|
// X86-NOT: "amdgpu-num-sgpr"
|
2021-12-04 23:52:07 +08:00
|
|
|
// CHECK-NOT: "amdgpu-implicitarg-num-bytes"
|
2016-09-26 09:02:57 +08:00
|
|
|
|
|
|
|
// CHECK-NOT: "amdgpu-flat-work-group-size"="0,0"
|
|
|
|
// CHECK-NOT: "amdgpu-waves-per-eu"="0"
|
|
|
|
// CHECK-NOT: "amdgpu-waves-per-eu"="0,0"
|
|
|
|
// CHECK-NOT: "amdgpu-num-sgpr"="0"
|
|
|
|
// CHECK-NOT: "amdgpu-num-vgpr"="0"
|
|
|
|
|
2021-12-04 23:52:07 +08:00
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_32_64]] = {{.*}} "amdgpu-flat-work-group-size"="32,64"
|
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_64_64]] = {{.*}} "amdgpu-flat-work-group-size"="64,64"
|
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_16_128]] = {{.*}} "amdgpu-flat-work-group-size"="16,128"
|
2020-01-30 03:11:37 +08:00
|
|
|
|
2021-12-04 23:52:07 +08:00
|
|
|
// CHECK-DAG: attributes [[WAVES_PER_EU_2]] = {{.*}} "amdgpu-flat-work-group-size"="1,256" "amdgpu-waves-per-eu"="2"
|
2020-01-30 03:11:37 +08:00
|
|
|
|
2021-12-04 23:52:07 +08:00
|
|
|
// CHECK-DAG: attributes [[WAVES_PER_EU_2_4]] = {{.*}} "amdgpu-flat-work-group-size"="1,256" "amdgpu-waves-per-eu"="2,4"
|
|
|
|
// CHECK-DAG: attributes [[NUM_SGPR_32]] = {{.*}} "amdgpu-flat-work-group-size"="1,256" "amdgpu-num-sgpr"="32"
|
|
|
|
// CHECK-DAG: attributes [[NUM_VGPR_64]] = {{.*}} "amdgpu-flat-work-group-size"="1,256" "amdgpu-num-vgpr"="64"
|
2020-01-30 03:11:37 +08:00
|
|
|
|
2021-12-04 23:52:07 +08:00
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2]] = {{.*}} "amdgpu-flat-work-group-size"="32,64" "amdgpu-waves-per-eu"="2"
|
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_4]] = {{.*}} "amdgpu-flat-work-group-size"="32,64" "amdgpu-waves-per-eu"="2,4"
|
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_32_64_NUM_SGPR_32]] = {{.*}} "amdgpu-flat-work-group-size"="32,64" "amdgpu-num-sgpr"="32"
|
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_32_64_NUM_VGPR_64]] = {{.*}} "amdgpu-flat-work-group-size"="32,64" "amdgpu-num-vgpr"="64"
|
|
|
|
// CHECK-DAG: attributes [[WAVES_PER_EU_2_NUM_SGPR_32]] = {{.*}} "amdgpu-flat-work-group-size"="1,256" "amdgpu-num-sgpr"="32" "amdgpu-waves-per-eu"="2"
|
|
|
|
// CHECK-DAG: attributes [[WAVES_PER_EU_2_NUM_VGPR_64]] = {{.*}} "amdgpu-flat-work-group-size"="1,256" "amdgpu-num-vgpr"="64" "amdgpu-waves-per-eu"="2"
|
|
|
|
// CHECK-DAG: attributes [[WAVES_PER_EU_2_4_NUM_SGPR_32]] = {{.*}} "amdgpu-flat-work-group-size"="1,256" "amdgpu-num-sgpr"="32" "amdgpu-waves-per-eu"="2,4"
|
|
|
|
// CHECK-DAG: attributes [[WAVES_PER_EU_2_4_NUM_VGPR_64]] = {{.*}} "amdgpu-flat-work-group-size"="1,256" "amdgpu-num-vgpr"="64" "amdgpu-waves-per-eu"="2,4"
|
|
|
|
// CHECK-DAG: attributes [[NUM_SGPR_32_NUM_VGPR_64]] = {{.*}} "amdgpu-flat-work-group-size"="1,256" "amdgpu-num-sgpr"="32" "amdgpu-num-vgpr"="64"
|
2020-01-30 03:11:37 +08:00
|
|
|
|
2021-12-04 23:52:07 +08:00
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_NUM_SGPR_32]] = {{.*}} "amdgpu-flat-work-group-size"="32,64" "amdgpu-num-sgpr"="32" "amdgpu-waves-per-eu"="2"
|
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_NUM_VGPR_64]] = {{.*}} "amdgpu-flat-work-group-size"="32,64" "amdgpu-num-vgpr"="64" "amdgpu-waves-per-eu"="2"
|
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_4_NUM_SGPR_32]] = {{.*}} "amdgpu-flat-work-group-size"="32,64" "amdgpu-num-sgpr"="32" "amdgpu-waves-per-eu"="2,4"
|
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_4_NUM_VGPR_64]] = {{.*}} "amdgpu-flat-work-group-size"="32,64" "amdgpu-num-vgpr"="64" "amdgpu-waves-per-eu"="2,4"
|
2020-01-30 03:11:37 +08:00
|
|
|
|
2021-12-04 23:52:07 +08:00
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_NUM_SGPR_32_NUM_VGPR_64]] = {{.*}} "amdgpu-flat-work-group-size"="32,64" "amdgpu-num-sgpr"="32" "amdgpu-num-vgpr"="64" "amdgpu-waves-per-eu"="2"
|
|
|
|
// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_32_64_WAVES_PER_EU_2_4_NUM_SGPR_32_NUM_VGPR_64]] = {{.*}} "amdgpu-flat-work-group-size"="32,64" "amdgpu-num-sgpr"="32" "amdgpu-num-vgpr"="64" "amdgpu-waves-per-eu"="2,4"
|
2020-01-30 03:11:37 +08:00
|
|
|
|
2020-09-28 22:54:16 +08:00
|
|
|
// CHECK-DAG: attributes [[A_FUNCTION]] = {{.*}}
|
2021-12-04 23:52:07 +08:00
|
|
|
// CHECK-DAG: attributes [[DEFAULT_KERNEL_ATTRS]] = {{.*}} "amdgpu-flat-work-group-size"="1,256"
|