Skip to content

Commit 1137c2d

Browse files
committed
update function name to make it more readable
Signed-off-by: Soumi Manna <[email protected]>
1 parent 5b924a0 commit 1137c2d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -3419,7 +3419,7 @@ static bool InvalidWorkGroupSizeAttrs(const Expr *MGValue, const Expr *XDim,
34193419
// with 'max_work_group_size' attribute, check to see if values of
34203420
// 'reqd_work_group_size' attribute arguments are equal and less than values of
34213421
// 'max_work_group_size' attribute arguments.
3422-
static bool checkWorkGroupSizeAttrValues(
3422+
static bool checkMaxAllowedWorkGroupSize(
34233423
Sema &S, const Expr *RWGSXDim, const Expr *RWGSYDim, const Expr *RWGSZDim,
34243424
const Expr *MWGSXDim, const Expr *MWGSYDim, const Expr *MWGSZDim) {
34253425
// If any of the operand is still value dependent, we can't test anything.
@@ -3507,7 +3507,7 @@ void Sema::AddSYCLIntelMaxWorkGroupSizeAttr(Decl *D,
35073507
// __attribute__((reqd_work_group_size)) is only available in OpenCL mode
35083508
// and follows the OpenCL rules.
35093509
if (const auto *DeclAttr = D->getAttr<ReqdWorkGroupSizeAttr>()) {
3510-
if (checkWorkGroupSizeAttrValues(*this, DeclAttr->getXDim(),
3510+
if (checkMaxAllowedWorkGroupSize(*this, DeclAttr->getXDim(),
35113511
DeclAttr->getYDim(), DeclAttr->getZDim(),
35123512
XDim, YDim, ZDim)) {
35133513
Diag(CI.getLoc(), diag::err_conflicting_sycl_function_attributes)
@@ -3595,7 +3595,7 @@ SYCLIntelMaxWorkGroupSizeAttr *Sema::MergeSYCLIntelMaxWorkGroupSizeAttr(
35953595
// __attribute__((reqd_work_group_size)) is only available in OpenCL mode
35963596
// and follows the OpenCL rules.
35973597
if (const auto *DeclAttr = D->getAttr<ReqdWorkGroupSizeAttr>()) {
3598-
if (checkWorkGroupSizeAttrValues(*this, DeclAttr->getXDim(),
3598+
if (checkMaxAllowedWorkGroupSize(*this, DeclAttr->getXDim(),
35993599
DeclAttr->getYDim(), DeclAttr->getZDim(),
36003600
A.getXDim(), A.getYDim(), A.getZDim())) {
36013601
Diag(DeclAttr->getLoc(), diag::err_conflicting_sycl_function_attributes)
@@ -3720,7 +3720,7 @@ void Sema::AddReqdWorkGroupSizeAttr(Decl *D, const AttributeCommonInfo &CI,
37203720
// mode. All spellings of reqd_work_group_size attribute (regardless of
37213721
// syntax used) follow the SYCL rules when in SYCL mode.
37223722
if (const auto *DeclAttr = D->getAttr<SYCLIntelMaxWorkGroupSizeAttr>()) {
3723-
if (checkWorkGroupSizeAttrValues(*this, XDim, YDim, ZDim,
3723+
if (checkMaxAllowedWorkGroupSize(*this, XDim, YDim, ZDim,
37243724
DeclAttr->getXDim(), DeclAttr->getYDim(),
37253725
DeclAttr->getZDim())) {
37263726
Diag(CI.getLoc(), diag::err_conflicting_sycl_function_attributes)
@@ -3810,7 +3810,7 @@ Sema::MergeReqdWorkGroupSizeAttr(Decl *D, const ReqdWorkGroupSizeAttr &A) {
38103810
// mode. All spellings of reqd_work_group_size attribute (regardless of
38113811
// syntax used) follow the SYCL rules when in SYCL mode.
38123812
if (const auto *DeclAttr = D->getAttr<SYCLIntelMaxWorkGroupSizeAttr>()) {
3813-
if (checkWorkGroupSizeAttrValues(
3813+
if (checkMaxAllowedWorkGroupSize(
38143814
*this, A.getXDim(), A.getYDim(), A.getZDim(), DeclAttr->getXDim(),
38153815
DeclAttr->getYDim(), DeclAttr->getZDim())) {
38163816
Diag(DeclAttr->getLoc(), diag::err_conflicting_sycl_function_attributes)

0 commit comments

Comments
 (0)