LLVM 22.0.0git
llvm::OpenMPIRBuilder::TargetDataInfo Class Reference

Struct that keeps the information that should be kept throughout a 'target data' region. More...

#include "llvm/Frontend/OpenMP/OMPIRBuilder.h"

Public Member Functions

 TargetDataInfo ()=default
 TargetDataInfo (bool RequiresDevicePointerInfo, bool SeparateBeginEndCalls)
void clearArrayInfo ()
 Clear information about the data arrays.
bool isValid ()
 Return true if the current target data information has valid arrays.
bool requiresDevicePointerInfo ()
bool separateBeginEndCalls ()

Public Attributes

TargetDataRTArgs RTArgs
SmallMapVector< const Value *, std::pair< Value *, Value * >, 4 > DevicePtrInfoMap
bool HasMapper = false
 Indicate whether any user-defined mapper exists.
unsigned NumberOfPtrs = 0u
 The total number of pointers passed to the runtime library.
bool EmitDebug = false
bool HasNoWait = false
 Whether the target ... data directive has a nowait clause.

Detailed Description

Struct that keeps the information that should be kept throughout a 'target data' region.

Definition at line 2664 of file OMPIRBuilder.h.

Constructor & Destructor Documentation

◆ TargetDataInfo() [1/2]

llvm::OpenMPIRBuilder::TargetDataInfo::TargetDataInfo ( )
explicitdefault

◆ TargetDataInfo() [2/2]

llvm::OpenMPIRBuilder::TargetDataInfo::TargetDataInfo ( bool RequiresDevicePointerInfo,
bool SeparateBeginEndCalls )
inlineexplicit

Definition at line 2688 of file OMPIRBuilder.h.

Member Function Documentation

◆ clearArrayInfo()

void llvm::OpenMPIRBuilder::TargetDataInfo::clearArrayInfo ( )
inline

Clear information about the data arrays.

Definition at line 2693 of file OMPIRBuilder.h.

References HasMapper, NumberOfPtrs, and RTArgs.

◆ isValid()

bool llvm::OpenMPIRBuilder::TargetDataInfo::isValid ( )
inline

Return true if the current target data information has valid arrays.

Definition at line 2699 of file OMPIRBuilder.h.

References HasMapper, NumberOfPtrs, and RTArgs.

◆ requiresDevicePointerInfo()

bool llvm::OpenMPIRBuilder::TargetDataInfo::requiresDevicePointerInfo ( )
inline

Definition at line 2704 of file OMPIRBuilder.h.

◆ separateBeginEndCalls()

bool llvm::OpenMPIRBuilder::TargetDataInfo::separateBeginEndCalls ( )
inline

Definition at line 2705 of file OMPIRBuilder.h.

Member Data Documentation

◆ DevicePtrInfoMap

SmallMapVector<const Value *, std::pair<Value *, Value *>, 4> llvm::OpenMPIRBuilder::TargetDataInfo::DevicePtrInfoMap

Definition at line 2675 of file OMPIRBuilder.h.

◆ EmitDebug

bool llvm::OpenMPIRBuilder::TargetDataInfo::EmitDebug = false

Definition at line 2682 of file OMPIRBuilder.h.

◆ HasMapper

bool llvm::OpenMPIRBuilder::TargetDataInfo::HasMapper = false

Indicate whether any user-defined mapper exists.

Definition at line 2678 of file OMPIRBuilder.h.

Referenced by clearArrayInfo(), and isValid().

◆ HasNoWait

bool llvm::OpenMPIRBuilder::TargetDataInfo::HasNoWait = false

Whether the target ... data directive has a nowait clause.

Definition at line 2685 of file OMPIRBuilder.h.

◆ NumberOfPtrs

unsigned llvm::OpenMPIRBuilder::TargetDataInfo::NumberOfPtrs = 0u

The total number of pointers passed to the runtime library.

Definition at line 2680 of file OMPIRBuilder.h.

Referenced by clearArrayInfo(), and isValid().

◆ RTArgs

TargetDataRTArgs llvm::OpenMPIRBuilder::TargetDataInfo::RTArgs

Definition at line 2672 of file OMPIRBuilder.h.

Referenced by clearArrayInfo(), and isValid().


The documentation for this class was generated from the following file: