[llvm-branch-commits] [OpenMP] Widen taskgraph graph_id to uintptr_t (PR #200403)
Julian Brown via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri May 29 06:54:47 PDT 2026
https://github.com/jtb20 created https://github.com/llvm/llvm-project/pull/200403
The 'graph_id' clause introduced in OpenMP 6.0 lets the user attach an
identifying value to a taskgraph instance, and a potentially-useful
idiom is to pass a pointer expression so that each instance can uniquely
depend on the pointed-to data. The corresponding runtime entry point
__kmpc_taskgraph and the kmp_taskgraph_record_t::graph_id field were
declared as 32-bit types, which silently truncates such pointer values
on LP64 targets.
Widen the field and the runtime ABI to uintptr_t, lower 'graph_id'
to CGM.IntPtrTy in emitTaskgraphCall, and mark the OMPRTL
descriptor as SizeTy so the call is typed consistently on 32- and
64-bit hosts. Refresh the auto-generated CHECK line in
taskgraph_codegen.cpp accordingly.
Assisted-By: Claude Opus 4.7
More information about the llvm-branch-commits
mailing list