MLIR  21.0.0git
Namespaces | Functions
Utils.h File Reference
#include "mlir/Dialect/Tensor/IR/Tensor.h"

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::tensor
 

Functions

PadOp mlir::tensor::createPadHighOp (RankedTensorType resType, Value source, Value pad, bool nofold, Location loc, OpBuilder &builder, SmallVector< Value > dynOutDims={})
 
SmallVector< Valuemlir::tensor::createDynamicDimValues (OpBuilder &b, Location loc, Value rankedTensor)
 
FailureOr< RankedTensorType > mlir::tensor::computeTransposedType (RankedTensorType rankedTensorType, ArrayRef< int64_t > transposeVector)
 Returns the transposed rankedTensorType if transposeVector is non-empty. More...
 
bool mlir::tensor::isCastLikeInsertSliceOp (InsertSliceOp op)
 A tensor.insert_slice is a cast-like operation if it merely rank-extends the source tensor or inserts the source tensor into a destination tensor with the same shape. More...
 
bool mlir::tensor::isCastLikeExtractSliceOp (ExtractSliceOp op)
 A tensor.extract_slice is a cast-like operation if it merely rank-reduces unit dimensions of the source tensor or extracts the entire source tensor. More...