llvm-project
00c93ad3 - [OpenMPIRBuilder] Support runtime-sized map entry segments in offloading arrays

Commit
7 days ago
[OpenMPIRBuilder] Support runtime-sized map entry segments in offloading arrays An iterator modifier on a map or motion clause expands a list item into a number of map entries that is only known at run time, so the offloading arrays can no longer be sized and filled at compile time. Add MapInfosTy::DynamicSegment, which describes such a run of entries by a runtime count and a callback that emits the entry for a given index. When segments are present, emitOffloadingArrays allocates the arrays with the runtime total and fills each segment in a loop after the static entries. createTargetData accepts segments on standalone constructs without nowait and releases the arrays after the runtime call; the other paths assert that no segments are given. This prepares the translation of iterator-modified maps on target enter data, target exit data and target update, and gives iterator maps in declare mapper functions a shared representation. Assisted with Claude Opus 5.5.
Author
Parents
Loading