Skip to content

Commit 617ef46

Browse files
SC llvm teamSC llvm team
authored andcommitted
Merged main:4be1c19a9fbdff02044cd46b703c842bb7a6afdb into amd-gfx:8e51b74fa82f
Local branch amd-gfx 8e51b74 [AMDGPU] Mark V_SET_INACTIVE operands as unspillable. Remote branch main 4be1c19 [VPlan] Adjust AnyOf after creating ComputeReductionResult (NFC).
2 parents 8e51b74 + 4be1c19 commit 617ef46

File tree

635 files changed

+48048
-18785
lines changed

Some content is hidden

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

635 files changed

+48048
-18785
lines changed

clang-tools-extra/clang-tidy/bugprone/ForwardDeclarationNamespaceCheck.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ static std::string getNameOfNamespace(const CXXRecordDecl *Decl) {
107107
std::string Ns;
108108
llvm::raw_string_ostream OStream(Ns);
109109
NsDecl->printQualifiedName(OStream);
110-
OStream.flush();
111110
return Ns.empty() ? "(global)" : Ns;
112111
}
113112

clang-tools-extra/clangd/AST.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ std::string printQualifiedName(const NamedDecl &ND) {
187187
// In clangd, context is usually available and paths are mostly noise.
188188
Policy.AnonymousTagLocations = false;
189189
ND.printQualifiedName(OS, Policy);
190-
OS.flush();
191190
assert(!StringRef(QName).starts_with("::"));
192191
return QName;
193192
}
@@ -270,7 +269,6 @@ std::string printTemplateSpecializationArgs(const NamedDecl &ND) {
270269
// location information.
271270
printTemplateArgumentList(OS, Cls->getTemplateArgs().asArray(), Policy);
272271
}
273-
OS.flush();
274272
return TemplateArgs;
275273
}
276274

@@ -303,7 +301,6 @@ std::string printObjCMethod(const ObjCMethodDecl &Method) {
303301
OS << ", ...";
304302

305303
OS << ']';
306-
OS.flush();
307304
return Name;
308305
}
309306

@@ -314,15 +311,13 @@ std::string printObjCContainer(const ObjCContainerDecl &C) {
314311
const ObjCInterfaceDecl *Class = Category->getClassInterface();
315312
OS << getNameOrErrForObjCInterface(Class) << '(' << Category->getName()
316313
<< ')';
317-
OS.flush();
318314
return Name;
319315
}
320316
if (const ObjCCategoryImplDecl *CID = dyn_cast<ObjCCategoryImplDecl>(&C)) {
321317
std::string Name;
322318
llvm::raw_string_ostream OS(Name);
323319
const ObjCInterfaceDecl *Class = CID->getClassInterface();
324320
OS << getNameOrErrForObjCInterface(Class) << '(' << CID->getName() << ')';
325-
OS.flush();
326321
return Name;
327322
}
328323
return C.getNameAsString();

clang-tools-extra/clangd/Diagnostics.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ std::string mainMessage(const Diag &D, const ClangdDiagnosticOptions &Opts) {
319319
OS << "\n\n";
320320
printDiag(OS, Note);
321321
}
322-
OS.flush();
323322
return capitalize(std::move(Result));
324323
}
325324

@@ -335,7 +334,6 @@ std::string noteMessage(const Diag &Main, const DiagBase &Note,
335334
OS << "\n\n";
336335
printDiag(OS, Main);
337336
}
338-
OS.flush();
339337
return capitalize(std::move(Result));
340338
}
341339

clang-tools-extra/clangd/FindSymbols.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ std::string getSymbolName(ASTContext &Ctx, const NamedDecl &ND) {
182182
OS << (Method->isInstanceMethod() ? '-' : '+');
183183
Method->getSelector().print(OS);
184184

185-
OS.flush();
186185
return Name;
187186
}
188187
return printName(Ctx, ND);

clang-tools-extra/clangd/Hover.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ std::string printDefinition(const Decl *D, PrintingPolicy PP,
150150
std::string Definition;
151151
llvm::raw_string_ostream OS(Definition);
152152
D->print(OS, PP);
153-
OS.flush();
154153
return Definition;
155154
}
156155

@@ -179,7 +178,6 @@ HoverInfo::PrintedType printType(QualType QT, ASTContext &ASTCtx,
179178
OS << TT->getDecl()->getKindName() << " ";
180179
}
181180
QT.print(OS, PP);
182-
OS.flush();
183181

184182
const Config &Cfg = Config::current();
185183
if (!QT.isNull() && Cfg.Hover.ShowAKA) {
@@ -229,7 +227,6 @@ HoverInfo::PrintedType printType(const TemplateTemplateParmDecl *TTP,
229227
// FIXME: TemplateTemplateParameter doesn't store the info on whether this
230228
// param was a "typename" or "class".
231229
OS << "> class";
232-
OS.flush();
233230
return Result;
234231
}
235232

@@ -821,7 +818,6 @@ std::string typeAsDefinition(const HoverInfo::PrintedType &PType) {
821818
OS << PType.Type;
822819
if (PType.AKA)
823820
OS << " // aka: " << *PType.AKA;
824-
OS.flush();
825821
return Result;
826822
}
827823

clang-tools-extra/clangd/Preamble.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,6 @@ PreamblePatch PreamblePatch::create(llvm::StringRef FileName,
913913
PP.PatchedMarks = std::move(ModifiedScan->Marks);
914914
PP.PatchedMacros = std::move(ModifiedScan->Macros);
915915
dlog("Created preamble patch: {0}", Patch.str());
916-
Patch.flush();
917916
return PP;
918917
}
919918

clang-tools-extra/clangd/Quality.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,6 @@ std::string sortText(float Score, llvm::StringRef Name) {
554554
llvm::write_hex(OS, encodeFloat(-Score), llvm::HexPrintStyle::Lower,
555555
/*Width=*/2 * sizeof(Score));
556556
OS << Name;
557-
OS.flush();
558557
return S;
559558
}
560559

clang-tools-extra/clangd/SystemIncludeExtractor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,6 @@ std::string convertGlobToRegex(llvm::StringRef Glob) {
483483
}
484484
}
485485
RegStream << '$';
486-
RegStream.flush();
487486
return RegText;
488487
}
489488

clang-tools-extra/clangd/index/StdLib.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ std::string buildUmbrella(llvm::StringLiteral Mandatory,
8787
"#endif\n",
8888
Header);
8989
}
90-
OS.flush();
9190
return Result;
9291
}
9392

clang-tools-extra/clangd/unittests/TypeHierarchyTests.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ const NamedDecl &findDeclWithTemplateArgs(ParsedAST &AST,
242242
// Use getNameForDiagnostic() which includes the template
243243
// arguments in the printed name.
244244
ND.getNameForDiagnostic(OS, Policy, /*Qualified=*/true);
245-
OS.flush();
246245
return QName == Query;
247246
});
248247
}

clang-tools-extra/include-cleaner/unittests/RecordTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@ TEST_F(PragmaIncludeTest, IWYUExportBlock) {
546546
for (auto &FE : FEs) {
547547
OS << FE.getName() << " ";
548548
}
549-
OS.flush();
550549
return Result;
551550
};
552551
auto Exporters = PI.getExporters(FM.getFile("private1.h").get(), FM);

clang-tools-extra/modularize/Modularize.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,6 @@ class CollectEntitiesVisitor
621621
std::string Name;
622622
llvm::raw_string_ostream OS(Name);
623623
ND->printQualifiedName(OS);
624-
OS.flush();
625624
if (Name.empty())
626625
return true;
627626

clang/docs/ReleaseNotes.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ code bases.
4343
still supporting SPARC V8 CPUs need to specify ``-mcpu=v8`` with a
4444
`config file
4545
<https://clang.llvm.org/docs/UsersManual.html#configuration-files>`_.
46-
46+
4747
- The ``clang-rename`` tool has been removed.
4848

4949
C/C++ Language Potentially Breaking Changes
@@ -115,7 +115,7 @@ C++ Language Changes
115115
- Allow single element access of GCC vector/ext_vector_type object to be
116116
constant expression. Supports the `V.xyzw` syntax and other tidbits
117117
as seen in OpenCL. Selecting multiple elements is left as a future work.
118-
- Implement `CWG1815 <https://wg21.link/CWG1815>`_. Support lifetime extension
118+
- Implement `CWG1815 <https://wg21.link/CWG1815>`_. Support lifetime extension
119119
of temporary created by aggregate initialization using a default member
120120
initializer.
121121

@@ -336,6 +336,8 @@ Improvements to Clang's diagnostics
336336
local variables passed to function calls using the ``[[clang::musttail]]``
337337
attribute.
338338

339+
- Clang now diagnoses cases where a dangling ``GSLOwner<GSLPointer>`` object is constructed, e.g. ``std::vector<string_view> v = {std::string()};`` (#GH100526).
340+
339341
Improvements to Clang's time-trace
340342
----------------------------------
341343

@@ -452,6 +454,9 @@ Miscellaneous Clang Crashes Fixed
452454

453455
- Fixed ``-ast-dump`` crashes on codes involving ``concept`` with ``-ast-dump-decl-types``. (#GH94928)
454456

457+
- Fixed internal assertion firing when a declaration in the implicit global
458+
module is found through ADL. (GH#109879)
459+
455460
OpenACC Specific Changes
456461
------------------------
457462

@@ -637,6 +642,7 @@ Python Binding Changes
637642
OpenMP Support
638643
--------------
639644
- Added support for 'omp assume' directive.
645+
- Added support for 'omp scope' directive.
640646

641647
Improvements
642648
^^^^^^^^^^^^

clang/include/clang/AST/PropertiesBase.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class EnumPropertyType<string typeName = ""> : PropertyType<typeName> {}
3939
/// Supports optional values by using the null representation.
4040
class RefPropertyType<string className> : PropertyType<className # "*"> {
4141
let PackOptional =
42-
"value ? *value : nullptr";
42+
"value.value_or(nullptr)";
4343
let UnpackOptional =
4444
"value ? std::optional<" # CXXName # ">(value) : std::nullopt";
4545
}

clang/include/clang/Basic/AttrDocs.td

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6696,6 +6696,20 @@ When the Owner's lifetime ends, it will consider the Pointer to be dangling.
66966696
P.getInt(); // P is dangling
66976697
}
66986698

6699+
If a template class is annotated with ``[[gsl::Owner]]``, and the first
6700+
instantiated template argument is a pointer type (raw pointer, or ``[[gsl::Pointer]]``),
6701+
the analysis will consider the instantiated class as a container of the pointer.
6702+
When constructing such an object from a GSL owner object, the analysis will
6703+
assume that the container holds a pointer to the owner object. Consequently,
6704+
when the owner object is destroyed, the pointer will be considered dangling.
6705+
6706+
.. code-block:: c++
6707+
6708+
int f() {
6709+
std::vector<std::string_view> v = {std::string()}; // v holds a dangling pointer.
6710+
std::optional<std::string_view> o = std::string(); // o holds a dangling pointer.
6711+
}
6712+
66996713
}];
67006714
}
67016715

clang/include/clang/Basic/CodeGenOptions.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ CODEGENOPT(EmulatedTLS , 1, 0) ///< Set by default or -f[no-]emulated-tls.
9696
ENUM_CODEGENOPT(EmbedBitcode, EmbedBitcodeKind, 2, Embed_Off)
9797
/// Inline asm dialect, -masm=(att|intel)
9898
ENUM_CODEGENOPT(InlineAsmDialect, InlineAsmDialectKind, 1, IAD_ATT)
99+
CODEGENOPT(OutputAsmVariant, 2, 3) ///< Set the asm variant for output (3: unspecified).
99100
CODEGENOPT(ForbidGuardVariables , 1, 0) ///< Issue errors if C++ guard variables
100101
///< are required.
101102
CODEGENOPT(FunctionSections , 1, 0) ///< Set when -ffunction-sections is enabled.

clang/include/clang/Basic/FileManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class FileManager : public RefCountedBase<FileManager> {
293293
bool RequiresNullTerminator = true,
294294
std::optional<int64_t> MaybeLimit = std::nullopt) const {
295295
return getBufferForFileImpl(Filename,
296-
/*FileSize=*/(MaybeLimit ? *MaybeLimit : -1),
296+
/*FileSize=*/MaybeLimit.value_or(-1),
297297
isVolatile, RequiresNullTerminator);
298298
}
299299

clang/include/clang/Basic/riscv_vector.td

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,11 @@ multiclass RVVNonTupleVCreateBuiltin<int dst_lmul, list<int> src_lmul_list> {
361361
defvar src_s = FixedVString<src_lmul, num, "v">.S;
362362
def vcreate # src_v # dst_v : RVVBuiltin<src_v # dst_v,
363363
dst_v # src_s,
364-
"csilxfd">;
364+
"csilfd">;
365+
let RequiredFeatures = ["Zvfhmin"] in
366+
def vcreate_h # src_v # dst_v : RVVBuiltin<src_v # dst_v,
367+
dst_v # src_s,
368+
"x", dst_v>;
365369
let RequiredFeatures = ["Zvfbfmin"] in
366370
def vcreate_bf16 # src_v # dst_v : RVVBuiltin<src_v # dst_v,
367371
dst_v # src_s,
@@ -2474,15 +2478,19 @@ let HasMasked = false, HasVL = false, IRName = "" in {
24742478
ManualCodegen = [{
24752479
return llvm::PoisonValue::get(ResultType);
24762480
}] in {
2477-
def vundefined : RVVBuiltin<"v", "v", "csilxfd">;
2481+
def vundefined : RVVBuiltin<"v", "v", "csilfd">;
2482+
let RequiredFeatures = ["Zvfhmin"] in
2483+
def vundefined_h : RVVBuiltin<"v", "v", "x">;
24782484
let RequiredFeatures = ["Zvfbfmin"] in
24792485
def vundefined_bf16 : RVVBuiltin<"v", "v", "y">;
24802486
def vundefined_u : RVVBuiltin<"Uv", "Uv", "csil">;
24812487

24822488
foreach nf = NFList in {
24832489
let NF = nf in {
24842490
defvar T = "(Tuple:" # nf # ")";
2485-
def : RVVBuiltin<T # "v", T # "v", "csilxfd">;
2491+
def : RVVBuiltin<T # "v", T # "v", "csilfd">;
2492+
let RequiredFeatures = ["Zvfhmin"] in
2493+
def : RVVBuiltin<T # "v", T # "v", "x">;
24862494
let RequiredFeatures = ["Zvfbfmin"] in
24872495
def : RVVBuiltin<T # "v", T # "v", "y">;
24882496
def : RVVBuiltin<T # "Uv", T # "Uv", "csil">;
@@ -2502,7 +2510,10 @@ let HasMasked = false, HasVL = false, IRName = "" in {
25022510
foreach dst_lmul = ["(SFixedLog2LMUL:-3)", "(SFixedLog2LMUL:-2)", "(SFixedLog2LMUL:-1)",
25032511
"(SFixedLog2LMUL:0)", "(SFixedLog2LMUL:1)", "(SFixedLog2LMUL:2)"] in {
25042512
def vlmul_trunc # dst_lmul : RVVBuiltin<"v" # dst_lmul # "v",
2505-
dst_lmul # "vv", "csilxfd", dst_lmul # "v">;
2513+
dst_lmul # "vv", "csilfd", dst_lmul # "v">;
2514+
let RequiredFeatures = ["Zvfhmin"] in
2515+
def vlmul_trunc_h # dst_lmul : RVVBuiltin<"v" # dst_lmul # "v",
2516+
dst_lmul # "vv", "x", dst_lmul # "v">;
25062517
let RequiredFeatures = ["Zvfbfmin"] in
25072518
def vlmul_trunc_bf16 # dst_lmul : RVVBuiltin<"v" # dst_lmul # "v",
25082519
dst_lmul # "vv", "y", dst_lmul # "v">;
@@ -2523,7 +2534,10 @@ let HasMasked = false, HasVL = false, IRName = "" in {
25232534
foreach dst_lmul = ["(LFixedLog2LMUL:-2)", "(LFixedLog2LMUL:-1)", "(LFixedLog2LMUL:-0)",
25242535
"(LFixedLog2LMUL:1)", "(LFixedLog2LMUL:2)", "(LFixedLog2LMUL:3)"] in {
25252536
def vlmul_ext # dst_lmul : RVVBuiltin<"v" # dst_lmul # "v",
2526-
dst_lmul # "vv", "csilxfd", dst_lmul # "v">;
2537+
dst_lmul # "vv", "csilfd", dst_lmul # "v">;
2538+
let RequiredFeatures = ["Zvfhmin"] in
2539+
def vlmul_ext_h # dst_lmul : RVVBuiltin<"v" # dst_lmul # "v",
2540+
dst_lmul # "vv", "x", dst_lmul # "v">;
25272541
let RequiredFeatures = ["Zvfbfmin"] in
25282542
def vlmul_ext_bf16 # dst_lmul : RVVBuiltin<"v" # dst_lmul # "v",
25292543
dst_lmul # "vv", "y", dst_lmul # "v">;
@@ -2555,14 +2569,18 @@ let HasMasked = false, HasVL = false, IRName = "" in {
25552569
}
25562570
}] in {
25572571
foreach dst_lmul = ["(SFixedLog2LMUL:0)", "(SFixedLog2LMUL:1)", "(SFixedLog2LMUL:2)"] in {
2558-
def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "vvKz", "csilxfd", dst_lmul # "v">;
2572+
def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "vvKz", "csilfd", dst_lmul # "v">;
2573+
let RequiredFeatures = ["Zvfhmin"] in
2574+
def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "vvKz", "x", dst_lmul # "v">;
25592575
let RequiredFeatures = ["Zvfbfmin"] in
25602576
def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "vvKz", "y", dst_lmul # "v">;
25612577
def : RVVBuiltin<"Uv" # dst_lmul # "Uv", dst_lmul # "UvUvKz", "csil", dst_lmul # "Uv">;
25622578
}
25632579
foreach nf = NFList in {
25642580
defvar T = "(Tuple:" # nf # ")";
2565-
def : RVVBuiltin<T # "vv", "v" # T # "vKz", "csilxfd", "v">;
2581+
def : RVVBuiltin<T # "vv", "v" # T # "vKz", "csilfd", "v">;
2582+
let RequiredFeatures = ["Zvfhmin"] in
2583+
def : RVVBuiltin<T # "vv", "v" # T # "vKz", "x", "v">;
25662584
let RequiredFeatures = ["Zvfbfmin"] in
25672585
def : RVVBuiltin<T # "vv", "v" # T # "vKz", "y", "v">;
25682586
def : RVVBuiltin<T # "UvUv", "Uv" # T # "UvKz", "csil", "Uv">;
@@ -2592,14 +2610,18 @@ let HasMasked = false, HasVL = false, IRName = "" in {
25922610
}
25932611
}] in {
25942612
foreach dst_lmul = ["(LFixedLog2LMUL:1)", "(LFixedLog2LMUL:2)", "(LFixedLog2LMUL:3)"] in {
2595-
def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "v" # dst_lmul # "vKzv", "csilxfd">;
2613+
def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "v" # dst_lmul # "vKzv", "csilfd">;
2614+
let RequiredFeatures = ["Zvfhmin"] in
2615+
def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "v" # dst_lmul # "vKzv", "x">;
25962616
let RequiredFeatures = ["Zvfbfmin"] in
25972617
def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "v" # dst_lmul # "vKzv", "y">;
25982618
def : RVVBuiltin<"Uv" # dst_lmul # "Uv", dst_lmul # "Uv" # dst_lmul #"UvKzUv", "csil">;
25992619
}
26002620
foreach nf = NFList in {
26012621
defvar T = "(Tuple:" # nf # ")";
2602-
def : RVVBuiltin<"v" # T # "v", T # "v" # T # "vKzv", "csilxfd">;
2622+
def : RVVBuiltin<"v" # T # "v", T # "v" # T # "vKzv", "csilfd">;
2623+
let RequiredFeatures = ["Zvfhmin"] in
2624+
def : RVVBuiltin<"v" # T # "v", T # "v" # T # "vKzv", "x">;
26032625
let RequiredFeatures = ["Zvfbfmin"] in
26042626
def : RVVBuiltin<"v" # T # "v", T # "v" # T # "vKzv", "y">;
26052627
def : RVVBuiltin<"Uv" # T # "Uv", T # "Uv" # T # "UvKzUv", "csil">;
@@ -2646,7 +2668,9 @@ let HasMasked = false, HasVL = false, IRName = "" in {
26462668
defvar T = "(Tuple:" # nf # ")";
26472669
defvar V = VString<nf, /*signed=*/true>.S;
26482670
defvar UV = VString<nf, /*signed=*/false>.S;
2649-
def : RVVBuiltin<T # "v", T # "v" # V, "csilxfd">;
2671+
def : RVVBuiltin<T # "v", T # "v" # V, "csilfd">;
2672+
let RequiredFeatures = ["Zvfhmin"] in
2673+
def : RVVBuiltin<T # "v", T # "v" # V, "x">;
26502674
let RequiredFeatures = ["Zvfbfmin"] in
26512675
def : RVVBuiltin<T # "v", T # "v" # V, "y">;
26522676
def : RVVBuiltin<T # "Uv", T # "Uv" # UV, "csil">;

clang/include/clang/Driver/Options.td

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7217,6 +7217,9 @@ def fuse_ctor_homing: Flag<["-"], "fuse-ctor-homing">,
72177217
def as_secure_log_file : Separate<["-"], "as-secure-log-file">,
72187218
HelpText<"Emit .secure_log_unique directives to this filename.">,
72197219
MarshallingInfoString<CodeGenOpts<"AsSecureLogFile">>;
7220+
def output_asm_variant : Joined<["--"], "output-asm-variant=">,
7221+
HelpText<"Select the asm variant (integer) to use for output (3: unspecified)">,
7222+
MarshallingInfoInt<CodeGenOpts<"OutputAsmVariant">, "3">;
72207223

72217224
} // let Visibility = [CC1Option, CC1AsOption]
72227225

@@ -8307,8 +8310,6 @@ def filetype : Separate<["-"], "filetype">,
83078310
HelpText<"Specify the output file type ('asm', 'null', or 'obj')">;
83088311

83098312
// Transliterate Options
8310-
def output_asm_variant : Separate<["-"], "output-asm-variant">,
8311-
HelpText<"Select the asm variant index to use for output">;
83128313
def show_encoding : Flag<["-"], "show-encoding">,
83138314
HelpText<"Show instruction encoding information in transliterate mode">;
83148315
def show_inst : Flag<["-"], "show-inst">,

clang/include/clang/Serialization/ASTBitCodes.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,12 @@ enum ASTRecordTypes {
724724

725725
/// Record code for vtables to emit.
726726
VTABLES_TO_EMIT = 70,
727+
728+
/// Record code for the FunctionDecl to lambdas mapping. These lambdas have to
729+
/// be loaded right after the function they belong to. It is required to have
730+
/// canonical declaration for the lambda class from the same module as
731+
/// enclosing function.
732+
FUNCTION_DECL_TO_LAMBDAS_MAP = 71,
727733
};
728734

729735
/// Record types used within a source manager block.

0 commit comments

Comments
 (0)