Skip to content

Commit 2415f3b

Browse files
author
iclsrc
committed
Merge from 'sycl' to 'sycl-web'
2 parents 69224a7 + ad05778 commit 2415f3b

File tree

90 files changed

+3508
-772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+3508
-772
lines changed

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,8 @@ sycl/doc/extensions/ @intel/dpcpp-specification-reviewers
8686

8787
xpti/ @tovinkere @andykaylor
8888
xptifw/ @tovinkere @andykaylor
89+
90+
llvm/tools/sycl-post-link/ @kbobrovs @AlexeySachkov
91+
92+
clang/tools/clang-offload-bundler/ @kbobrovs @sndmitriev
93+
clang/tools/clang-offload-wrapper/ @sndmitriev @kbobrovs

clang/include/clang/Sema/Sema.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10193,11 +10193,6 @@ class Sema final {
1019310193
bool checkAllowedSYCLInitializer(VarDecl *VD,
1019410194
bool CheckValueDependent = false);
1019510195

10196-
// Adds a scheduler_target_fmax_mhz attribute to a particular declaration.
10197-
void addSYCLIntelSchedulerTargetFmaxMhzAttr(Decl *D,
10198-
const AttributeCommonInfo &CI,
10199-
Expr *E);
10200-
1020110196
//===--------------------------------------------------------------------===//
1020210197
// C++ Coroutines TS
1020310198
//

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3048,24 +3048,6 @@ static void handleUseStallEnableClustersAttr(Sema &S, Decl *D,
30483048
handleSimpleAttribute<SYCLIntelUseStallEnableClustersAttr>(S, D, Attr);
30493049
}
30503050

3051-
// Add scheduler_target_fmax_mhz
3052-
void Sema::addSYCLIntelSchedulerTargetFmaxMhzAttr(
3053-
Decl *D, const AttributeCommonInfo &Attr, Expr *E) {
3054-
assert(E && "Attribute must have an argument.");
3055-
3056-
SYCLIntelSchedulerTargetFmaxMhzAttr TmpAttr(Context, Attr, E);
3057-
if (!E->isValueDependent()) {
3058-
ExprResult ResultExpr;
3059-
if (checkRangedIntegralArgument<SYCLIntelSchedulerTargetFmaxMhzAttr>(
3060-
E, &TmpAttr, ResultExpr))
3061-
return;
3062-
E = ResultExpr.get();
3063-
}
3064-
3065-
D->addAttr(::new (Context)
3066-
SYCLIntelSchedulerTargetFmaxMhzAttr(Context, Attr, E));
3067-
}
3068-
30693051
// Handle scheduler_target_fmax_mhz
30703052
static void handleSchedulerTargetFmaxMhzAttr(Sema &S, Decl *D,
30713053
const ParsedAttr &AL) {
@@ -3081,7 +3063,7 @@ static void handleSchedulerTargetFmaxMhzAttr(Sema &S, Decl *D,
30813063
S.Diag(AL.getLoc(), diag::note_spelling_suggestion)
30823064
<< "'intel::scheduler_target_fmax_mhz'";
30833065

3084-
S.addSYCLIntelSchedulerTargetFmaxMhzAttr(D, AL, E);
3066+
S.AddOneConstantValueAttr<SYCLIntelSchedulerTargetFmaxMhzAttr>(D, AL, E);
30853067
}
30863068

30873069
// Handles max_global_work_dim.

clang/test/Driver/clang-offload-bundler.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
// CK-HELP: {{.*}}o {{.*}}- object
4747
// CK-HELP: {{.*}}gch {{.*}}- precompiled-header
4848
// CK-HELP: {{.*}}ast {{.*}}- clang AST file
49+
// CK-HELP: {{.*}}a {{.*}}- archive of objects
4950
// CK-HELP: {{.*}}ao {{.*}}- archive with one object; output is an unbundled object
5051
// CK-HELP: {{.*}}aoo {{.*}}- archive; output file is a list of unbundled objects
5152
// CK-HELP: {{.*}}-unbundle {{.*}}- Unbundle bundled file into several output files.
@@ -341,6 +342,17 @@
341342
// RUN: diff %t.tgt1 %t.res.tgt1
342343
// RUN: diff %t.tgt2 %t.res.tgt2
343344

345+
// Check archive mode.
346+
// RUN: clang-offload-bundler -type=a -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.host.a,%t.tgt1.a,%t.tgt2.a -inputs=%t.a -unbundle
347+
// RUN: cmp %t.host.a %t.a
348+
// RUN: llvm-ar t %t.tgt1.a | FileCheck %s --check-prefix=CHECK-AR-TGT1-LIST
349+
// RUN: llvm-ar t %t.tgt2.a | FileCheck %s --check-prefix=CHECK-AR-TGT2-LIST
350+
351+
// CHECK-AR-TGT1-LIST: openmp-powerpc64le-ibm-linux-gnu.{{.+}}.bundle3.o
352+
// CHECK-AR-TGT1-LIST: openmp-powerpc64le-ibm-linux-gnu.{{.+}}.bundle4.o
353+
// CHECK-AR-TGT2-LIST: openmp-x86_64-pc-linux-gnu.{{.+}}.bundle3.o
354+
// CHECK-AR-TGT2-LIST: openmp-x86_64-pc-linux-gnu.{{.+}}.bundle4.o
355+
344356
// Some code so that we can create a binary out of this file.
345357
int A = 0;
346358
void test_func(void) {

0 commit comments

Comments
 (0)