MLIR  20.0.0git
Namespaces | Functions
MemoryOps.cpp File Reference
#include "mlir/Dialect/SPIRV/IR/SPIRVEnums.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVOps.h"
#include "SPIRVOpUtils.h"
#include "SPIRVParsingUtils.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVTypes.h"
#include "mlir/IR/Diagnostics.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Casting.h"

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::spirv
 

Functions

template<typename MemoryOpTy >
ParseResult mlir::spirv::parseMemoryAccessAttributes (OpAsmParser &parser, OperationState &state)
 Parses optional memory access (a.k.a. More...
 
template<typename MemoryOpTy >
static ParseResult mlir::spirv::parseSourceMemoryAccessAttributes (OpAsmParser &parser, OperationState &state)
 
template<typename MemoryOpTy >
static void mlir::spirv::printSourceMemoryAccessAttribute (MemoryOpTy memoryOp, OpAsmPrinter &printer, SmallVectorImpl< StringRef > &elidedAttrs, std::optional< spirv::MemoryAccess > memoryAccessAtrrValue=std::nullopt, std::optional< uint32_t > alignmentAttrValue=std::nullopt)
 
template<typename MemoryOpTy >
static void mlir::spirv::printMemoryAccessAttribute (MemoryOpTy memoryOp, OpAsmPrinter &printer, SmallVectorImpl< StringRef > &elidedAttrs, std::optional< spirv::MemoryAccess > memoryAccessAtrrValue=std::nullopt, std::optional< uint32_t > alignmentAttrValue=std::nullopt)
 
template<typename LoadStoreOpTy >
static LogicalResult mlir::spirv::verifyLoadStorePtrAndValTypes (LoadStoreOpTy op, Value ptr, Value val)
 
template<typename MemoryOpTy >
static LogicalResult mlir::spirv::verifyMemoryAccessAttribute (MemoryOpTy memoryOp)
 
template<typename MemoryOpTy >
static LogicalResult mlir::spirv::verifySourceMemoryAccessAttribute (MemoryOpTy memoryOp)
 
static Type mlir::spirv::getElementPtrType (Type type, ValueRange indices, Location baseLoc)
 
template<typename Op >
static void mlir::spirv::printAccessChain (Op op, ValueRange indices, OpAsmPrinter &printer)
 
template<typename Op >
static LogicalResult mlir::spirv::verifyAccessChain (Op accessChainOp, ValueRange indices)
 
static ParseResult mlir::spirv::parsePtrAccessChainOpImpl (StringRef opName, OpAsmParser &parser, OperationState &state)
 
template<typename Op >
static auto mlir::spirv::concatElemAndIndices (Op op)