MLIR 22.0.0git
LowerVectorTransfer.cpp File Reference

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.
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.
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.

Function Documentation

◆ extendMaskRank()

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 52 of file LowerVectorTransfer.cpp.

References extendVectorRank(), and mlir::Value::getType().

◆ extendVectorRank()

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 35 of file LowerVectorTransfer.cpp.

References mlir::Value::getType().

Referenced by extendMaskRank().

◆ inverseTransposeInBoundsAttr()

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 23 of file LowerVectorTransfer.cpp.

References ArrayAttr(), and mlir::Builder::getBoolArrayAttr().