miller: Update to version 6.23.0
Performance
Cached regexes are looked up before compiling in regexpCompileCached: #2292
The CSV reader skips the per-field key lookup when the header has no duplicates: #2291
The JSON writer skips the escape loop for strings that need no escapes: #2321
Bug fixes
Input handling
UTF-8 BOM handling is fixed for gzipped CSV input: #2278
A leading UTF-8 BOM is now stripped for TSV and CSV-lite: #2281
Time and date functions
fsec2hms and fsec2dhms carry rounded fractional seconds correctly: #2282
strptime and gmt2sec now work for dates outside the int64 nanosecond range: #2285
File-backed TZ values are supported: #2247
String functions
strmatchx reports starts and ends as UTF-8 character positions, not byte positions: #2287
[44 lines not shown]
[lldb, docs] Fix formatting in `lldb-server` documentation (#241142)
Currently the specific lines appear as
```
lldb-server g :1234 --attach 12345 lldb-server g :1234 --attach program-name
```
and
```
lldb-server g :1234
(lldb) gdb-remote 1234 (lldb) process launch a.out
```
[lldb] Count the .debug_names fallback index in debugInfoIndexTime (#245086)
When `.debug_names` does not cover every unit, `DebugNamesDWARFIndex`
indexes the remaining units with a `ManualDWARFIndex`. That fallback
records its time in its own timer, but `DWARFIndex::GetIndexTime()` and
`ResetStatistics()` only use the timer of the index they are called on,
and nothing advances the one in `DebugNamesDWARFIndex`. As a result
`debugInfoIndexTime` and `totalDebugInfoIndexTime` in `statistics dump`
left out the fallback, and a binary that mixes indexed and unindexed
units could spend minutes indexing while reporting close to zero. This
change makes `DebugNamesDWARFIndex` add its fallback's timer.
The test links a unit that has `.debug_names` with one that does not,
then checks that the index time is nonzero after a lookup and zero again
after `SBTarget::ResetStatistics`.
[lld] Add --pass-plugin-arg=<plugin>,<arg> (#244944)
#227414 added `-plugin-arg=<plugin>,<arg>` to opt and llc and #244917
adds `-fpass-plugin-arg=` to clang. lld loads `--load-pass-plugin=`
plugins inside LTO, after option parsing, so the only way to set a
plugin's options is to load it a second time with `-mllvm=-load=`, which
registers its cl::opts in the process's namespace.
Add lto::Config::PassPluginArgs, which LTO::run() passes to the loaded
plugins and statically linked extensions (e.g. Polly), and include it in
the ThinLTO cache key as MllvmArgs is. Add `--pass-plugin-arg=` to the
ELF and Mach-O ports.
LLM-aided
[llvm-profgen] Defer merging a context until its caller has decided
The CS pre-inliner processes functions top-down. For each function it
first calls getBaseSamplesFor(), which merges every context of that
function that no caller has inlined into its base profile, and only then
decides what to inline. That's only correct if all callers have already
decided. In a recursive SCC no order guarantees this, so a callee can be
processed first and take contexts its caller would have kept inlined.
Repro:
https://godbolt.org/z/5853ev7Mb
evalC and arith call each other, and the Pass1 compiler inlines
arith into evalC. The build runs llvm-profgen --llvm-sample-
profile=input.prof on the binary and prints the result. input.prof is
a small hand-written CS profile (synthetic counts) with:
- [evalC:3 @ arith], !Attributes: 1: the binary inlined arith into
[68 lines not shown]
[HLSL] Complete SV_Target support (#237027)
Implement the remaining SV_Target rules from the HLSL semantics
overview.
- In SPIR-V, the location of an SV_Target output is its semantic index,
rather than the next free output location. An array covers the
consecutive locations of its elements.
- DXIL pixel shader outputs are not indexable, and each render target
must be in the row of its semantic index. An SV_Target array is
therefore split into one single-row signature element per render target.
This previously hit an assertion during signature packing.
- The DirectX backend validates that SV_Target elements use 16- or
32-bit floating-point components.
Signature elements now also take their semantic kind from the
interpretation of the semantic. A system-value name with the arbitrary
interpretation, so that SV_Target is only non-arbitrary on a pixel
output, keep the system-value kind.
[3 lines not shown]