* Add `.llvmbc`/`.llvmir` to `ObjectFormat` for emitting unoptimized IR
* Replace `--verbose-air`, `--verbose-intern-pool`,
`--verbose-generic-instances`, `--verbose-llvm-ir`, and
`--verbose-llvm-bc` with various `--debug-log` scopes
* `--debug-log illegal-air`: pre-legalized Air
* `--debug-log legal-air`: post-legalized Air
* `--debug-log air`: final Air with liveness
* `--debug-log ip-stats`: InternPool statistics
* `--debug-log ip-values`: InternPool values
* `--debug-log ip-generic-instances`: InternPool generic instances
* `--debug-log llvm-ir`: pre-optimized LLVM IR
* `--debug-log opt-llvm-ir`: post-optimized LLVM IR
* Delete `--verbose-cimport` which does nothing
* Delete `--verbose-llvm-cpu-features` which is equivalent to looking at
the outputs of `--show-builtin` and `--debug-log llvm-ir`
This makes writing code that is generic over scalar and vector
types easier. In particular, this helps when multiplying a generic
argument by a constant, or passing a generic arugment alongside a
scalar value to a function or builtin such as `@mulAdd`.
This also has the side benefit of making the implicit splat for
some binary operations as suggested by @SpexGuy in #35376 simpler
to implement for inplace arithmetic operations.
part of #35376
Add four assembly files for half-float to integer conversions using
QFloat (qf16) on Hexagon V79.
Each function provides IEEE round-to-nearest-even or fast
round-half-away-from-zero conversion for signed and unsigned 8-bit and
16-bit integer destinations.
V79 lacks direct half-float to integer conversion. V75 and below have
native IEEE vcvt instructions,
while V81 and newer have dedicated hardware support.
Co-authored-by: Sumanth Gundapaneni <sgundapa@quicinc.com>
Both on models and architecture levels this time.
As part of this, I removed neon from the baseline model because that isn't
actually part of the ARMv7 baseline on any platform I'm aware of, and it made
our baseline binaries not work on some real boards, e.g. Tegra 2. We keep
vfp3d16 since virtually every ARMv7 board has VFP.
To not regress PlayStation Vita performance, I also added a kermit model with
neon enabled. This was necessary since vortex_a9 lost all NEON/VFP features by
default.
It was really confusing that feature_overrides was pulling double duty for both
features and models. Now there's a clean split between the two. The new
cpu_overrides also subsumes omit_cpus. This in turn uncovered a bug where some
x86 models were not getting the smep/smap features.
dependencies inside build.zig.zon now support `paths` and `version`
fields which can be used to affect the filtered files of the package as
well as the hash.
A previous commit in this branch changed how `link.Dwarf2` represents
`extern`s. The legacy `link.Dwarf` implementation, used by the old ELF
linker, did not have this change, which led to deviations in debugger
output. This commit brings them back into sync.
In this case, there is a *literal* ZCU input object in the static
library itself. This was causing a safety check to occasionally trip in
safe compiler builds. First noticed when debugging an unrelated issue:
see https://codeberg.org/ziglang/zig/issues/37327#issuecomment-25643513.
The main goal here was to fix a source of non-determinism leading to
unreproducible output binaries. However, I also ended up simplifying the
logic considerably by determining that the ability for segments to jump
over one another was of little to no practical benefit. This was because
by doing so, the segment would intrude on the ability of a different
segment to grow in-place; so while it may limit the need for further
segment movement right away, it made it more likely to occur in the near
future, and these effects largely canceled out. Therefore, the linker
now preserves the order of segments at all times. This makes SPARC less
of a special case, and might make it slightly easier to design our
alternative to linker scripts in the future.