Skip to content

Commit 49fd7d4

Browse files
author
iclsrc
committed
Merge from 'main' to 'sycl-web'
2 parents 3534bc4 + 93d4b1f commit 49fd7d4

File tree

131 files changed

+6477
-842
lines changed

Some content is hidden

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

131 files changed

+6477
-842
lines changed

clang/include/clang/Basic/BuiltinsHexagon.def

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
# define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) BUILTIN(ID, TYPE, ATTRS)
1818
#endif
1919

20+
#pragma push_macro("V79")
21+
#define V79 "v79"
2022
#pragma push_macro("V75")
21-
#define V75 "v75"
23+
#define V75 "v75|" V79
2224
#pragma push_macro("V73")
2325
#define V73 "v73|" V75
2426
#pragma push_macro("V71")
@@ -42,8 +44,10 @@
4244
#pragma push_macro("V5")
4345
#define V5 "v5|" V55
4446

47+
#pragma push_macro("HVXV79")
48+
#define HVXV79 "hvxv79"
4549
#pragma push_macro("HVXV75")
46-
#define HVXV75 "hvxv75"
50+
#define HVXV75 "hvxv75|" HVXV79
4751
#pragma push_macro("HVXV73")
4852
#define HVXV73 "hvxv73|" HVXV75
4953
#pragma push_macro("HVXV71")
@@ -148,6 +152,7 @@ TARGET_BUILTIN(__builtin_HEXAGON_V6_vrmpyub_rtt_acc_128B,"V64iV64iV32iLLi","", "
148152
#pragma pop_macro("HVXV71")
149153
#pragma pop_macro("HVXV73")
150154
#pragma pop_macro("HVXV75")
155+
#pragma pop_macro("HVXV79")
151156

152157
#pragma pop_macro("V5")
153158
#pragma pop_macro("V55")
@@ -161,6 +166,7 @@ TARGET_BUILTIN(__builtin_HEXAGON_V6_vrmpyub_rtt_acc_128B,"V64iV64iV32iLLi","", "
161166
#pragma pop_macro("V71")
162167
#pragma pop_macro("V73")
163168
#pragma pop_macro("V75")
169+
#pragma pop_macro("V79")
164170

165171
#undef BUILTIN
166172
#undef TARGET_BUILTIN

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6329,6 +6329,8 @@ def mv73 : Flag<["-"], "mv73">, Group<m_hexagon_Features_Group>,
63296329
Alias<mcpu_EQ>, AliasArgs<["hexagonv73"]>;
63306330
def mv75 : Flag<["-"], "mv75">, Group<m_hexagon_Features_Group>,
63316331
Alias<mcpu_EQ>, AliasArgs<["hexagonv75"]>;
6332+
def mv79 : Flag<["-"], "mv79">, Group<m_hexagon_Features_Group>,
6333+
Alias<mcpu_EQ>, AliasArgs<["hexagonv79"]>;
63326334
def mhexagon_hvx : Flag<["-"], "mhvx">, Group<m_hexagon_Features_HVX_Group>,
63336335
HelpText<"Enable Hexagon Vector eXtensions">;
63346336
def mhexagon_hvx_EQ : Joined<["-"], "mhvx=">,

clang/lib/Basic/Targets/Hexagon.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ void HexagonTargetInfo::getTargetDefines(const LangOptions &Opts,
8181
} else if (CPU == "hexagonv75") {
8282
Builder.defineMacro("__HEXAGON_V75__");
8383
Builder.defineMacro("__HEXAGON_ARCH__", "75");
84+
} else if (CPU == "hexagonv79") {
85+
Builder.defineMacro("__HEXAGON_V79__");
86+
Builder.defineMacro("__HEXAGON_ARCH__", "79");
8487
}
8588

8689
if (hasFeature("hvx-length64b")) {
@@ -239,6 +242,7 @@ static constexpr CPUSuffix Suffixes[] = {
239242
{{"hexagonv68"}, {"68"}}, {{"hexagonv69"}, {"69"}},
240243
{{"hexagonv71"}, {"71"}}, {{"hexagonv71t"}, {"71t"}},
241244
{{"hexagonv73"}, {"73"}}, {{"hexagonv75"}, {"75"}},
245+
{{"hexagonv79"}, {"79"}},
242246
};
243247

244248
std::optional<unsigned> HexagonTargetInfo::getHexagonCPURev(StringRef Name) {

clang/lib/Basic/Targets/OSTargets.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,9 @@ template <typename Target>
790790
class LLVM_LIBRARY_VISIBILITY UEFITargetInfo : public OSTargetInfo<Target> {
791791
protected:
792792
void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
793-
MacroBuilder &Builder) const override {}
793+
MacroBuilder &Builder) const override {
794+
Builder.defineMacro("__UEFI__");
795+
}
794796

795797
public:
796798
UEFITargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,8 +1567,6 @@ collectSanitizerRuntimes(const ToolChain &TC, const ArgList &Args,
15671567
StaticRuntimes.push_back("ubsan_minimal");
15681568
} else {
15691569
StaticRuntimes.push_back("ubsan_standalone");
1570-
if (SanArgs.linkCXXRuntimes())
1571-
StaticRuntimes.push_back("ubsan_standalone_cxx");
15721570
}
15731571
}
15741572
if (SanArgs.needsSafeStackRt()) {
@@ -1578,11 +1576,13 @@ collectSanitizerRuntimes(const ToolChain &TC, const ArgList &Args,
15781576
if (!(SanArgs.needsSharedRt() && SanArgs.needsUbsanRt())) {
15791577
if (SanArgs.needsCfiRt())
15801578
StaticRuntimes.push_back("cfi");
1581-
if (SanArgs.needsCfiDiagRt()) {
1579+
if (SanArgs.needsCfiDiagRt())
15821580
StaticRuntimes.push_back("cfi_diag");
1583-
if (SanArgs.linkCXXRuntimes())
1584-
StaticRuntimes.push_back("ubsan_standalone_cxx");
1585-
}
1581+
}
1582+
if (SanArgs.linkCXXRuntimes() && !SanArgs.requiresMinimalRuntime() &&
1583+
((!SanArgs.needsSharedRt() && SanArgs.needsUbsanRt()) ||
1584+
SanArgs.needsCfiDiagRt())) {
1585+
StaticRuntimes.push_back("ubsan_standalone_cxx");
15861586
}
15871587
if (SanArgs.needsStatsRt()) {
15881588
NonWholeStaticRuntimes.push_back("stats");

0 commit comments

Comments
 (0)