[CIR] Avoid duplicate name collisions in LoweringPrepare (#194469)
This fixes a bug in the CIR LoweringPrepare pass where we were creating
multiple constant initializer global values with the same name, causing
references to them (specifically cir.get_global) to get the wrong value.
Assisted-by: Cursor / claude-4.7-opus-xhigh
net/foreman-proxy: Update 3.13.0 => 3.18.1
Changelog:
https://github.com/theforeman/smart-proxy/blob/3.18.1/CHANGELOG
Commit log:
https://github.com/theforeman/smart-proxy/compare/3.13.0...3.18.1
Improve port:
- Fix warnings from portclippy.
- Fix build with USERS/GROUPS not in UIDs/GIDs.
- In do-install:
- Merge MKDIRs.
- Replace "LN -s" with "RLN".
- Replace "CP -r" in for loop with single COPYTREE_SHARE.
- Merge INSTALL_SCRIPTs.
- Replace "${PREFIX}/etc/foreman-proxy" with "${ETCDIR}".
- Replace "${PREFIX}/etc/foreman-proxy" with "${ETCDIR}" in rc script.
[3 lines not shown]
[OpenMPIRBuilder] Cast device num_threads to i32 for __kmpc_parallel_60 (#194634)
I observed a crash in device OpenMP lowering when compiling with
`-fdefault-integer-8`. In `targetParallelCallback`, `NumThreads` can be
`i64`, but `__kmpc_parallel_60` expects an `i32` `num_threads`
parameter, which caused a bad-signature assertion during call creation.
The fix is to use `CreateZExtOrTrunc(..., Int32)` for the `num_threads`
argument before building the runtime call. This matches the handling
used in clang in `CGOpenMPRuntimeGPU::emitParallelCall`.
The problem can be seen with the following testcase whe compiled with
`flang -fopenmp --offload-arch=gfx90a test.f90 -fdefault-integer-8``
```
program test
implicit none
integer :: nthreads
integer :: i
[6 lines not shown]