|
LLVM 24.0.0git
|
This structure contains combined information generated for mappable clauses, including base pointers, pointers, sizes, map types, user-defined mappers, and non-contiguous information. More...
#include "llvm/Frontend/OpenMP/OMPIRBuilder.h"
Classes | |
| struct | DynamicSegment |
| Represents a group of mapper sub-components produced by an iterator modifier on a declare mapper's map clause: the component count is only known at runtime, so these are pushed one at a time via __tgt_push_mapper_component from inside a generated loop, rather than being added to the arrays above. More... | |
| struct | StructNonContiguousInfo |
Public Member Functions | |
| void | append (MapInfosTy &CurInfo) |
| Append arrays in CurInfo. | |
Public Attributes | |
| MapValuesArrayTy | BasePointers |
| MapValuesArrayTy | Pointers |
| MapDeviceInfoArrayTy | DevicePointers |
| MapValuesArrayTy | Sizes |
| MapFlagsArrayTy | Types |
| MapNamesArrayTy | Names |
| MapHasAttachPtrArrayTy | HasAttachPtr |
| True for entries that have an attach ptr, and thus an accompanying ATTACH entry linking that ptr to its ptee. | |
| StructNonContiguousInfo | NonContigInfo |
| SmallVector< DynamicSegment, 0 > | DynamicSegments |
| Value * | LeadingParentCond = nullptr |
| When set, the first statically-known component is a parent synthesized only to group the DynamicSegments' components (via MEMBER_OF): it spans the range those components cover and is pushed only if this i1 condition holds at runtime, typically "some segment has a non-zero
trip count". | |
This structure contains combined information generated for mappable clauses, including base pointers, pointers, sizes, map types, user-defined mappers, and non-contiguous information.
Definition at line 3063 of file OMPIRBuilder.h.
|
inline |
Append arrays in CurInfo.
Definition at line 3141 of file OMPIRBuilder.h.
References BasePointers, llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::OpenMPIRBuilder::MapInfosTy::StructNonContiguousInfo::Counts, DevicePointers, llvm::OpenMPIRBuilder::MapInfosTy::StructNonContiguousInfo::Dims, DynamicSegments, llvm::SmallVectorTemplateCommon< T, typename >::end(), HasAttachPtr, Names, NonContigInfo, llvm::OpenMPIRBuilder::MapInfosTy::StructNonContiguousInfo::Offsets, Pointers, Sizes, llvm::OpenMPIRBuilder::MapInfosTy::StructNonContiguousInfo::Strides, and Types.
| MapValuesArrayTy llvm::OpenMPIRBuilder::MapInfosTy::BasePointers |
Definition at line 3071 of file OMPIRBuilder.h.
Referenced by append(), and llvm::OpenMPIRBuilder::emitOffloadingArrays().
| MapDeviceInfoArrayTy llvm::OpenMPIRBuilder::MapInfosTy::DevicePointers |
Definition at line 3073 of file OMPIRBuilder.h.
Referenced by append(), and llvm::OpenMPIRBuilder::emitOffloadingArrays().
| SmallVector<DynamicSegment, 0> llvm::OpenMPIRBuilder::MapInfosTy::DynamicSegments |
Definition at line 3128 of file OMPIRBuilder.h.
Referenced by append().
| MapHasAttachPtrArrayTy llvm::OpenMPIRBuilder::MapInfosTy::HasAttachPtr |
True for entries that have an attach ptr, and thus an accompanying ATTACH entry linking that ptr to its ptee.
This is a property of the storage block an entry describes, not of the map clause list item: it is true iff the entry's storage is the pointee storage reached through some attach ptr. So, for int *p; map(p[1:10]), which produces &p[1], &p[1], 10*sizeof(int), TO|FROM <- HasAttachPtr = true &p, &p[1], sizeof(void*), ATTACH <- HasAttachPtr = false it is set on the pointee entry only. It is never set on the ATTACH entry itself, nor on an entry that maps the pointer as an object in its own right (e.g. the map(p) entry for the pointer's own storage).
It is set on every entry whose storage lies in a pointee block, including a combined struct entry for such a block and the individual member entries that are MEMBER_OF it. e.g. for map(s2.s1p->x, s2.s1p->y): &s2.s1p[0], &s2.s1p->x, sizeof(x..y), ALLOC <- true &s2.s1p[0], &s2.s1p->x, 4, MEMBER_OF(1)|TO|FROM <- true &s2.s1p[0], &s2.s1p->y, 4, MEMBER_OF(1)|TO|FROM <- true &s2.s1p, &s2.s1p->x, sizeof(void*), ATTACH <- false with s2.s1p as the attach ptr for all three.
Definition at line 3099 of file OMPIRBuilder.h.
Referenced by append().
| Value* llvm::OpenMPIRBuilder::MapInfosTy::LeadingParentCond = nullptr |
When set, the first statically-known component is a parent synthesized only to group the DynamicSegments' components (via MEMBER_OF): it spans the range those components cover and is pushed only if this i1 condition holds at runtime, typically "some segment has a non-zero trip count".
Skipping it when no component would be grouped under it keeps the mapped variable from becoming device-present for an iterator that expands to nothing. Consumed by emitUserDefinedMapper only; not merged by append().
Definition at line 3138 of file OMPIRBuilder.h.
| MapNamesArrayTy llvm::OpenMPIRBuilder::MapInfosTy::Names |
Definition at line 3076 of file OMPIRBuilder.h.
Referenced by append(), llvm::OpenMPIRBuilder::createTargetData(), and llvm::OpenMPIRBuilder::emitOffloadingArrays().
| StructNonContiguousInfo llvm::OpenMPIRBuilder::MapInfosTy::NonContigInfo |
Definition at line 3100 of file OMPIRBuilder.h.
Referenced by append(), llvm::OpenMPIRBuilder::emitNonContiguousDescriptor(), and llvm::OpenMPIRBuilder::emitOffloadingArrays().
| MapValuesArrayTy llvm::OpenMPIRBuilder::MapInfosTy::Pointers |
Definition at line 3072 of file OMPIRBuilder.h.
Referenced by append(), and llvm::OpenMPIRBuilder::emitOffloadingArrays().
| MapValuesArrayTy llvm::OpenMPIRBuilder::MapInfosTy::Sizes |
Definition at line 3074 of file OMPIRBuilder.h.
Referenced by append(), and llvm::OpenMPIRBuilder::emitOffloadingArrays().
| MapFlagsArrayTy llvm::OpenMPIRBuilder::MapInfosTy::Types |
Definition at line 3075 of file OMPIRBuilder.h.
Referenced by append(), and llvm::OpenMPIRBuilder::emitOffloadingArrays().