MLIR
20.0.0git
|
#include "mlir/Conversion/LLVMCommon/MemRefBuilder.h"
#include "MemRefDescriptor.h"
#include "mlir/Conversion/LLVMCommon/TypeConverter.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Dialect/LLVMIR/LLVMTypes.h"
#include "mlir/IR/Builders.h"
#include "llvm/Support/MathExtras.h"
Go to the source code of this file.
Functions | |
static Value | createIndexAttrConstant (OpBuilder &builder, Location loc, Type resultType, int64_t value) |
static std::pair< Value, Type > | castToElemPtrPtr (OpBuilder &builder, Location loc, Value memRefDescPtr, LLVM::LLVMPointerType elemPtrType) |
|
static |
Definition at line 413 of file MemRefBuilder.cpp.
References mlir::get(), and mlir::Builder::getContext().
Referenced by mlir::UnrankedMemRefDescriptor::alignedPtr(), mlir::UnrankedMemRefDescriptor::offsetBasePtr(), and mlir::UnrankedMemRefDescriptor::setAlignedPtr().
|
static |
Definition at line 100 of file MemRefBuilder.cpp.
References mlir::OpBuilder::create(), and mlir::Builder::getIndexAttr().
Referenced by mlir::MemRefDescriptor::bufferPtr(), mlir::UnrankedMemRefDescriptor::computeSizes(), mlir::MemRefDescriptor::setConstantOffset(), mlir::MemRefDescriptor::setConstantSize(), mlir::MemRefDescriptor::setConstantStride(), and mlir::MemRefDescriptor::size().