MLIR 24.0.0git
ACCDataRuntime.cpp File Reference
#include "mlir/Conversion/OpenACCToLLVM/ACCDataRuntime.h"
#include "mlir/Conversion/OpenACCToLLVM/ACCToLLVMUtils.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Dialect/OpenACC/Analysis/OpenACCSupport.h"
#include "mlir/Dialect/OpenACC/OpenACC.h"
#include "mlir/Dialect/OpenACC/OpenACCUtils.h"
#include "mlir/Dialect/OpenACC/OpenACCUtilsCG.h"
#include "mlir/Dialect/OpenACC/OpenACCUtilsType.h"
#include "mlir/Transforms/DialectConversion.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVectorExtras.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "acc-data-runtime"

Functions

static Value getPointer (Location loc, Value value, ConversionPatternRewriter &rewriter)
static Value getIndirectPointer (Location loc, Value value, ConversionPatternRewriter &rewriter)
 Returns the address of a slot holding value, so that the runtime reads the value from memory rather than receiving it directly.
static std::optional< MapFlags > computePackedMapFlags (Operation *mapOp)
static Value getElementSize (Operation *mapOp, OpenACCSupport &accSupport, ConversionPatternRewriter &rewriter)
static Value getBoundValue (Value value, Location loc, ConversionPatternRewriter &rewriter)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "acc-data-runtime"

Definition at line 30 of file ACCDataRuntime.cpp.

Function Documentation

◆ computePackedMapFlags()

std::optional< MapFlags > computePackedMapFlags ( Operation * mapOp)
static

◆ getBoundValue()

Value getBoundValue ( Value value,
Location loc,
ConversionPatternRewriter & rewriter )
static

◆ getElementSize()

◆ getIndirectPointer()

Value getIndirectPointer ( Location loc,
Value value,
ConversionPatternRewriter & rewriter )
static

Returns the address of a slot holding value, so that the runtime reads the value from memory rather than receiving it directly.

Definition at line 55 of file ACCDataRuntime.cpp.

References mlir::Value::getType().

◆ getPointer()

Value getPointer ( Location loc,
Value value,
ConversionPatternRewriter & rewriter )
static