[Clang][CIR] Implement CIRGen logic for __builtin_bit_cast
NOTE: This patch merely upstreams code from
* https://github.com/llvm/clangir.
This Op was originally implemented by Sirui Mu in #762 Further
modification were made by other ClangIR contributors.
co-authored-by: Sirui Mu <msrlancern at gmail.com>
[CIR] Add cir.libc.memcpy Op
The operation is a 1:1 mapping to libc's memcpy.
NOTE: This patch merely upstreams code from
* https://github.com/llvm/clangir.
This Op was originally implemented by Vinicius Couto Espindola. Further
modification were made by other ClangIR contributors.
co-authored-by: Vinicius Couto Espindola <vini.couto.e at gmail.com>
[LifetimeSafety] Track dereference operators for GSL pointers in STL (#176643)
Improve lifetime analysis for STL iterators in range-based `for` loops
by tracking dereference operator of GSL pointers.
Added support for dereference operators (`*`) for GSL pointers in STL to
track pointer value instead of `this` arg reference.
Tests:
- Removed a test which started to fail and didn't look correctly
annotated (?).
- Added new test cases for range-based for loop variables and iterator
arrow operators
## **Thoughts on overall direction:**
I feel we are twisting clang too much here to hardcode heuristics which
cannot be otherwise expressed through available annotations. This had
initially started by the intention of implicitly annotating STL to
[76 lines not shown]
NAS-139131 / 25.10.2 / Update zfs_resilver_min_time_ms settings (by amotin) (#18058)
Upstream https://github.com/openzfs/zfs/pull/18060 changed the default
value from 3000 to 1500 to reduce resilver effects on payload writes.
Follow it in our code.
Original PR: https://github.com/truenas/middleware/pull/17930
Co-authored-by: Alexander Motin <alexander.motin at TrueNAS.com>
Extend security-officer keys for another couple years.
Certify key until 2030 (planning to move to a PQC algo then).
Encrypt and Sign keys until 2028.
Approved by: so
multimedia/gpac: fix build on powerpc64le
ld: error: relocation R_PPC64_TOC16_LO cannot be used against symbol 'gf_sg_handle_dom_event'; recompile with -fPIC
>>> defined in scenegraph/dom_events.o
>>> referenced by dom_events.c
>>> scenegraph/dom_events.o:(gf_dom_listener_build_ex)
ld: error: relocation R_PPC64_TOC16_LO cannot be used against symbol 'gf_sc_on_event'; recompile with -fPIC
>>> defined in compositor/compositor.o
>>> referenced by compositor.c
>>> compositor/compositor.o:(gf_sc_load)
ld: error: relocation R_PPC64_TOC16_LO cannot be used against symbol 'gf_scene_get_time'; recompile with -fPIC
>>> defined in compositor/scene.o
>>> referenced by scene.c
>>> compositor/scene.o:(gf_scene_new)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
[mlir] Always update ExtractValue to use last container in insert chain (#176588)
The current logic only updates the container operand to the last
`InsertValueOp` in a chain if we haven't switched to a nested insert
chain. Instead, keep track of the new container value and extract
position at all times, and always update if we have found a point higher
up in the chain to extract from.
This allows us to bypass more insertions (see the updated test) when we
are accessing nested struct members. It also allows us to move the
constant check back to the top, because we can just do it on a
successive call to fold.
Also added a test for a missing case (it is unchanged by this PR).
WebAssembly: Use LibcallLoweringInfo
Query libcalls through analysis instead of the TargetLowering
copy. This could be nicer by parsing the libcall name and checking
against the LibcallImpl, but that's probably slower for such a specific
case (alternatively, ExternalSymbol should support encoding as a LibcallImpl).
[AMDGPU][GlobalISel] Add RegBankLegalize support for G_AMDGPU_MAD_U64_U32 (#176060)
Also add partial G_MUL support in the form of uniform S32 rule for G_MUL
since lowering G_AMDGPU_MAD_U64_U32 requires both uniform and divergent
S32 G_MUL.