MLIR  16.0.0git
Namespaces | Functions
VectorUtils.h File Reference
#include "mlir/Dialect/Vector/IR/VectorOps.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/DenseMap.h"
+ Include dependency graph for VectorUtils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::vector
 

Functions

Value mlir::vector::createOrFoldDimOp (OpBuilder &b, Location loc, Value source, int64_t dim)
 Helper function that creates a memref::DimOp or tensor::DimOp depending on the type of source. More...
 
int64_t mlir::computeMaxLinearIndex (ArrayRef< int64_t > basis)
 Return the number of elements of basis, 0 if empty. More...
 
SmallVector< int64_t, 4 > mlir::computeStrides (ArrayRef< int64_t > shape, ArrayRef< int64_t > sizes)
 Given the shape and sizes of a vector, returns the corresponding strides for each dimension. More...
 
SmallVector< int64_t, 4 > mlir::computeElementOffsetsFromVectorSliceOffsets (ArrayRef< int64_t > sizes, ArrayRef< int64_t > vectorOffsets)
 Given the target sizes of a vector, together with vector-space offsets, returns the element-space offsets for each dimension. More...
 
Optional< SmallVector< int64_t, 4 > > mlir::shapeRatio (ArrayRef< int64_t > superShape, ArrayRef< int64_t > subShape)
 Computes and returns the multi-dimensional ratio of superShape to subShape. More...
 
Optional< SmallVector< int64_t, 4 > > mlir::shapeRatio (VectorType superVectorType, VectorType subVectorType)
 Computes and returns the multi-dimensional ratio of the shapes of superVector to subVector. More...