LLVM/project dcc1a70 — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN metadata.ll

fixup! fixup! [GVN] Merge metadata from values to load
DeltaFile
+0-118llvm/test/Transforms/GVN/metadata.ll
+4-4llvm/lib/Transforms/Scalar/GVN.cpp
+4-1222 files

LLVM/project 5dd8700 — lldb/source/Interpreter CMakeLists.txt OptionGroupUUID.cpp

[lldb] Declare UUID/Architecture option groups in TableGen (NFC)

Assisted-by: Claude
DeltaFile
+17-0lldb/source/Interpreter/InterpreterOptions.td
+5-7lldb/source/Interpreter/OptionGroupArchitecture.cpp
+5-6lldb/source/Interpreter/OptionGroupUUID.cpp
+5-0lldb/source/Interpreter/CMakeLists.txt
+32-134 files

LLVM/project e0acc34 — lldb/include/lldb lldb-enumerations.h, lldb/include/lldb/Interpreter CommandOptionArgumentTable.h

[lldb] Declare darwin-log enable options in TableGen

The --filter option of `plugin structured-data darwin-log enable` took
eArgRawInput, which describes free-form text passed after ' -- ' and so
contradicts how the option works: each --filter takes one rule, which
must be quoted if it contains spaces, and the option may be repeated.

Add eArgTypeLogFilter for a single filter rule and declare the options
of the command in TableGen like the other commands. The multi-line
description of --filter relies on newlines being escaped correctly in
the generated code. eArgRawInput is kept: command help still points at
'help raw-input' to explain the raw-input convention.

The usage line now lists the options in def name order.

Assisted-by: Claude
DeltaFile
+5-98lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
+103-0lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLogOptions.td
+5-0lldb/source/Plugins/StructuredData/DarwinLog/CMakeLists.txt
+1-0lldb/include/lldb/lldb-enumerations.h
+1-0lldb/include/lldb/Interpreter/CommandOptionArgumentTable.h
+115-985 files

LLVM/project 6f7c44b — lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime CMakeLists.txt AppleObjCRuntimeOptions.td

[lldb] Declare objc class-table dump options in TableGen (NFC)

Move the options of `language objc class-table dump` to a new
AppleObjCRuntimeOptions.td.

Assisted-by: Claude
DeltaFile
+4-12lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+7-0lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/CMakeLists.txt
+7-0lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeOptions.td
+18-123 files

LLVM/project 206ec43 — lldb/source/Target TargetOptions.td Platform.cpp

[lldb] Declare OptionGroupPlatformCaching options in TableGen (NFC)

Move the --local-cache-dir option of OptionGroupPlatformCaching to
TargetOptions.td.

Assisted-by: Claude
DeltaFile
+3-6lldb/source/Target/Platform.cpp
+7-0lldb/source/Target/TargetOptions.td
+10-62 files

LLVM/project f2c48db — lldb/source/Target TargetOptions.td Platform.cpp

[lldb] Declare OptionGroupPlatformSSH options in TableGen (NFC)

Move the options of OptionGroupPlatformSSH to TargetOptions.td.

Assisted-by: Claude
DeltaFile
+3-8lldb/source/Target/Platform.cpp
+8-0lldb/source/Target/TargetOptions.td
+11-82 files

LLVM/project a1d3109 — lldb/source/Target CMakeLists.txt TargetOptions.td

[lldb] Declare OptionGroupPlatformRSync options in TableGen (NFC)

Add TargetOptions.td for the options of the option groups in
lldbTarget and move the options of OptionGroupPlatformRSync there.

Assisted-by: Claude
DeltaFile
+4-15lldb/source/Target/Platform.cpp
+17-0lldb/source/Target/TargetOptions.td
+5-0lldb/source/Target/CMakeLists.txt
+26-153 files

LLVM/project 151ce43 — lldb/include/lldb lldb-enumerations.h, lldb/include/lldb/Interpreter CommandOptionArgumentTable.h

[lldb] Declare OptionGroupValueObjectDisplay options in TableGen

The --dynamic-type option takes its values from g_dynamic_value_types,
but it declared no argument type, so `help` printed "-d <none>" and
the option was not described as an enumeration.

Add eArgTypeDynamicValueType and move the value table to the argument
table, where EnumArg<"DynamicValueType"> can find it, and declare the
options of the group in InterpreterOptions.td. GetDynamicValueTypes()
had no other users and is removed; target.prefer-dynamic-value keeps
using the table directly.

`help dynamic-value-type` now lists the valid values, the usage lines
of the commands that accept -d show <dynamic-value-type> instead of
<none>, and list the options of the group in def name order.

Assisted-by: Claude
DeltaFile
+69-0lldb/source/Interpreter/InterpreterOptions.td
+9-44lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp
+0-23lldb/source/Target/Target.cpp
+20-0lldb/include/lldb/Interpreter/CommandOptionArgumentTable.h
+0-2lldb/include/lldb/Target/Target.h
+1-0lldb/include/lldb/lldb-enumerations.h
+99-696 files

LLVM/project 9b639c1 — lldb/include/lldb/Interpreter CommandOptionArgumentTable.h, lldb/source/Interpreter InterpreterOptions.td OptionGroupWatchpoint.cpp

[lldb] Declare OptionGroupWatchpoint options in TableGen

Move the options of OptionGroupWatchpoint to InterpreterOptions.td.
The watch type enumeration moves to the argument table, where
EnumArg<"WatchType"> looks it up. As a result, `help watch-type` now
lists the valid values.

The usage lines of `watchpoint set variable` and `watchpoint set
expression` list the options in def name order.

Assisted-by: Claude
DeltaFile
+6-43lldb/source/Interpreter/OptionGroupWatchpoint.cpp
+25-1lldb/include/lldb/Interpreter/CommandOptionArgumentTable.h
+15-0lldb/source/Interpreter/InterpreterOptions.td
+46-443 files

LLVM/project fc696fe — lldb/source/Interpreter InterpreterOptions.td OptionGroupVariable.cpp

[lldb] Declare OptionGroupVariable options in TableGen (NFC)

Move the options of OptionGroupVariable to InterpreterOptions.td.

GetDefinitions() omits the four frame-only options by dropping the
leading definitions. TableGen emits options sorted by def name, so the
frame-only defs are named to sort first and a static_assert checks
that they do.

--regex takes no argument but was declared with
eArgTypeRegularExpression. The argument type is only consulted for
options that take an argument, so dropping it changes nothing.

Assisted-by: Claude
DeltaFile
+10-105lldb/source/Interpreter/OptionGroupVariable.cpp
+47-0lldb/source/Interpreter/InterpreterOptions.td
+57-1052 files

LLVM/project c928127 — lldb/source/Interpreter InterpreterOptions.td OptionGroupFormat.cpp

[lldb] Declare OptionGroupFormat options in TableGen

Move the options of OptionGroupFormat to InterpreterOptions.td.

GetDefinitions() hides --size and --count by slicing the definitions,
which relies on their order. TableGen emits them sorted by def name
(count, format, gdb-format, size), so name the positions, check them
with a static_assert and adjust the slices. SetOptionValue() now looks
the option up through GetDefinitions(), because the visible options
are no longer a prefix of the table.

Usage lines now list --count before --format.

Assisted-by: Claude
DeltaFile
+24-23lldb/source/Interpreter/OptionGroupFormat.cpp
+23-0lldb/source/Interpreter/InterpreterOptions.td
+47-232 files

LLVM/project d3ee453 — lldb/source/Interpreter InterpreterOptions.td OptionGroupPlatform.cpp

[lldb] Declare OptionGroupPlatform options in TableGen

Move the options of OptionGroupPlatform to InterpreterOptions.td.

TableGen emits options sorted by def name rather than in declaration
order. GetDefinitions() omits --platform by dropping the first
definition, so the def is named to sort first and a static_assert
checks that it does. The sorting changes the order of --build,
--sysroot and --version in the usage lines of `platform select` and
`target create`.

Assisted-by: Claude
DeltaFile
+9-17lldb/source/Interpreter/OptionGroupPlatform.cpp
+24-0lldb/source/Interpreter/InterpreterOptions.td
+33-172 files

LLVM/project 1404404 — lldb/source/Interpreter InterpreterOptions.td OptionGroupMemoryTag.cpp

[lldb] Declare OptionGroupMemoryTag options in TableGen

Move the --show-tags option of OptionGroupMemoryTag to
InterpreterOptions.td. The two variants of the option differ only in
the description, so both are declared and the constructor picks one.

--show-tags used the multi-character constant 'tags' as its key; it
now uses '\x02', so `help memory read` and `help memory find` list it
before the options that have a short name instead of last.

Assisted-by: Claude
DeltaFile
+10-16lldb/source/Interpreter/OptionGroupMemoryTag.cpp
+15-0lldb/source/Interpreter/InterpreterOptions.td
+25-162 files

LLVM/project 2fabc14 — lldb/source/Interpreter InterpreterOptions.td OptionGroupOutputFile.cpp, lldb/test/API/commands/help TestHelp.py

[lldb] Declare OptionGroupOutputFile options in TableGen

Move the options of OptionGroupOutputFile to InterpreterOptions.td.

--append-outfile has no short option and used the multi-character
constant 'apnd' as its key, which TableGen cannot express. It now uses
'\x01' like other options without a short name. Help lists options
sorted by key, so `help memory read` shows --append-outfile first
instead of last; test_help_detailed_information_spacing no longer
assumes which option comes first.

Assisted-by: Claude
DeltaFile
+7-14lldb/source/Interpreter/OptionGroupOutputFile.cpp
+11-0lldb/source/Interpreter/InterpreterOptions.td
+3-1lldb/test/API/commands/help/TestHelp.py
+21-153 files

LLVM/project 7bb38c6 — lldb/source/Interpreter InterpreterOptions.td OptionGroupUUID.cpp

[lldb] Declare OptionGroupUUID options in TableGen (NFC)

Move the --uuid option of OptionGroupUUID to InterpreterOptions.td.

Assisted-by: Claude
DeltaFile
+5-6lldb/source/Interpreter/OptionGroupUUID.cpp
+7-0lldb/source/Interpreter/InterpreterOptions.td
+12-62 files

LLVM/project c3bb89b — lldb/source/Interpreter CMakeLists.txt InterpreterOptions.td

[lldb] Declare OptionGroupArchitecture options in TableGen (NFC)

Add InterpreterOptions.td for the options of the option groups in
lldbInterpreter, which are shared between multiple commands, and move
the --arch option of OptionGroupArchitecture there.

Assisted-by: Claude
DeltaFile
+5-7lldb/source/Interpreter/OptionGroupArchitecture.cpp
+10-0lldb/source/Interpreter/InterpreterOptions.td
+5-0lldb/source/Interpreter/CMakeLists.txt
+20-73 files

LLVM/project 800b84c — lldb/test/API/commands/help TestHelp.py, lldb/utils/TableGen LLDBOptionDefEmitter.cpp

[lldb] Fix escaping in generated command option descriptions

`printEscapedString` converts non-printable characters to a backslash
followed by two hex digits, which C++ compiler reads as octal escape
sequence. A double quote comes out as \22 (0x12) and a newline as \0A,
i.e. a NUL byte followed by 'A', truncating the string.

Use `raw_ostream::write_escaped` instead.
DeltaFile
+3-3lldb/utils/TableGen/LLDBOptionDefEmitter.cpp
+5-0lldb/test/API/commands/help/TestHelp.py
+8-32 files

LLVM/project 5cae5dd — llvm/test/CodeGen/AMDGPU srem.ll load-global-i8.ll, llvm/test/CodeGen/ARM constant-islands-convergence.mir

Rebase, address comments, improvements

Created using spr 2.0.0-beta.1
DeltaFile
+4,445-4,498llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+3,141-3,182llvm/test/CodeGen/RISCV/clmul.ll
+0-5,394llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+0-5,274llvm/test/CodeGen/AMDGPU/srem.ll
+4,635-0llvm/test/CodeGen/ARM/constant-islands-convergence.mir
+4,302-0llvm/test/CodeGen/RISCV/GlobalISel/atomicrmw-max-min-umax-umin.ll
+16,523-18,3485,080 files not shown
+208,202-197,6945,086 files

LLVM/project 155b984 — llvm/utils/TableGen DAGISelMatcherEmitter.cpp, llvm/utils/TableGen/Basic TargetFeaturesEmitter.h

[TableGen] Break ties in sorts to make some emitter output deterministic (#246614)

This changes the content of some generated files, but it is NFC in
terms of compiler behaviour: only the order of equivalent entries in
the generated tables changes.

Three sorts in the TableGen backends compare elements that can be equal,
so the order of the output depends on how the sort implementation
orders equal elements. With LLVM_ENABLE_EXPENSIVE_CHECKS, where
llvm::sort shuffles its input first, the output differs from run to
run:

- SubtargetEmitter sorts subtarget features by FieldName in two places.
  Features that share a FieldName were emitted in an arbitrary order in
  the GET_SUBTARGETINFO_MACRO table and in the inline feature lists.
  The inline feature lists initialize a FeatureBitset, so their order
  does not matter. The only targets with boolean features that share a
  FieldName are CSKY and NVPTX, and neither of them uses
  GET_SUBTARGETINFO_MACRO.

    [20 lines not shown]
DeltaFile
+7-3llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
+7-3llvm/utils/TableGen/Basic/TargetFeaturesEmitter.h
+14-62 files

LLVM/project 9236211 — clang-tools-extra/docs ReleaseNotes.md, clang/include/clang/Analysis/FlowSensitive DataflowAnalysisContext.h

[clang][dataflow] Replace -dataflow-log with CLANG_DATAFLOW_LOG (#246736)

-dataflow-log only parses in tools that call cl::ParseCommandLineOptions
(clang-tidy, the unittests) and is the last static initializer in
clangAnalysisFlowSensitive. Read CLANG_DATAFLOW_LOG instead: `-` writes
a textual log to stderr, and a directory receives HTML logs.
DeltaFile
+14-20clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp
+3-0clang-tools-extra/docs/ReleaseNotes.md
+1-1clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h
+18-213 files

LLVM/project 6c9f3bc — clang/lib/CodeGen CodeGenCLOptions.cpp CodeGenPGO.cpp

[clang][CodeGen] Declare command line options in TableGen (#246735)

Rename -enable-single-byte-coverage and -enable-value-profiling to
-single-byte-coverage and -value-profiling, keeping the old spellings as
aliases.
DeltaFile
+21-40clang/lib/CodeGen/BackendUtil.cpp
+56-0clang/lib/CodeGen/CodeGenCLOptions.td
+19-35clang/lib/CodeGen/CoverageMappingGen.cpp
+25-0clang/lib/CodeGen/CodeGenCLOptions.h
+7-16clang/lib/CodeGen/CodeGenPGO.cpp
+21-0clang/lib/CodeGen/CodeGenCLOptions.cpp
+149-919 files not shown
+200-12215 files

LLVM/project 0110ec1 — clang/lib/Format ContinuationIndenter.cpp, clang/unittests/Format AlignBracketsTest.cpp

[clang-format] Fix nested call indentation in block indent mode (#242376)

## Summary

For a line break directly after an opening bracket, `clang-format`
indents the contents one level relative to the enclosing indentation,
and the closing bracket uses that same indentation as its base
(`getNewLineColumn()`'s `BreakBeforeCloseBracket*` handling). In block
indentation mode -- i.e. when `AlignAfterOpenBracket` is `true` and
`BreakAfterOpenBracketFunction` is set, which is what
`AlignAfterOpenBracket: BlockIndent` maps to -- a nested call that is
part of a member access chain instead derived the contents indentation
from `StartOfFunctionCall`, which can hold a column-aligned position.
The contents were then indented to that column while the closing bracket
stayed at the block indent, so a single expression followed two
different rules:

```cpp
    static_cast<std::uint64_t>(std::chrono::duration_cast<std::chrono::milliseconds>(

    [92 lines not shown]
DeltaFile
+16-0clang/unittests/Format/AlignBracketsTest.cpp
+12-2clang/lib/Format/ContinuationIndenter.cpp
+28-22 files

LLVM/project d190b83 — llvm/lib/Target/AMDGPU SIInstrInfo.td, llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp

[AMDGPU][AsmParser] Support nocompr as a normal named-bit modifier

b9b7b31e2368 made nocompr be parsed and then dropped without
adding an operand by setting AlwaysIgnoreNegative to be 1.

This is not needed, because compr/nocompr can be a normal
named-bit operand, rearranging the exp operands depending on its
value rather than existence.

The IgnoreNegative parameter in parseNamedBit() stays, because
other modifiers still use it.
DeltaFile
+4-3llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+3-3llvm/lib/Target/AMDGPU/SIInstrInfo.td
+7-62 files

LLVM/project 3fb5c4a — llvm/test/Analysis/LoopAccessAnalysis invariant-accesses-disjoint.ll

[LAA] Precommit tests for non-overlapping loop-invariant accesses (NFC) (#245055)

Tests for pairs of loop-invariant accesses. LAA reports an unknown
dependence for all of them. The fix in #245056 finds no dependence for
the eight disjoint pairs. `@overlap`, `@overlap_lower_second`,
`@overlap_scalable`, `@overlap_scalable_vscale`, `@vscale_no_range` and
`@unknown_distance` may overlap and must stay unknown.

Assisted-by: Claude Code
DeltaFile
+667-0llvm/test/Analysis/LoopAccessAnalysis/invariant-accesses-disjoint.ll
+667-01 files

LLVM/project 86d2c6d — llvm/lib/Analysis VectorUtils.cpp, llvm/test/Transforms/LoopVectorize/AArch64 loop-vectorization-factors.ll

[VectorUtils] Refine live-ins handling in computeMinimumValueSizes

Prior to this patch, instructions outside of the analyzed blocks
were visited as part of the traversal. As the result, their
function-wide demanded bits were mixed into the analyzed class
making their out-of-the-loop users broaden demanded bits.

For this reason, we were making different decisions depending
on whether a live-in is an argument (didn't participate in the
traversal) or an instruction (did participate):
https://llvm.godbolt.org/z/5haMTGrY3

This change handles live-ins separately by adding demanded
bits only for their concrete in-loop users and excluding
them from non-traversed user checks.
DeltaFile
+40-14llvm/lib/Analysis/VectorUtils.cpp
+18-14llvm/test/Transforms/LoopVectorize/AArch64/loop-vectorization-factors.ll
+58-282 files

LLVM/project 1b7645a — llvm/test/Transforms/LoopVectorize/AArch64 loop-vectorization-factors.ll

[LV] Add pre-commit tests (NFC)
DeltaFile
+344-0llvm/test/Transforms/LoopVectorize/AArch64/loop-vectorization-factors.ll
+344-01 files

LLVM/project c248304 — llvm/lib/Target/AVR AVRISelLowering.h AVRInstrInfo.td, llvm/test/CodeGen/AVR issue-245758.ll

[AVR] Fix a bug in expansion of ADJCALLSTACKDOWN/ADJCALLSTACKUP (#246377)

Fixes https://github.com/llvm/llvm-project/issues/245758.
DeltaFile
+135-0llvm/test/CodeGen/AVR/issue-245758.ll
+19-0llvm/lib/Target/AVR/AVRISelLowering.cpp
+6-8llvm/lib/Target/AVR/AVRInstrInfo.td
+3-0llvm/lib/Target/AVR/AVRISelLowering.h
+163-84 files

LLVM/project e094f79 — clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr p3-2b.cpp, clang/test/Sema warn-unused-but-set-static-global.cpp init.c

[SystemZ][Clang] Mark clang failures for z/OS for TLS lit tests (#238354)

Mark the TLS related tests as a unsupported on z/OS (mostly by #if-ing
out the code). In addition, the current versions of z/OS have limited
support for TLS.

The support for TLS on z/OS 3.1/3.2 is limited to compile time
expressions for initialization. Eventually ctors/dtors and runtime
expressions for initializers will be supported. Until then update the
tests so the non-TLS parts are run.
DeltaFile
+39-4clang/test/SemaCXX/attr-require-constant-initialization.cpp
+20-2clang/test/SemaCXX/no_destroy.cpp
+12-1clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p3-2b.cpp
+7-2clang/test/Sema/init.c
+6-2clang/test/Sema/LifetimeSafety/noescape-violation.cpp
+8-0clang/test/Sema/warn-unused-but-set-static-global.cpp
+92-1117 files not shown
+163-1423 files

LLVM/project e23f42d — llvm/test/CodeGen/RISCV/GlobalISel/legalizer merge-unmerge-rv32d.mir

[RISCV] Use concrete types and G_BITCAST in merge-unmerge-rv32d.mir. NFC
DeltaFile
+14-12llvm/test/CodeGen/RISCV/GlobalISel/legalizer/merge-unmerge-rv32d.mir
+14-121 files

LLVM/project 029299f — llvm/lib/Target/RISCV/GISel RISCVLegalizerInfo.cpp, llvm/test/CodeGen/RISCV/GlobalISel double-intrinsics.ll

[RISCV][GISel] Use iXLen in G_BITCAST legalizer rule.
DeltaFile
+138-162llvm/test/CodeGen/RISCV/GlobalISel/double-intrinsics.ll
+3-3llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/bitcast-between-f64-and-i64.ll
+1-1llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+142-1663 files