Skip to content

Commit eff1258

Browse files
committed
Fix Clang-format errors
Signed-off-by: Soumi Manna <[email protected]>
1 parent 7fdfe12 commit eff1258

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9987,8 +9987,8 @@ class Sema final {
99879987
void AddIntelFPGABankBitsAttr(Decl *D, const AttributeCommonInfo &CI,
99889988
Expr **Exprs, unsigned Size);
99899989
template <typename AttrType>
9990-
void addIntelSYCLFunctionAttr(Decl *D, const AttributeCommonInfo &CI, Expr *E);
9991-
9990+
void addIntelSYCLFunctionAttr(Decl *D, const AttributeCommonInfo &CI,
9991+
Expr *E);
99929992
/// AddAlignedAttr - Adds an aligned attribute to a particular declaration.
99939993
void AddAlignedAttr(Decl *D, const AttributeCommonInfo &CI, Expr *E,
99949994
bool IsPackExpansion);
@@ -12835,8 +12835,7 @@ class Sema final {
1283512835
};
1283612836

1283712837
template <typename AttrType>
12838-
void Sema::addIntelSYCLFunctionAttr(Decl *D,
12839-
const AttributeCommonInfo &Attr,
12838+
void Sema::addIntelSYCLFunctionAttr(Decl *D, const AttributeCommonInfo &Attr,
1284012839
Expr *E) {
1284112840
if (!E)
1284212841
return;

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3002,7 +3002,7 @@ static void handleNumSimdWorkItemsAttr(Sema &S, Decl *D,
30023002
if (D->getAttr<SYCLIntelNumSimdWorkItemsAttr>())
30033003
S.Diag(Attr.getLoc(), diag::warn_duplicate_attribute) << Attr;
30043004

3005-
S.addIntelSYCLFunctionAttr<SYCLIntelNumSimdWorkItemsAttr>(D, Attr, E);
3005+
S.addIntelSYCLFunctionAttr<SYCLIntelNumSimdWorkItemsAttr>(D, Attr, E);
30063006
}
30073007

30083008
// Handles max_global_work_dim.

clang/test/CodeGenSYCL/num-simd-work-items.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ void bar() {
2525

2626
Functor<2> f;
2727
kernel<class kernel_name3>(f);
28-
2928
}
3029

3130
// CHECK: define spir_kernel void @{{.*}}kernel_name1() {{.*}} !num_simd_work_items ![[NUM1:[0-9]+]]

clang/test/SemaSYCL/num_simd_work_items_device.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ int main() {
5353
[[intelfpga::num_simd_work_items(0)]] int Var = 0; // expected-error{{'num_simd_work_items' attribute only applies to functions}}
5454

5555
kernel<class test_kernel4>(
56-
[]() [[intelfpga::num_simd_work_items(0)]] {}); // expected-error{{'num_simd_work_items' attribute requires a positive integral compile time constant expression}}
56+
[]() [[intelfpga::num_simd_work_items(0)]]{}); // expected-error{{'num_simd_work_items' attribute requires a positive integral compile time constant expression}}
5757

5858
kernel<class test_kernel5>(
59-
[]() [[intelfpga::num_simd_work_items(-42)]] {}); // expected-error{{'num_simd_work_items' attribute requires a positive integral compile time constant expression}}
59+
[]() [[intelfpga::num_simd_work_items(-42)]]{}); // expected-error{{'num_simd_work_items' attribute requires a positive integral compile time constant expression}}
6060

6161
kernel<class test_kernel6>(
6262
[]() [[intelfpga::num_simd_work_items(1), intelfpga::num_simd_work_items(2)]] {}); // expected-warning{{attribute 'num_simd_work_items' is already applied with different parameters}}

0 commit comments

Comments
 (0)