MLIR  16.0.0git
Classes | Functions
VectorInsertExtractStridedSliceRewritePatterns.cpp File Reference
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/Dialect/MemRef/IR/MemRef.h"
#include "mlir/Dialect/Utils/IndexingUtils.h"
#include "mlir/Dialect/Vector/IR/VectorOps.h"
#include "mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h"
#include "mlir/Dialect/Vector/Utils/VectorUtils.h"
#include "mlir/IR/BuiltinTypes.h"
+ Include dependency graph for VectorInsertExtractStridedSliceRewritePatterns.cpp:

Go to the source code of this file.

Classes

class  DecomposeDifferentRankInsertStridedSlice
 RewritePattern for InsertStridedSliceOp where source and destination vectors have different ranks. More...
 
class  ConvertSameRankInsertStridedSliceIntoShuffle
 RewritePattern for InsertStridedSliceOp where source and destination vectors have the same rank. More...
 
class  Convert1DExtractStridedSliceIntoShuffle
 RewritePattern for ExtractStridedSliceOp where source and destination vectors are 1-D. More...
 
class  DecomposeNDExtractStridedSlice
 RewritePattern for ExtractStridedSliceOp where the source vector is n-D. More...
 

Functions

static Value insertOne (PatternRewriter &rewriter, Location loc, Value from, Value into, int64_t offset)
 
static Value extractOne (PatternRewriter &rewriter, Location loc, Value vector, int64_t offset)
 

Function Documentation

◆ extractOne()

static Value extractOne ( PatternRewriter rewriter,
Location  loc,
Value  vector,
int64_t  offset 
)
static

◆ insertOne()

static Value insertOne ( PatternRewriter rewriter,
Location  loc,
Value  from,
Value  into,
int64_t  offset 
)
static