MLIR 24.0.0git
PrivateVarsInfo Struct Reference

A util to collect info needed to convert delayed privatizers from MLIR to LLVM. More...

Classes

struct  AllocatorPrivateInfo

Public Member Functions

template<typename OP>
 PrivateVarsInfo (OP op)
template<typename OP>
void addLinearVars (OP op)
 Adds the linear variables of op, which are privatized by their linear privatizers, after the private variables.

Public Attributes

size_t numPrivateVars = 0
 Number of private variables before the linear ones.
SmallVector< BlockArgument > blockArgs
SmallVector< mlir::Value > mlirVars
SmallVector< llvm::Value * > llvmVars
SmallVector< omp::PrivateClauseOp > privatizers
llvm::DenseMap< Value, llvm::Value * > convertedAllocators
SmallVector< AllocatorPrivateInfo > allocatorPrivates

Detailed Description

A util to collect info needed to convert delayed privatizers from MLIR to LLVM.

Definition at line 1064 of file OpenMPToLLVMIRTranslation.cpp.

Constructor & Destructor Documentation

◆ PrivateVarsInfo()

template<typename OP>
PrivateVarsInfo::PrivateVarsInfo ( OP op)
inline

Definition at line 1071 of file OpenMPToLLVMIRTranslation.cpp.

References blockArgs, for(), llvmVars, and mlirVars.

Member Function Documentation

◆ addLinearVars()

template<typename OP>
void PrivateVarsInfo::addLinearVars ( OP op)
inline

Adds the linear variables of op, which are privatized by their linear privatizers, after the private variables.

Definition at line 1085 of file OpenMPToLLVMIRTranslation.cpp.

References blockArgs, findPrivatizer(), mlirVars, numPrivateVars, and privatizers.

Referenced by convertOmpSimd(), and convertOmpWsloop().

Member Data Documentation

◆ allocatorPrivates

SmallVector<AllocatorPrivateInfo> PrivateVarsInfo::allocatorPrivates

Definition at line 1103 of file OpenMPToLLVMIRTranslation.cpp.

Referenced by allocatePrivateVars(), and cleanupPrivateVars().

◆ blockArgs

◆ convertedAllocators

llvm::DenseMap<Value, llvm::Value *> PrivateVarsInfo::convertedAllocators

Definition at line 1102 of file OpenMPToLLVMIRTranslation.cpp.

Referenced by allocatePrivateVars(), and convertAllocatorVars().

◆ llvmVars

◆ mlirVars

◆ numPrivateVars

size_t PrivateVarsInfo::numPrivateVars = 0

Number of private variables before the linear ones.

Definition at line 1097 of file OpenMPToLLVMIRTranslation.cpp.

Referenced by addLinearVars(), convertOmpSimd(), and convertOmpWsloop().

◆ privatizers


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