[VPlan] Inline PlainCFGBuilder::isExternalDef into its only use (NFC) (#246752)
isExternalDef is a debug-only helper used by a single assert in
getOrCreateVPOperand. Fold its check into the assert, which also removes
two #ifndef NDEBUG blocks.
[CodeGen] Add test coverage for #245615 (NFC) (#246519)
Test coverage for #245615. These cases change with it: a sign test of
a load OR'ed with a sign test of an i64 value, an i16 load that is also
stored, a zero extension that feeds a shift or an add, an i16 compare
with a constant that needs more than 8 bits, a <4 x i8> compare on
i686, and loads with select_cc users on AArch64 and MSP430.
Assisted-by: Claude Code (Claude Opus 5.5)
sysutils/toybox: Fix license, unbreak check-sanity
Remove LICENSE_NAME and LICENSE_PERMS in order to unbreak the sanity
check as it was added in 2a73a67e5939 to Mk/bsd.licenses.db.mk.
PR: 301203
Reported by: pkg-fallout, maintainer
[GlobalISel] Forward AllowUndefs in splat zero/all-ones checks (#246538)
For vector inputs, `isNullOrNullSplat` and `isAllOnesOrAllOnesSplat`
returned false whenever `AllowUndefs` was false. As a result, a constant
splat like `<0, 0, 0, 0>` was never matched, and `<0, undef, 0, 0>` was
rejected even with `AllowUndefs=true`. Forward the AllowUndefs and add
unit tests.
Assisted-by: Claude Opus 5.5
[VPlan] Intersect GEP flags of hoisted predicated load addresses (#246747)
hoistPredicatedLoads uses the address of one load of a group for all of
them. Its GEP flags may only hold for that load's branch; intersect the
flags across the group so the other lanes do not load through a poison
pointer.
[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
[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
[lldb] Declare OptionGroupPlatformCaching options in TableGen (NFC)
Move the --local-cache-dir option of OptionGroupPlatformCaching to
TargetOptions.td.
Assisted-by: Claude
[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
[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
[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
[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
[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
[lldb] Declare OptionGroupPlatform options in TableGen
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 -b, -S and -v in the usage lines of
`platform select` and `target create`.
Assisted-by: Claude
[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
[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
[lldb] Declare OptionGroupPlatformCaching options in TableGen (NFC)
Move the --local-cache-dir option of OptionGroupPlatformCaching to
TargetOptions.td.
Assisted-by: Claude
[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
[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
[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