[clang] [Clang][OpenMP] Allow array shaping as the base of array sections in target update (PR #244591)
Akash Manna via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 06:56:59 PST 2026
akash-manna-sky wrote:
> Wrong AttachPtrExpr and excess descriptor dimensions for shaped arrays of pointers (T **pp)
Done as suggested: for a non-contiguous `target update` list the attach-pointer search starts after the shaping expression, and the descriptor dimensions stop at the attach pointer as well. `pointer_array` in GH136294.c checks that `(([n])pp)[0:n][1]` is based on `pp`.
> Sizeless pointees (__SVInt32_t *, __rvv_int32m1_t *) bypass check and crash LLVM IR CodeGen
Done, `isSizelessType()` added to the rejection. Tests in SemaOpenMP/arm-sve-acle-types.cpp and riscv-vector-with-openmp.c.
> ArraySectionExpr::getBaseType() and getElementType() ignore OMPArrayShapingExpr::getShapedType()
Done as suggested.
> Unreachable dependent-type check in ActOnOMPArraySectionExpr
Removed. A value-dependent dimension already makes the shaping expression type-dependent (`computeDependence`), so the earlier dependent-base return covers it.
@alexey-bataev
https://github.com/llvm/llvm-project/pull/244591
More information about the cfe-commits
mailing list