LLVM  15.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::OpenMPIRBuilder::ReductionInfo Struct Reference

Information about an OpenMP reduction. More...

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

Collaboration diagram for llvm::OpenMPIRBuilder::ReductionInfo:
Collaboration graph
[legend]

Public Member Functions

 ReductionInfo (Type *ElementType, Value *Variable, Value *PrivateVariable, ReductionGenTy ReductionGen, AtomicReductionGenTy AtomicReductionGen)
 

Public Attributes

TypeElementType
 Reduction element type, must match pointee type of variable. More...
 
ValueVariable
 Reduction variable of pointer type. More...
 
ValuePrivateVariable
 Thread-private partial reduction variable. More...
 
ReductionGenTy ReductionGen
 Callback for generating the reduction body. More...
 
AtomicReductionGenTy AtomicReductionGen
 Callback for generating the atomic reduction body, may be null. More...
 

Detailed Description

Information about an OpenMP reduction.

Definition at line 647 of file OMPIRBuilder.h.

Constructor & Destructor Documentation

◆ ReductionInfo()

llvm::OpenMPIRBuilder::ReductionInfo::ReductionInfo ( Type ElementType,
Value Variable,
Value PrivateVariable,
ReductionGenTy  ReductionGen,
AtomicReductionGenTy  AtomicReductionGen 
)
inline

Definition at line 648 of file OMPIRBuilder.h.

References assert(), ElementType, llvm::Value::getType(), and Variable.

Member Data Documentation

◆ AtomicReductionGen

AtomicReductionGenTy llvm::OpenMPIRBuilder::ReductionInfo::AtomicReductionGen

Callback for generating the atomic reduction body, may be null.

The IR produced by this will be used to atomically combine two values during reduction. If null, the implementation will use the non-atomic version along with the appropriate synchronization mechanisms.

Definition at line 676 of file OMPIRBuilder.h.

Referenced by llvm::OpenMPIRBuilder::createReductions().

◆ ElementType

Type* llvm::OpenMPIRBuilder::ReductionInfo::ElementType

Reduction element type, must match pointee type of variable.

Definition at line 659 of file OMPIRBuilder.h.

Referenced by llvm::OpenMPIRBuilder::createReductions(), and ReductionInfo().

◆ PrivateVariable

Value* llvm::OpenMPIRBuilder::ReductionInfo::PrivateVariable

Thread-private partial reduction variable.

Definition at line 665 of file OMPIRBuilder.h.

Referenced by llvm::OpenMPIRBuilder::createReductions().

◆ ReductionGen

ReductionGenTy llvm::OpenMPIRBuilder::ReductionInfo::ReductionGen

Callback for generating the reduction body.

The IR produced by this will be used to combine two values in a thread-safe context, e.g., under lock or within the same thread, and therefore need not be atomic.

Definition at line 670 of file OMPIRBuilder.h.

Referenced by llvm::OpenMPIRBuilder::createReductions().

◆ Variable

Value* llvm::OpenMPIRBuilder::ReductionInfo::Variable

Reduction variable of pointer type.

Definition at line 662 of file OMPIRBuilder.h.

Referenced by llvm::OpenMPIRBuilder::createReductions(), and ReductionInfo().


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