[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
[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
[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
[lldb] Declare OptionGroupOutputFile options in TableGen
--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.
This moved --append-outfile option description to the beginning of the
`help memory read` output; the test was adjusted accordingly.
Assisted-by: Claude
[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.
[MC][NFC] Replace MCAsmInfo::printSwitchToSection with func ptr (#246721)
Avoid a virtual function by using a function pointer for printing
section directives. Saves ~400B of .data.rel.ro.
Also remove now-unneeded friend declarations of MCAsmInfo subclasses.
editors/vim-classic: Fix pkg-plist
Fix pkg-plist when NLS is off by applying %%NO_NLS%%.
Some manpages seems to generate only when gtk{2,3}/motif flavor
is used. So, use %%GUI%%%%NLS%% substitution in pkg-plist.
PR: 301192
Approved by: portmgr (blanket, pkg-plist fix)
MFH: 2026Q4
(cherry picked from commit e2f360fe6cc273572b296835a26044cf48bf270a)
[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