Skip to content

Commit ee25c0d

Browse files

File tree

33 files changed

+182
-193
lines changed

33 files changed

+182
-193
lines changed

clang/lib/Basic/Targets/AArch64.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -811,10 +811,10 @@ bool AArch64TargetInfo::validateCpuSupports(StringRef FeatureStr) const {
811811

812812
bool AArch64TargetInfo::hasFeature(StringRef Feature) const {
813813
return llvm::StringSwitch<bool>(Feature)
814-
.Cases("aarch64", "arm64", "arm", true)
814+
.Cases({"aarch64", "arm64", "arm"}, true)
815815
.Case("fmv", HasFMV)
816816
.Case("fp", FPU & FPUMode)
817-
.Cases("neon", "simd", FPU & NeonMode)
817+
.Cases({"neon", "simd"}, FPU & NeonMode)
818818
.Case("jscvt", HasJSCVT)
819819
.Case("fcma", HasFCMA)
820820
.Case("rng", HasRandGen)
@@ -829,8 +829,8 @@ bool AArch64TargetInfo::hasFeature(StringRef Feature) const {
829829
.Case("cssc", HasCSSC)
830830
.Case("sha2", HasSHA2)
831831
.Case("sha3", HasSHA3)
832-
.Cases("aes", "pmull", HasAES)
833-
.Cases("fp16", "fullfp16", HasFullFP16)
832+
.Cases({"aes", "pmull"}, HasAES)
833+
.Cases({"fp16", "fullfp16"}, HasFullFP16)
834834
.Case("dit", HasDIT)
835835
.Case("dpb", HasCCPP)
836836
.Case("dpb2", HasCCDP)
@@ -859,9 +859,9 @@ bool AArch64TargetInfo::hasFeature(StringRef Feature) const {
859859
.Case("memtag", HasMTE)
860860
.Case("sb", HasSB)
861861
.Case("predres", HasPredRes)
862-
.Cases("ssbs", "ssbs2", HasSSBS)
862+
.Cases({"ssbs", "ssbs2"}, HasSSBS)
863863
.Case("bti", HasBTI)
864-
.Cases("ls64", "ls64_v", "ls64_accdata", HasLS64)
864+
.Cases({"ls64", "ls64_v", "ls64_accdata"}, HasLS64)
865865
.Case("wfxt", HasWFxT)
866866
.Case("rcpc3", HasRCPC3)
867867
.Case("fp8", HasFP8)

clang/lib/Basic/Targets/PPC.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -122,41 +122,41 @@ class LLVM_LIBRARY_VISIBILITY PPCTargetInfo : public TargetInfo {
122122
.Case("970", ArchDefineName | ArchDefinePwr4 | ArchDefinePpcgr |
123123
ArchDefinePpcsq)
124124
.Case("a2", ArchDefineA2)
125-
.Cases("power3", "pwr3", ArchDefinePpcgr)
126-
.Cases("power4", "pwr4",
125+
.Cases({"power3", "pwr3"}, ArchDefinePpcgr)
126+
.Cases({"power4", "pwr4"},
127127
ArchDefinePwr4 | ArchDefinePpcgr | ArchDefinePpcsq)
128128
.Cases("power5", "pwr5",
129129
ArchDefinePwr5 | ArchDefinePwr4 | ArchDefinePpcgr |
130130
ArchDefinePpcsq)
131-
.Cases("power5x", "pwr5x",
131+
.Cases({"power5x", "pwr5x"},
132132
ArchDefinePwr5x | ArchDefinePwr5 | ArchDefinePwr4 |
133133
ArchDefinePpcgr | ArchDefinePpcsq)
134-
.Cases("power6", "pwr6",
135-
ArchDefinePwr6 | ArchDefinePwr5x | ArchDefinePwr5 |
136-
ArchDefinePwr4 | ArchDefinePpcgr | ArchDefinePpcsq)
137-
.Cases("power6x", "pwr6x",
134+
.Cases({"power6", "pwr6"}, ArchDefinePwr6 | ArchDefinePwr5x |
135+
ArchDefinePwr5 | ArchDefinePwr4 |
136+
ArchDefinePpcgr | ArchDefinePpcsq)
137+
.Cases({"power6x", "pwr6x"},
138138
ArchDefinePwr6x | ArchDefinePwr6 | ArchDefinePwr5x |
139139
ArchDefinePwr5 | ArchDefinePwr4 | ArchDefinePpcgr |
140140
ArchDefinePpcsq)
141-
.Cases("power7", "pwr7",
142-
ArchDefinePwr7 | ArchDefinePwr6 | ArchDefinePwr5x |
143-
ArchDefinePwr5 | ArchDefinePwr4 | ArchDefinePpcgr |
144-
ArchDefinePpcsq)
141+
.Cases({"power7", "pwr7"}, ArchDefinePwr7 | ArchDefinePwr6 |
142+
ArchDefinePwr5x | ArchDefinePwr5 |
143+
ArchDefinePwr4 | ArchDefinePpcgr |
144+
ArchDefinePpcsq)
145145
// powerpc64le automatically defaults to at least power8.
146-
.Cases("power8", "pwr8", "ppc64le",
146+
.Cases({"power8", "pwr8", "ppc64le"},
147147
ArchDefinePwr8 | ArchDefinePwr7 | ArchDefinePwr6 |
148148
ArchDefinePwr5x | ArchDefinePwr5 | ArchDefinePwr4 |
149149
ArchDefinePpcgr | ArchDefinePpcsq)
150-
.Cases("power9", "pwr9",
150+
.Cases({"power9", "pwr9"},
151151
ArchDefinePwr9 | ArchDefinePwr8 | ArchDefinePwr7 |
152152
ArchDefinePwr6 | ArchDefinePwr5x | ArchDefinePwr5 |
153153
ArchDefinePwr4 | ArchDefinePpcgr | ArchDefinePpcsq)
154-
.Cases("power10", "pwr10",
154+
.Cases({"power10", "pwr10"},
155155
ArchDefinePwr10 | ArchDefinePwr9 | ArchDefinePwr8 |
156156
ArchDefinePwr7 | ArchDefinePwr6 | ArchDefinePwr5x |
157157
ArchDefinePwr5 | ArchDefinePwr4 | ArchDefinePpcgr |
158158
ArchDefinePpcsq)
159-
.Cases("power11", "pwr11",
159+
.Cases({"power11", "pwr11"},
160160
ArchDefinePwr11 | ArchDefinePwr10 | ArchDefinePwr9 |
161161
ArchDefinePwr8 | ArchDefinePwr7 | ArchDefinePwr6 |
162162
ArchDefinePwr5x | ArchDefinePwr5 | ArchDefinePwr4 |

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3222,7 +3222,7 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
32223222
DashX = llvm::StringSwitch<InputKind>(XValue)
32233223
.Case("cpp-output", InputKind(Language::C).getPreprocessed())
32243224
.Case("assembler-with-cpp", Language::Asm)
3225-
.Cases("ast", "pcm", "precompiled-header",
3225+
.Cases({"ast", "pcm", "precompiled-header"},
32263226
InputKind(Language::Unknown, InputKind::Precompiled))
32273227
.Case("ir", Language::LLVM_IR)
32283228
.Case("cir", Language::CIR)

clang/lib/Lex/LiteralSupport.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,10 +1283,10 @@ bool NumericLiteralParser::isValidUDSuffix(const LangOptions &LangOpts,
12831283
// Per tweaked N3660, "il", "i", and "if" are also used in the library.
12841284
// In C++2a "d" and "y" are used in the library.
12851285
return llvm::StringSwitch<bool>(Suffix)
1286-
.Cases("h", "min", "s", true)
1287-
.Cases("ms", "us", "ns", true)
1288-
.Cases("il", "i", "if", true)
1289-
.Cases("d", "y", LangOpts.CPlusPlus20)
1286+
.Cases({"h", "min", "s"}, true)
1287+
.Cases({"ms", "us", "ns"}, true)
1288+
.Cases({"il", "i", "if"}, true)
1289+
.Cases({"d", "y"}, LangOpts.CPlusPlus20)
12901290
.Default(false);
12911291
}
12921292

compiler-rt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ include(config-ix)
315315
# Setup Compiler Flags
316316
#================================
317317

318-
# fcf-protection is a gcc/clang option for CET support on Linux platforms.
318+
# fcf-protection is a gcc/clang option for CET support on some ELF platforms.
319319
# We need to handle MSVC CET option on Windows platforms.
320320
if (NOT MSVC)
321321
if (COMPILER_RT_ENABLE_CET AND NOT COMPILER_RT_HAS_FCF_PROTECTION_FLAG)

compiler-rt/lib/builtins/assembly.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#ifndef COMPILERRT_ASSEMBLY_H
1515
#define COMPILERRT_ASSEMBLY_H
1616

17-
#if defined(__linux__) && defined(__CET__)
17+
#ifdef __CET__
1818
#if __has_include(<cet.h>)
1919
#include <cet.h>
2020
#endif

libunwind/src/assembly.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifndef UNWIND_ASSEMBLY_H
1616
#define UNWIND_ASSEMBLY_H
1717

18-
#if defined(__linux__) && defined(__CET__)
18+
#if defined(__CET__)
1919
#include <cet.h>
2020
#define _LIBUNWIND_CET_ENDBR _CET_ENDBR
2121
#else

libunwind/src/shadow_stack_unwind.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
#include "libunwind.h"
1414

15-
// Currently, CET is implemented on Linux x86 platforms.
16-
#if defined(_LIBUNWIND_TARGET_LINUX) && defined(__CET__) && defined(__SHSTK__)
15+
// Currently, CET is implemented on some ELF x86 platforms.
16+
#if defined(__CET__) && defined(__SHSTK__)
1717
#define _LIBUNWIND_USE_CET 1
1818
#endif
1919

llvm/docs/Reference.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,7 @@ Additional Topics
250250

251251
:doc:`ContentAddressableStorage`
252252
A reference guide for using LLVM's CAS library.
253+
254+
:doc:`CIBestPractices`
255+
A list of guidelines and best practices to use when working on LLVM's
256+
CI systems.

llvm/include/llvm/ADT/RadixTree.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <cassert>
2020
#include <cstddef>
2121
#include <iterator>
22-
#include <limits>
2322
#include <list>
2423
#include <utility>
2524
#include <vector>

0 commit comments

Comments
 (0)