[SPIRV] Fix legalization of zero-size external global (#183130)
`getInitializer` asserts if there's no initializer, so check first.
I found this compiling some `liboffload` unit tests.
---------
Signed-off-by: Nick Sarnie <nick.sarnie at intel.com>
[MLIR][XeVM] Enable some SPIRV extensions by default for XeVM target. (#182399)
Enable,
SPV_EXT_relaxed_printf_string_address_space
SPV_INTEL_cache_controls
SPV_INTEL_variable_length_array
[CIR] Implement flattening of nested EH cleanup scopes (#183404)
This implements flattening of nested EH cleanup scopes, rewriting the
inner scope's resume to branch to the outer scope's EH cleanup block.
I used AI tools to generate many of the changes in this PR, but I have
carefully reviewed the changes and updated as needed.
[CIR] Upstream support for pure virtual destructors (#182857)
Upstreams support for emitting traps for abstract destructors.
Signed-off-by: vishruth-thimmaiah <vishruththimmaiah at gmail.com>
[PowerPC] using milicode call for memccpy instead of lib call (#182563)
AIX has "millicode" routines, which are functions loaded at boot time
into fixed addresses in kernel memory. This allows them to be customized
for the processor. The __memccpy routine is a millicode implementation;
we use millicode for the memccpy function instead of a library call to
improve performance
---------
Co-authored-by: Matt Arsenault <arsenm2 at gmail.com>
libfetch: Fail hard if interrupted while connecting
This fixes an issue where the first address that DNS returns is blocked
by a packet filter, so we hang for a while, then the user hits Ctrl-C,
interrupting connect(2), whereupon we move on to the next address, get
a connection, request the file, and return to fetch(1), which sees that
SIGINT was caught and bails.
Note that we make no attempt to enforce fetchTimeout in the connection
phase, and never have. It's feasible, but non-trivial, so we'll leave
it as an exercise for future us.
PR: 293312
MFC after: 1 week
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D55406
(cherry picked from commit afbdcd402bb439bd3d487baaad63b68e95929265)
(cherry picked from commit cca6f5eadb796b03379eb21f38c74ca46a64e45b)
[DebugInfo][HIP] Set DW_AT_language field to DW_LANG_HIP when AMD clang is used (#181738)
Before this change, HIP applications compiled with AMD clang would set
the `DW_AT_language` field to `DW_LANG_C_plus_plus_14`:
```
llvm-dwarfdump hello
hello: file format elf64-x86-64
.debug_info contents:
0x00000000: ...
0x0000000c: DW_TAG_compile_unit
...
------> DW_AT_language (DW_LANG_C_plus_plus_14)
DW_AT_name ("helloworld.cpp")
...
```
[26 lines not shown]
sysutils/salt: fix two crashes starting salt_master on NetBSD
The patch for salt/grains/core.py avoids accessing an undefined element
of the grains dictionary, on both NetBSD and OpenBSD. This matches the
corresponding code for FreeBSD.
The patch for salt/utils/network.py restricts the OS version test to the
part before "_" on NetBSD; this could raise an exception if py-packaging
wasn't aware of the suffix (e.g., "BETA" would work but "STABLE" not).
Bumps PKGREVISION.
Tested on NetBSD/amd64.
replace enable_smb1 boolena with minimum_protocol
This commit responds to an increasing trend where our user
base has disabling all non-SMB3 dialect support on the
SMB server as a part of a compliance checklist. Originally
we presented a simply boolean checkbox to re-enable SMB1
support. The new field is a string containing minimum
protocol that may be set to the following values:
*SMB1* - this enables SMB1 support (as well as SMB2/3). Users
generally *shouldn't* enable SMB1 unless they have a good
reason to (for example a very expensive CNC mill with
dependency on a very old version of Windows).
*SMB2* - (default) this disables SMB1 support, but allows
SMB2/3 protocol access. The minimum supported SMB dialect
is 2.04 (Windows Vista / older linux clients).
*SMB3* - new. This disables SMB1 support, and *also* disables
[8 lines not shown]