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 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
