From 421217acd9046b03a8452eda3938a46a04480568 Mon Sep 17 00:00:00 2001 From: Aleksander Fadeev Date: Thu, 12 Mar 2020 18:14:03 +0300 Subject: [PATCH] [SYCL] Support intel::reqd_work_group_size (fix #8.2) Signed-off-by: Aleksander Fadeev --- clang/lib/Sema/SemaDeclAttr.cpp | 2 -- clang/test/Misc/pragma-attribute-supported-attributes-list.test | 1 - 2 files changed, 3 deletions(-) diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index 32639b720924c..51ed63d612636 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -36,7 +36,6 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringExtras.h" #include "llvm/Support/MathExtras.h" -#include using namespace clang; using namespace sema; @@ -2916,7 +2915,6 @@ static bool checkWorkGroupSizeValues(Sema &S, Decl *D, const ParsedAttr &Attr, return Result; } -//#include // Handles reqd_work_group_size, work_group_size_hint and max_work_group_size template static void handleWorkGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) { diff --git a/clang/test/Misc/pragma-attribute-supported-attributes-list.test b/clang/test/Misc/pragma-attribute-supported-attributes-list.test index 282014396e86b..2a196f48973b2 100644 --- a/clang/test/Misc/pragma-attribute-supported-attributes-list.test +++ b/clang/test/Misc/pragma-attribute-supported-attributes-list.test @@ -140,7 +140,6 @@ // CHECK-NEXT: SYCLDevice (SubjectMatchRule_function) // CHECK-NEXT: SYCLDeviceIndirectlyCallable (SubjectMatchRule_function) // CHECK-NEXT: SYCLIntelKernelArgsRestrict (SubjectMatchRule_function) -// CHECK-NEXT: SYCLIntelReqdWorkGroupSize (SubjectMatchRule_function) // CHECK-NEXT: ScopedLockable (SubjectMatchRule_record) // CHECK-NEXT: Section (SubjectMatchRule_function, SubjectMatchRule_variable_is_global, SubjectMatchRule_objc_method, SubjectMatchRule_objc_property) // CHECK-NEXT: SetTypestate (SubjectMatchRule_function_is_member)