[OpenMP] Propagate PRESENT to pointee entries in mapper codegen
Extend map-type-modifier propagation in emitUserDefinedMapper to the PRESENT
modifier, but only for entries that have an attach ptr (the pointee data, whose
storage differs from the struct's own). A present modifier on the outer clause
must require that pointee to be present on the device.
This is gated on a new PropagatePresentToPointee argument, which Clang sets from
CGM.getLangOpts().OpenMP >= 60. Before 6.0 the present modifier is treated as
not applying to the pointee: the spec committee confirmed the divergence
between the present motion modifier (to/from) and the present map-type modifier
(map) was unintentional, to be fixed as an OpenMP 6.0 erratum. Only propagation
is gated; present written directly in a mapper's own clause applies at all
versions.
A TODO notes PRESENT should also propagate to the struct's own members, which
is blocked while pointer members use PTR_AND_OBJ.
Update the present-check tests to their final 6.0-gated behavior.
[2 lines not shown]
[OpenMP][Clang] Enable ATTACH-style maps for mappers.
Track per-entry attach-ptr info (HasAttachPtr) through mapper codegen so that
emitUserDefinedMapper does not add a new outer MEMBER_OF to pointee/combined
entries (which occupy different storage than the struct) or to ATTACH entries.
Clang and the MLIR translator populate the per-entry array in parallel with the
other MapInfosTy arrays.
Address review:
- Rename MapSkipMemberOfArrayTy to MapHasAttachPtrArrayTy to match the
HasAttachPtr field it backs.
- Restructure the emitUserDefinedMapper comment into a bulleted (*)/(**)/(***)
list keyed to the example entries.
- Reword the Clang comments: HasAttachPtr marks pointee entries that have a
base attach-ptr; a combined entry has a base attach-ptr if its constituents
do; cross-reference emitUserDefinedMapper for the MEMBER_OF rationale.
- Update the moved present-check tests to their now-correct behavior (the
attach-style maps make the inbounds present checks pass and remove the
"explicit extension" errors).
[2 lines not shown]
[OpenMP] Propagate ALWAYS/DELETE/CLOSE map-type modifiers to mapper entries (#210210)
Per OpenMP, when a map/motion clause uses a mapper, any
map-type-modifying modifier on that clause applies to each map the
declared mapper specifies.
This change propagates the `ALWAYS`, `DELETE`, and `CLOSE` bits from the
outer clause's map type into every entry emitted by
emitUserDefinedMapper, except `ATTACH` entries (`ATTACH`|`ALWAYS` is
reserved for `attach(always)`, and the other bits have no meaning for an
`ATTACH` entry).
`PRESENT` is intentionally NOT propagated here: it requires
distinguishing pointee entries from the struct's own storage and is
handled in a follow-up.
Co-authored-by: Claude Opus 4.8 <noreply at anthropic.com>
[RISCV][MC] Emit Better Token Diagnostics (#209700)
This implements an old FIXME in the AsmMatcherEmitter, which can now
emit a token-specific match error diagnostic id, and potentially a
token-specific error message to go along with the diagnostic id.
For RISC-V, the overall effect is to have fewer "invalid operand for
instruction" diagnostics and have more "expected '<TOKEN>'" diagnostics,
which, with multiple near miss support, gives the user the location that
token was expected (but not found).
The rejig to the order of checks in `validateOperandClass` do not
prevent backends from having custom operand kinds which can accept
tokens, as was available before.
The TableGen parts have been implemented in an opt-in way.
---
This was implemented with the assistance of AI.
[AMDGPU] Fix miscompile trimming sparse DMask on image stores (#213586)
Dropping a channel from a sparse DMask removes that write entirely
It does not zero-fill like a contiguous trim does
Only simplify stores when DMask is a contiguous prefix
devel/ammonite: Deprecate and set EXPIRATION_DATE
Upstream ceased development and noted to use lang/scala for REPL and
devel/mill for scripting.
PR: 294680
Approved by: freebsd-ports at jan0sch.de (maintainer)
devel/ammonite: Deprecate and set EXPIRATION_DATE
Upstream ceased development and noted to use lang/scala for REPL and
devel/mill for scripting.
PR: 294680
Approved by: freebsd-ports at jan0sch.de (maintainer)
[flang] Reject type bound procedure overrides with mismatched passed-object dummy names (#210876)
Fixes #206913
Issue:
Flang wrongly accepts a type-bound procedure override when the
implementing procedure uses a different dummy name than the parent
deferred interface.
Root cause:
The PASS override check uses CanOverride, which compares dummy types but
not dummy names for the passed-object argument.
Fix:
Check that dummy names match before CanOverride and report a clear error
clang/AMDGPU: Fix confused image builtin availability tests (#213567)
These tests appear to have been copy paste from other image error
tests, which were checking for invalid argument validation. The point
of these tests were to reject image builtins on unsupported targets,
and not just gfx942. Rename the tests, and fix the invalid argument
usage. Each builtin should be used in a valid way.
Co-authored-by: Claude (Claude-Opus-4.8)
RuntimeLibcalls: Add generic FCMP3_F* three-way compare for single-symbol ABIs
MSP430's __mspabi_cmpd/__mspabi_cmpf are one three-way compare symbol serving
every predicate, previously modeled as six suffixed impls each. Replace them
with a single generic operator FCMP3_*, and give softenSetCCOperands a 3rd
lowering option. After the boolean O*_F* and the per-predicate FCMP3_<pred>_F*
helpers, use the generic FCMP3_F* helper tested with the predicate's condition
code.
Also opt __nedf2 out of the MSP430 default set: it was the only libgcc F64
compare not already opted out, so it would otherwise provide FCMP3_UNE_F64 and
win over __mspabi_cmpd for not-equal.
Co-authored-by: Claude (Opus 4.8) <noreply at anthropic.com>
www/dokuwiki: update to 2026-07-14a
- Remove patch-wrong-2388-fix: upstream rewrote X-Accel-Redirect handling
in http_xaccel_url() which properly handles relocated savedir (FS#2895)
- Fix LICENSE_FILE_BSD3CLAUSE path: simplepie moved LICENSE.txt to
LICENSES/BSD-3-Clause.txt
- Add TEST option (off by default) to control installation of test suites,
PHPStan static analysis files, and the testing plugin
- Update pkg-plist for new/removed/reorganized files in this release
- Remove ldap and pdo_mysql from USE_PHP: these are only required by the
optional authldap and authpdo plugins, not core functionality
PR: ports/296898
PR: ports/271538 (ldap/pdo_mysql removal)
www/dokuwiki: update to 2026-07-14a
- Remove patch-wrong-2388-fix: upstream rewrote X-Accel-Redirect handling
in http_xaccel_url() which properly handles relocated savedir (FS#2895)
- Fix LICENSE_FILE_BSD3CLAUSE path: simplepie moved LICENSE.txt to
LICENSES/BSD-3-Clause.txt
- Add TEST option (off by default) to control installation of test suites,
PHPStan static analysis files, and the testing plugin
- Update pkg-plist for new/removed/reorganized files in this release
- Remove ldap and pdo_mysql from USE_PHP: these are only required by the
optional authldap and authpdo plugins, not core functionality
PR: ports/296898
PR: ports/271538 (ldap/pdo_mysql removal)