MLIR  19.0.0git
Functions
LowerVectorTransfer.cpp File Reference
#include "mlir/Dialect/Affine/IR/AffineOps.h"
#include "mlir/Dialect/MemRef/IR/MemRef.h"
#include "mlir/Dialect/Tensor/IR/Tensor.h"
#include "mlir/Dialect/Vector/Transforms/LoweringPatterns.h"
#include "mlir/Interfaces/VectorInterfaces.h"

Go to the source code of this file.

Functions

static ArrayAttr inverseTransposeInBoundsAttr (OpBuilder &builder, ArrayAttr attr, const SmallVector< unsigned > &permutation)
 Transpose a vector transfer op's in_bounds attribute by applying reverse permutation based on the given indices. More...
 
static Value extendVectorRank (OpBuilder &builder, Location loc, Value vec, int64_t addedRank)
 Extend the rank of a vector Value by addedRanks by adding outer unit dimensions. More...
 
static Value extendMaskRank (OpBuilder &builder, Location loc, Value vec, int64_t addedRank)
 Extend the rank of a vector Value by addedRanks by adding inner unit dimensions. More...
 

Function Documentation

◆ extendMaskRank()

static Value extendMaskRank ( OpBuilder builder,
Location  loc,
Value  vec,
int64_t  addedRank 
)
static

Extend the rank of a vector Value by addedRanks by adding inner unit dimensions.

Definition at line 51 of file LowerVectorTransfer.cpp.

References mlir::Type::cast(), mlir::OpBuilder::create(), extendVectorRank(), and mlir::Value::getType().

◆ extendVectorRank()

static Value extendVectorRank ( OpBuilder builder,
Location  loc,
Value  vec,
int64_t  addedRank 
)
static

Extend the rank of a vector Value by addedRanks by adding outer unit dimensions.

Definition at line 38 of file LowerVectorTransfer.cpp.

References mlir::OpBuilder::create(), mlir::get(), and mlir::Value::getType().

Referenced by extendMaskRank().

◆ inverseTransposeInBoundsAttr()

static ArrayAttr inverseTransposeInBoundsAttr ( OpBuilder builder,
ArrayAttr  attr,
const SmallVector< unsigned > &  permutation 
)
static

Transpose a vector transfer op's in_bounds attribute by applying reverse permutation based on the given indices.

Definition at line 26 of file LowerVectorTransfer.cpp.

References mlir::Builder::getBoolArrayAttr().