Skip to content

Commit 79c65d4

Browse files
committed
Merge from 'main' to 'sycl-web' (intel#39)
CONFLICT (content): Merge conflict in clang/test/Driver/clang-offload-bundler.c
2 parents 9c6c41b + b9fb063 commit 79c65d4

File tree

139 files changed

+9424
-8318
lines changed

Some content is hidden

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

139 files changed

+9424
-8318
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#pragma once
2+
3+
namespace std {
4+
namespace experimental {
5+
6+
template <typename ret_t, typename... args_t>
7+
struct coroutine_traits {
8+
using promise_type = typename ret_t::promise_type;
9+
};
10+
11+
template <class promise_t>
12+
struct coroutine_handle {
13+
static constexpr coroutine_handle from_address(void *addr) noexcept { return {}; };
14+
};
15+
16+
} // namespace experimental
17+
} // namespace std
18+
19+
struct never_suspend {
20+
bool await_ready() noexcept { return false; }
21+
template <typename coro_t>
22+
void await_suspend(coro_t handle) noexcept {}
23+
void await_resume() noexcept {}
24+
};
25+
26+
struct task {
27+
struct promise_type {
28+
task get_return_object() noexcept { return {}; }
29+
never_suspend initial_suspend() noexcept { return {}; }
30+
never_suspend final_suspend() noexcept { return {}; }
31+
void return_void() {}
32+
void unhandled_exception() {}
33+
};
34+
};

clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming.cpp

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,14 @@
8181
// RUN: {key: readability-identifier-naming.LocalPointerPrefix, value: 'l_'}, \
8282
// RUN: {key: readability-identifier-naming.LocalConstantPointerCase, value: CamelCase}, \
8383
// RUN: {key: readability-identifier-naming.LocalConstantPointerPrefix, value: 'lc_'}, \
84-
// RUN: ]}' -- -fno-delayed-template-parsing -Dbad_macro \
84+
// RUN: ]}' -- -fno-delayed-template-parsing -Dbad_macro -std=c++17 -fcoroutines-ts \
8585
// RUN: -I%S/Inputs/readability-identifier-naming \
8686
// RUN: -isystem %S/Inputs/readability-identifier-naming/system
8787

8888
// clang-format off
8989

9090
#include <system-header.h>
91+
#include <coroutines.h>
9192
#include "user-header.h"
9293
// NO warnings or fixes expected from declarations within header files without
9394
// the -header-filter= option
@@ -287,7 +288,7 @@ class COverriding : public AOverridden {
287288
// Overriding a badly-named base isn't a new violation.
288289
void BadBaseMethod() override {}
289290
// CHECK-FIXES: {{^}} void v_Bad_Base_Method() override {}
290-
291+
291292
void foo() {
292293
BadBaseMethod();
293294
// CHECK-FIXES: {{^}} v_Bad_Base_Method();
@@ -614,3 +615,14 @@ template<typename type_t>
614615
auto GetRes(type_t& Param) -> decltype(Param.res());
615616
// CHECK-MESSAGES: :[[@LINE-1]]:21: warning: invalid case style for parameter 'Param'
616617
// CHECK-FIXES: auto GetRes(type_t& a_param) -> decltype(a_param.res());
618+
619+
// Check implicit declarations in coroutines
620+
621+
struct async_obj {
622+
public:
623+
never_suspend operator co_await() const noexcept;
624+
};
625+
626+
task ImplicitDeclTest(async_obj &a_object) {
627+
co_await a_object; // CHECK-MESSAGES-NOT: warning: invalid case style for local variable
628+
}

clang/include/clang/Basic/AttrDocs.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4004,7 +4004,7 @@ As ``global_device`` and ``global_host`` are a subset of
40044004
``__global/opencl_global`` address spaces it is allowed to convert
40054005
``global_device`` and ``global_host`` address spaces to
40064006
``__global/opencl_global`` address spaces (following ISO/IEC TR 18037 5.1.3
4007-
"Address space nesting and rules for pointers).
4007+
"Address space nesting and rules for pointers").
40084008
}];
40094009
}
40104010

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7770,6 +7770,7 @@ void OffloadBundler::ConstructJobMultipleOutputs(
77707770
}
77717771
CmdArgs.push_back(TCArgs.MakeArgString(UB));
77727772
CmdArgs.push_back("-unbundle");
7773+
CmdArgs.push_back("-allow-missing-bundles");
77737774

77747775
// All the inputs are encoded as commands.
77757776
C.addCommand(std::make_unique<Command>(

clang/lib/Sema/SemaCoroutine.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ VarDecl *Sema::buildCoroutinePromise(SourceLocation Loc) {
544544
auto *VD = VarDecl::Create(Context, FD, FD->getLocation(), FD->getLocation(),
545545
&PP.getIdentifierTable().get("__promise"), T,
546546
Context.getTrivialTypeSourceInfo(T, Loc), SC_None);
547+
VD->setImplicit();
547548
CheckVariableDeclarationType(VD);
548549
if (VD->isInvalidDecl())
549550
return nullptr;
@@ -1577,6 +1578,7 @@ bool CoroutineStmtBuilder::makeGroDeclAndReturnStmt() {
15771578
S.Context, &FD, FD.getLocation(), FD.getLocation(),
15781579
&S.PP.getIdentifierTable().get("__coro_gro"), GroType,
15791580
S.Context.getTrivialTypeSourceInfo(GroType, Loc), SC_None);
1581+
GroDecl->setImplicit();
15801582

15811583
S.CheckVariableDeclarationType(GroDecl);
15821584
if (GroDecl->isInvalidDecl())

clang/lib/Sema/SemaDecl.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5990,8 +5990,9 @@ static QualType TryToFixInvalidVariablyModifiedType(QualType T,
59905990
return QualType();
59915991
}
59925992

5993-
return Context.getConstantArrayType(ElemTy, Res, VLATy->getSizeExpr(),
5994-
ArrayType::Normal, 0);
5993+
QualType FoldedArrayType = Context.getConstantArrayType(
5994+
ElemTy, Res, VLATy->getSizeExpr(), ArrayType::Normal, 0);
5995+
return Qs.apply(Context, FoldedArrayType);
59955996
}
59965997

59975998
static void

clang/lib/StaticAnalyzer/Core/ExprEngine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3149,7 +3149,7 @@ struct DOTGraphTraits<ExplodedGraph*> : public DefaultDOTGraphTraits {
31493149
if (Stop(N))
31503150
return true;
31513151

3152-
if (N->succ_size() != 1 || !isNodeHidden(N->getFirstSucc()))
3152+
if (N->succ_size() != 1 || !isNodeHidden(N->getFirstSucc(), nullptr))
31533153
break;
31543154
PostCallback(N);
31553155

@@ -3158,7 +3158,7 @@ struct DOTGraphTraits<ExplodedGraph*> : public DefaultDOTGraphTraits {
31583158
return false;
31593159
}
31603160

3161-
static bool isNodeHidden(const ExplodedNode *N) {
3161+
static bool isNodeHidden(const ExplodedNode *N, const ExplodedGraph *G) {
31623162
return N->isTrivial();
31633163
}
31643164

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

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
// CK-HELP: {{.*}}one. The resulting file can also be unbundled into different files by
3434
// CK-HELP: {{.*}}this tool if -unbundle is provided.
3535
// CK-HELP: {{.*}}USAGE: clang-offload-bundler [options]
36+
// CK-HELP: {{.*}}-allow-missing-bundles {{.*}}- Create empty files if bundles are missing when unbundling
3637
// CK-HELP: {{.*}}-inputs=<string> - [<input file>,...]
3738
// CK-HELP: {{.*}}-outputs=<string> - [<output file>,...]
3839
// CK-HELP: {{.*}}-targets=<string> - [<offload kind>-<target triple>,...]
@@ -90,7 +91,7 @@
9091
// RUN: not clang-offload-bundler -type=i -targets=openmp-powerpc64le-linux,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR9A
9192
// RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu -inputs=%t.i,%t.tgt1,%t.tgt2 -outputs=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR9B
9293
// CK-ERR9A: error: expecting exactly one host target but got 0
93-
// CK-ERR9B: error: expecting exactly one host target but got 2
94+
// CK-ERR9B: error: Duplicate targets are not allowed
9495

9596
// RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -outputs=%t.i,%t.tgt1,%t.tgt2 -inputs=%t.bundle.i -unbundle -check-section 2>&1 | FileCheck %s --check-prefix CK-ERR10
9697
// CK-ERR10: error: -unbundle and -check-section are not compatible options
@@ -195,17 +196,17 @@
195196
// RUN: diff %t.tgt2 %t.res.tgt2
196197

197198
// Check if we can unbundle a file with no magic strings.
198-
// RUN: clang-offload-bundler -type=s -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.res.s,%t.res.tgt1,%t.res.tgt2 -inputs=%t.s -unbundle
199+
// RUN: clang-offload-bundler -type=s -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.res.s,%t.res.tgt1,%t.res.tgt2 -inputs=%t.s -unbundle -allow-missing-bundles
199200
// RUN: diff %t.s %t.res.s
200201
// RUN: diff %t.empty %t.res.tgt1
201202
// RUN: diff %t.empty %t.res.tgt2
202-
// RUN: clang-offload-bundler -type=s -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu -outputs=%t.res.tgt1,%t.res.s,%t.res.tgt2 -inputs=%t.s -unbundle
203+
// RUN: clang-offload-bundler -type=s -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu -outputs=%t.res.tgt1,%t.res.s,%t.res.tgt2 -inputs=%t.s -unbundle -allow-missing-bundles
203204
// RUN: diff %t.s %t.res.s
204205
// RUN: diff %t.empty %t.res.tgt1
205206
// RUN: diff %t.empty %t.res.tgt2
206207

207208
// Check that bindler prints an error if given host bundle does not exist in the fat binary.
208-
// RUN: not clang-offload-bundler -type=s -targets=host-x86_64-xxx-linux-gnu,openmp-powerpc64le-ibm-linux-gnu -outputs=%t.res.s,%t.res.tgt1 -inputs=%t.bundle3.s -unbundle 2>&1 | FileCheck %s --check-prefix CK-NO-HOST-BUNDLE
209+
// RUN: not clang-offload-bundler -type=s -targets=host-x86_64-xxx-linux-gnu,openmp-powerpc64le-ibm-linux-gnu -outputs=%t.res.s,%t.res.tgt1 -inputs=%t.bundle3.s -unbundle -allow-missing-bundles 2>&1 | FileCheck %s --check-prefix CK-NO-HOST-BUNDLE
209210
// CK-NO-HOST-BUNDLE: error: Can't find bundle for the host target
210211

211212
//
@@ -243,11 +244,11 @@
243244
// RUN: diff %t.tgt1 %t.res.tgt1
244245

245246
// Check if we can unbundle a file with no magic strings.
246-
// RUN: clang-offload-bundler -type=bc -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.res.bc,%t.res.tgt1,%t.res.tgt2 -inputs=%t.bc -unbundle
247+
// RUN: clang-offload-bundler -type=bc -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.res.bc,%t.res.tgt1,%t.res.tgt2 -inputs=%t.bc -unbundle -allow-missing-bundles
247248
// RUN: diff %t.bc %t.res.bc
248249
// RUN: diff %t.empty %t.res.tgt1
249250
// RUN: diff %t.empty %t.res.tgt2
250-
// RUN: clang-offload-bundler -type=bc -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu -outputs=%t.res.tgt1,%t.res.bc,%t.res.tgt2 -inputs=%t.bc -unbundle
251+
// RUN: clang-offload-bundler -type=bc -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu -outputs=%t.res.tgt1,%t.res.bc,%t.res.tgt2 -inputs=%t.bc -unbundle -allow-missing-bundles
251252
// RUN: diff %t.bc %t.res.bc
252253
// RUN: diff %t.empty %t.res.tgt1
253254
// RUN: diff %t.empty %t.res.tgt2
@@ -283,11 +284,11 @@
283284
// RUN: diff %t.tgt1 %t.res.tgt1
284285

285286
// Check if we can unbundle a file with no magic strings.
286-
// RUN: clang-offload-bundler -type=o -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.res.o,%t.res.tgt1,%t.res.tgt2 -inputs=%t.o -unbundle
287+
// RUN: clang-offload-bundler -type=o -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -outputs=%t.res.o,%t.res.tgt1,%t.res.tgt2 -inputs=%t.o -unbundle -allow-missing-bundles
287288
// RUN: diff %t.o %t.res.o
288289
// RUN: diff %t.empty %t.res.tgt1
289290
// RUN: diff %t.empty %t.res.tgt2
290-
// RUN: clang-offload-bundler -type=o -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu -outputs=%t.res.tgt1,%t.res.o,%t.res.tgt2 -inputs=%t.o -unbundle
291+
// RUN: clang-offload-bundler -type=o -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu -outputs=%t.res.tgt1,%t.res.o,%t.res.tgt2 -inputs=%t.o -unbundle -allow-missing-bundles
291292
// RUN: diff %t.o %t.res.o
292293
// RUN: diff %t.empty %t.res.tgt1
293294
// RUN: diff %t.empty %t.res.tgt2
@@ -353,6 +354,36 @@
353354
// CHECK-AR-TGT2-LIST: openmp-x86_64-pc-linux-gnu.{{.+}}.bundle3.o
354355
// CHECK-AR-TGT2-LIST: openmp-x86_64-pc-linux-gnu.{{.+}}.bundle4.o
355356

357+
//
358+
// Check error due to missing bundles
359+
//
360+
// RUN: clang-offload-bundler -type=bc -targets=host-%itanium_abi_triple,hip-amdgcn-amd-amdhsa-gfx900 -inputs=%t.bc,%t.tgt1 -outputs=%t.hip.bundle.bc
361+
// RUN: not clang-offload-bundler -type=bc -inputs=%t.hip.bundle.bc -outputs=%t.tmp.bc -unbundle \
362+
// RUN: -targets=hip-amdgcn-amd-amdhsa-gfx906 \
363+
// RUN: 2>&1 | FileCheck -check-prefix=MISS1 %s
364+
// RUN: not clang-offload-bundler -type=bc -inputs=%t.hip.bundle.bc -outputs=%t.tmp.bc,%t.tmp2.bc -unbundle \
365+
// RUN: -targets=hip-amdgcn-amd-amdhsa-gfx906,hip-amdgcn-amd-amdhsa-gfx900 \
366+
// RUN: 2>&1 | FileCheck -check-prefix=MISS1 %s
367+
// MISS1: error: Can't find bundles for hip-amdgcn-amd-amdhsa-gfx906
368+
// RUN: not clang-offload-bundler -type=bc -inputs=%t.hip.bundle.bc -outputs=%t.tmp.bc,%t.tmp2.bc -unbundle \
369+
// RUN: -targets=hip-amdgcn-amd-amdhsa-gfx906,hip-amdgcn-amd-amdhsa-gfx803 \
370+
// RUN: 2>&1 | FileCheck -check-prefix=MISS2 %s
371+
// MISS2: error: Can't find bundles for hip-amdgcn-amd-amdhsa-gfx803 and hip-amdgcn-amd-amdhsa-gfx906
372+
// RUN: not clang-offload-bundler -type=bc -inputs=%t.hip.bundle.bc -outputs=%t.tmp.bc,%t.tmp2.bc,%t.tmp3.bc -unbundle \
373+
// RUN: -targets=hip-amdgcn-amd-amdhsa-gfx906,hip-amdgcn-amd-amdhsa-gfx803,hip-amdgcn-amd-amdhsa-gfx1010 \
374+
// RUN: 2>&1 | FileCheck -check-prefix=MISS3 %s
375+
// MISS3: error: Can't find bundles for hip-amdgcn-amd-amdhsa-gfx1010, hip-amdgcn-amd-amdhsa-gfx803, and hip-amdgcn-amd-amdhsa-gfx906
376+
377+
//
378+
// Check error due to duplicate targets
379+
//
380+
// RUN: not clang-offload-bundler -type=bc -targets=host-%itanium_abi_triple,hip-amdgcn-amd-amdhsa-gfx900,hip-amdgcn-amd-amdhsa-gfx900 \
381+
// RUN: -inputs=%t.bc,%t.tgt1,%t.tgt1 -outputs=%t.hip.bundle.bc 2>&1 | FileCheck -check-prefix=DUP %s
382+
// RUN: not clang-offload-bundler -type=bc -inputs=%t.hip.bundle.bc -outputs=%t.tmp.bc,%t.tmp2.bc -unbundle \
383+
// RUN: -targets=hip-amdgcn-amd-amdhsa-gfx906,hip-amdgcn-amd-amdhsa-gfx906 \
384+
// RUN: 2>&1 | FileCheck -check-prefix=DUP %s
385+
// DUP: error: Duplicate targets are not allowed
386+
356387
// Some code so that we can create a binary out of this file.
357388
int A = 0;
358389
void test_func(void) {

clang/test/Driver/hip-autolink.hip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: %clang --target=i386-pc-windows-msvc --cuda-gpu-arch=gfx906 -nogpulib \
88
// RUN: --cuda-host-only %s -### 2>&1 | FileCheck --check-prefix=HOST %s
99

10-
// DEV: "-cc1" "-mllvm" "--amdhsa-code-object-version=4" "-triple" "amdgcn-amd-amdhsa"
10+
// DEV: "-cc1" "-mllvm" "--amdhsa-code-object-version={{[0-9]+}}" "-triple" "amdgcn-amd-amdhsa"
1111
// DEV-SAME: "-fno-autolink"
1212

1313
// HOST: "-cc1" "-triple" "i386-pc-windows-msvc{{.*}}"

clang/test/Driver/hip-code-object-version.hip

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,17 @@
4444
// RUN: --offload-arch=gfx906 -nogpulib \
4545
// RUN: %s 2>&1 | FileCheck -check-prefix=V4 %s
4646

47+
// V4: "-mllvm" "--amdhsa-code-object-version=4"
48+
// V4: "-targets=host-x86_64-unknown-linux,hip-amdgcn-amd-amdhsa--gfx906"
49+
50+
// Check bundle ID for code object version default
51+
4752
// RUN: %clang -### -target x86_64-linux-gnu \
4853
// RUN: --offload-arch=gfx906 -nogpulib \
49-
// RUN: %s 2>&1 | FileCheck -check-prefix=V4 %s
54+
// RUN: %s 2>&1 | FileCheck -check-prefix=VD %s
5055

51-
// V4: "-mllvm" "--amdhsa-code-object-version=4"
52-
// V4: "-targets=host-x86_64-unknown-linux,hip-amdgcn-amd-amdhsa--gfx906"
56+
// VD: "-mllvm" "--amdhsa-code-object-version=4"
57+
// VD: "-targets=host-x86_64-unknown-linux,hip-amdgcn-amd-amdhsa--gfx906"
5358

5459
// Check invalid code object version option.
5560

clang/test/Driver/hip-device-compile.hip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// RUN: %S/Inputs/hip_multiple_inputs/a.cu \
2727
// RUN: 2>&1 | FileCheck -check-prefixes=CHECK,ASM %s
2828

29-
// CHECK: {{".*clang.*"}} "-cc1" "-mllvm" "--amdhsa-code-object-version=4" "-triple" "amdgcn-amd-amdhsa"
29+
// CHECK: {{".*clang.*"}} "-cc1" "-mllvm" "--amdhsa-code-object-version={{[0-9]+}}" "-triple" "amdgcn-amd-amdhsa"
3030
// CHECK-SAME: "-aux-triple" "x86_64-unknown-linux-gnu"
3131
// BC-SAME: "-emit-llvm-bc"
3232
// LL-SAME: "-emit-llvm"

clang/test/Driver/hip-host-cpu-features.hip

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
// RUN: %clang -### -c -target x86_64-linux-gnu -msse3 --cuda-gpu-arch=gfx803 -nogpulib %s 2>&1 | FileCheck %s -check-prefix=HOSTSSE3
77
// RUN: %clang -### -c -target x86_64-linux-gnu --gpu-use-aux-triple-only -march=znver2 --cuda-gpu-arch=gfx803 -nogpulib %s 2>&1 | FileCheck %s -check-prefix=NOHOSTCPU
88

9-
// HOSTCPU: "-cc1" "-mllvm" "--amdhsa-code-object-version=4" "-triple" "amdgcn-amd-amdhsa"
9+
// HOSTCPU: "-cc1" "-mllvm" "--amdhsa-code-object-version={{[0-9]+}}" "-triple" "amdgcn-amd-amdhsa"
1010
// HOSTCPU-SAME: "-aux-triple" "x86_64-unknown-linux-gnu"
1111
// HOSTCPU-SAME: "-aux-target-cpu" "znver2"
1212

13-
// HOSTSSE3: "-cc1" "-mllvm" "--amdhsa-code-object-version=4" "-triple" "amdgcn-amd-amdhsa"
13+
// HOSTSSE3: "-cc1" "-mllvm" "--amdhsa-code-object-version={{[0-9]+}}" "-triple" "amdgcn-amd-amdhsa"
1414
// HOSTSSE3-SAME: "-aux-triple" "x86_64-unknown-linux-gnu"
1515
// HOSTSSE3-SAME: "-aux-target-feature" "+sse3"
1616

17-
// NOHOSTCPU: "-cc1" "-mllvm" "--amdhsa-code-object-version=4" "-triple" "amdgcn-amd-amdhsa"
17+
// NOHOSTCPU: "-cc1" "-mllvm" "--amdhsa-code-object-version={{[0-9]+}}" "-triple" "amdgcn-amd-amdhsa"
1818
// NOHOSTCPU-SAME: "-aux-triple" "x86_64-unknown-linux-gnu"
1919
// NOHOSTCPU-NOT: "-aux-target-cpu" "znver2"

0 commit comments

Comments
 (0)