Skip to content

Commit 489bab4

Browse files
author
iclsrc
committed
Merge from 'sycl' to 'sycl-web' (#6)
2 parents 5658945 + df45f00 commit 489bab4

24 files changed

+1071
-500
lines changed

buildbot/dependency.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ ocl_cpu_rt_ver_win=2020.11.8.0.27
77
# https://github.com/intel/compute-runtime/releases/tag/20.35.17767
88
ocl_gpu_rt_ver=20.35.17767
99
# Same GPU driver supports Level Zero and OpenCL:
10-
# https://downloadmirror.intel.com/29817/a08/igfx_win10_100.8673.zip
11-
ocl_gpu_rt_ver_win=27.20.100.8673
10+
# https://downloadmirror.intel.com/29879/a08/igfx_win10_100.8778.zip
11+
ocl_gpu_rt_ver_win=27.20.100.8778
1212
intel_sycl_ver=build
1313
# https://github.com/oneapi-src/oneTBB/releases/download/v2021.1-beta08/oneapi-tbb-2021.1-beta08-lin.tgz
1414
tbb_ver=2021.1.9.636
@@ -25,7 +25,7 @@ fpga_ver_win=20200811_000006
2525
cpu_driver_lin=2020.11.8.0.27
2626
cpu_driver_win=2020.11.8.0.27
2727
gpu_driver_lin=20.35.17767
28-
gpu_driver_win=27.20.100.8673
28+
gpu_driver_win=27.20.100.8778
2929
fpga_driver_lin=2020.11.8.0.27
3030
fpga_driver_win=2020.11.8.0.27
3131
# NVidia CUDA driver

clang/include/clang/Basic/Attr.td

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,14 @@ def SYCLIntelBufferLocation : InheritableAttr {
11991199
let Documentation = [Undocumented];
12001200
}
12011201

1202+
def SYCLRequiresDecomposition : InheritableAttr {
1203+
// No spellings, as this is for internal use.
1204+
let Spellings = [];
1205+
let Subjects = SubjectList<[Named]>;
1206+
let LangOpts = [SYCLIsDevice, SYCLIsHost];
1207+
let Documentation = [Undocumented];
1208+
}
1209+
12021210
def SYCLIntelKernelArgsRestrict : InheritableAttr {
12031211
let Spellings = [ CXX11<"intel", "kernel_args_restrict"> ];
12041212
let Subjects = SubjectList<[Function], ErrorDiag>;

clang/lib/Sema/SemaDecl.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3203,8 +3203,12 @@ static void adjustDeclContextForDeclaratorDecl(DeclaratorDecl *NewD,
32033203
template <typename AttributeType>
32043204
static void checkDimensionsAndSetDiagnostics(Sema &S, FunctionDecl *New,
32053205
FunctionDecl *Old) {
3206-
AttributeType *NewDeclAttr = New->getAttr<AttributeType>();
3207-
AttributeType *OldDeclAttr = Old->getAttr<AttributeType>();
3206+
const auto *NewDeclAttr = New->getAttr<AttributeType>();
3207+
const auto *OldDeclAttr = Old->getAttr<AttributeType>();
3208+
3209+
if (!NewDeclAttr || !OldDeclAttr)
3210+
return;
3211+
32083212
if ((NewDeclAttr->getXDim() != OldDeclAttr->getXDim()) ||
32093213
(NewDeclAttr->getYDim() != OldDeclAttr->getYDim()) ||
32103214
(NewDeclAttr->getZDim() != OldDeclAttr->getZDim())) {
@@ -3290,12 +3294,8 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD,
32903294
}
32913295
}
32923296

3293-
if (New->hasAttr<ReqdWorkGroupSizeAttr>() &&
3294-
Old->hasAttr<ReqdWorkGroupSizeAttr>())
32953297
checkDimensionsAndSetDiagnostics<ReqdWorkGroupSizeAttr>(*this, New, Old);
32963298

3297-
if (New->hasAttr<SYCLIntelMaxWorkGroupSizeAttr>() &&
3298-
Old->hasAttr<SYCLIntelMaxWorkGroupSizeAttr>())
32993299
checkDimensionsAndSetDiagnostics<SYCLIntelMaxWorkGroupSizeAttr>(*this, New,
33003300
Old);
33013301

0 commit comments

Comments
 (0)