[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
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
[AMDGPU] Add a test for the latency tie-break in the initial stages
Follow-up to #243116, which made the initial scheduling stages keep a
schedule that ties in register pressure if it has a better latency
metric.
In the test, every value defined in the region is live out of it, so the
pressures before and after scheduling are equal in any order. The ILP
initial stage hides the load latency and keeps the new schedule, which
it reverted before #243116.
Co-authored-by: Cursor <cursoragent at cursor.com>
[lldb] Declare OptionGroupMemoryTag options in TableGen
The option has a dynamic description that TableGen cannot represent,
so declare both variants and let the constructor pick 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. '\x01' is reserved by
--append-outfile.
Assisted-by: Claude
[GVN] Merge metadata from values to closest load which feed select (#244997)
A select from load can contain different metadata premise. Such metadata
might be incompatible and therefore propagate poison to select. Merge
the metadata and propagate to the previous load to eliminate
miscompilation.
Such load should be the closest dominate node or we might relax on the
unrelated load instruction.
Asissted-by: Cluade # Test
Fixes: https://github.com/llvm/llvm-project/issues/241504
ipfw: fix off-by-one in the IP_FW_XADD rule count check
Restore the pre-4a77657cbc0 ">=" comparison, otherwise parse_rules_v1()
writes one rule_check_info beyond the allocated buffer.
Do the same in ip_fw_compat.c, which has a copy of the loop but is not
built at the moment.
stable/14 is not affected.
Reviewed by: ae
Fixes: 4a77657cbc0 ("ipfw: migrate ipfw to 32-bit size rule numbers")
MFC after: 1 week
MFC to: stable/15
Found with: Claude Code Opus 5.5
Differential Revision: https://reviews.freebsd.org/D61727
(cherry picked from commit 8364b6bc0c36ab66f71cb2b3e00479326132c80f)
Merge tag 'thermal-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull thermal control fix from Rafael Wysocki:
"Address a possible NULL pointer dereference in the thermal
sysfs interface by adding thermal zone locking to some show/store
callbacks (Yu Zhang)"
* tag 'thermal-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
thermal: sysfs: take the zone lock in the tzp attribute handlers
[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