class CGOpenMPRuntime::TargetDataInfo
Declaration
class CGOpenMPRuntime::TargetDataInfo { /* full declaration omitted */ };
Description
Struct that keeps all the relevant information that should be kept throughout a 'target data' region.
Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:1657
Member Variables
- private bool RequiresDevicePointerInfo = false
- Set to true if device pointer information have to be obtained.
- private bool SeparateBeginEndCalls = false
- Set to true if Clang emits separate runtime calls for the beginning and end of the region. These calls might have separate map type arrays.
- public llvm::Value* BasePointersArray = nullptr
- The array of base pointer passed to the runtime library.
- public llvm::Value* PointersArray = nullptr
- The array of section pointers passed to the runtime library.
- public llvm::Value* SizesArray = nullptr
- The array of sizes passed to the runtime library.
- public llvm::Value* MapTypesArray = nullptr
- The array of map types passed to the runtime library for the beginning of the region or for the entire region if there are no separate map types for the region end.
- public llvm::Value* MapTypesArrayEnd = nullptr
- The array of map types passed to the runtime library for the end of the region, or nullptr if there are no separate map types for the region end.
- public llvm::Value* MappersArray = nullptr
- The array of user-defined mappers passed to the runtime library.
- public llvm::Value* MapNamesArray = nullptr
- The array of original declaration names of mapped pointers sent to the runtime library for debugging
- public bool HasMapper = false
- Indicate whether any user-defined mapper exists.
- public unsigned int NumberOfPtrs = 0U
- The total number of pointers passed to the runtime library.
- public llvm::DenseMap<const ValueDecl*, Address> CaptureDeviceAddrMap
- Map between the a declaration of a capture and the corresponding base pointer address where the runtime returns the device pointers.
Method Overview
- public TargetDataInfo()
- public TargetDataInfo(bool RequiresDevicePointerInfo, bool SeparateBeginEndCalls)
- public void clearArrayInfo()
- public bool isValid()
- public bool requiresDevicePointerInfo()
- public bool separateBeginEndCalls()
Methods
¶TargetDataInfo()
TargetDataInfo()
Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:1692
¶TargetDataInfo(bool RequiresDevicePointerInfo,
bool SeparateBeginEndCalls)
TargetDataInfo(bool RequiresDevicePointerInfo,
bool SeparateBeginEndCalls)
Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:1693
Parameters
- bool RequiresDevicePointerInfo
- bool SeparateBeginEndCalls
¶void clearArrayInfo()
void clearArrayInfo()
Description
Clear information about the data arrays.
Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:1698
¶bool isValid()
bool isValid()
Description
Return true if the current target data information has valid arrays.
Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:1710
¶bool requiresDevicePointerInfo()
bool requiresDevicePointerInfo()
Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:1714
¶bool separateBeginEndCalls()
bool separateBeginEndCalls()
Declared at: clang/lib/CodeGen/CGOpenMPRuntime.h:1715