CSKY: Use LastSubtargetCache in getSubtargetImpl (#242778)
Migrate to the new common pattern for targets to cache the last
result.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
NAS-145323 / 27.1.0 / Only accept a report file name in audit.download_report
audit.export creates each report directly in the user's report
directory, so report_name must be a single file name. Refuse a name
that is empty, is "." or "..", or contains "/" or a NUL byte.
Open the report with safe_open, which refuses a symlink anywhere in
the path, and serve it from that file once it is confirmed to be a
regular file. This replaces the separate existence and file type
checks on the path.
(cherry picked from commit 73b9dd025a1d75ed63fd21491629804e3107af6a)
[Offload][AMDGPU][NFC] Introduce per-device runtime options (#239816)
This PR:
- Introduce per-device runtime options;
- Enable flexible setting for default values;
- Move AMDGPU queue and SDMA settings into the new options structure to
show the usage;
- No changes to the existing behaviors and defaults;
- Can be extended to support configurations from profiles.
RFC can be found:
https://discourse.llvm.org/t/rfc-offload-amdgpu-device-specific-runtime-defaults-for-the-openmp-amdgpu-plugin/91613
Assisted by GPT5.6
[LLVMABI] Treat data member pointers as scalars (#244140)
Match Clang, which passes atomic data member pointers directly on x86-64
Required for https://github.com/llvm/llvm-project/pull/223259
CGExprCXX: emit family and allockind attributes (#239732)
This allows us to remove the special knowledge about C++ allocation from
LLVM's MemoryBuiltins.cpp, instead trusting attributes to communicate
the important properties.
Annoyingly, clang has to grow a little bit of hard-coded knowledge about
mangled symbol names in order to actually get the most-basic-matching
::operator::new when working out the alloc-family attribute. I spent
some time trying to do this "right" by looking up the available
operators new and finding the best one, but that's super tricky and this
has the virtue of working and being pretty obviously correct when
compared to the old code.
Happily, clang now emits allocator family attributes for custom
allocators like the `__hot_cold_t` overloads in `new_hot_cold.cpp`
(which `isReplaceableGlobalAllocationFunction` in clang recognizes),
allowing us to remove that special knowledge from LLVM.
[6 lines not shown]
NAS-145323 / 28.0.0-BETA.1 / Only accept a report file name in audit.download_report (#20266)
audit.export creates each report directly in the user's report
directory, so report_name must be a single file name.
Only accept a report file name in audit.download_report
audit.export creates each report directly in the user's report
directory, so report_name must be a single file name. Refuse a name
that is empty, is "." or "..", or contains "/" or a NUL byte.
Open the report with safe_open, which refuses a symlink anywhere in
the path, and serve it from that file once it is confirmed to be a
regular file. This replaces the separate existence and file type
checks on the path.
README: building with Nix
How to go from a SmartOS host to a platform: the nix-zone image, a
builder-brand zone from it, and tools/build_nix.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
[clang] Don't relocate DWARF on 32-bit ARM and x86 Mach-O (#244069)
On 32-bit ARM and x86, Mach-O uses scattered relocations, which identify
their target by address. Relocatable DWARF puts every __DWARF section at
address 0, so these relocations become ambiguous: a line table's
reference to a file name in __debug_line_str resolves to the first
function in __text instead.
Don't enable relocatable DWARF for these architectures.
Assisted-by: Claude
Build SmartOS with Nix from this checkout
default.nix is the package set of nixpkgs-illumos' SmartOS build, at the
commit nix/nixpkgs-illumos.json pins, with this checkout as the
smartos-live built and the identity the build is stamped from.
tools/build_nix makes a platform and its USB image in one step, through
nixpkgs-illumos' build-smartos.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
NAS-145324 / 27.1.0 / Check the resolved path in filesystem permission changes
filesystem.stat set realpath from the absolute path for anything that
was not itself a symlink, so it kept ".." components and symlinked
parent directories. Resolve the whole path, as the field's description
says. NFS share validation and vm.device.convert, which also use
realpath, now see the fully resolved path.
The path checks of filesystem.chown, filesystem.setperm and
filesystem.setacl matched that realpath by string prefix, without a
component boundary. Compare whole path components instead. The S3
bucket check no longer resolves the path a second time.
Also fix the schema name in the "Must be an absolute path" error.
(cherry picked from commit c0250bb7913c6d4b569d4536ec97f5938317894f)
[dsymutil][test] Use FileCheck --ignore-case in pseudo-probe.test (#243999)
Follow-up to #243925, addressing the post-merge review comment from
@perry-ca.
Use FileCheck's `--ignore-case` option instead of piping `od` output
through `tr A-F a-f`, consistent with other tests (e.g.
`llvm/test/tools/yaml2obj/XCOFF/string-table.yaml`).
[OpenMP] Fix __kmp_invoke_microtask for arm64_32 (#243956)
On arm64_32 pointers are 4 bytes. Use 4 byte loads and stores for the
p_argv entries, the stack arguments and *exit_frame_ptr.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[InstCombine] Check the select type in the usub.sat sign mask fold (#244281)
`foldICmpUSubSatWithAndForMostSignificantBitCmp` replaces a select with
an `and` that has the type of the `usub.sat` operands. We can't do the
replacement when the select has a different type.
This PR was assisted by AI but I reviewed all the changes.
[lldb] Fix SBCommandReturnObject::SetError dropping the error (#244317)
8789c96698e0 inverted the check, so only a successful SBError was
forwarded.
Assisted-by: Claude