| MLIR
    22.0.0git
    | 
#include "mlir/Dialect/Affine/IR/AffineOps.h"#include "mlir/Dialect/Arith/Utils/Utils.h"#include "mlir/Dialect/Tensor/IR/Tensor.h"#include "mlir/Dialect/Tensor/Transforms/TransformUtils.h"#include "mlir/Dialect/Utils/ReshapeOpsUtils.h"#include "mlir/Dialect/Utils/StaticValueUtils.h"#include "mlir/IR/BuiltinTypes.h"#include "mlir/IR/OpDefinition.h"#include "llvm/ADT/STLExtras.h"Go to the source code of this file.
| Typedefs | |
| using | DimAndIndex = std::tuple< unsigned, Value > | 
| A tuple that represents (dimension number, dimension value).  More... | |
| Functions | |
| static DimAndIndex | invertSliceIndexing (OpBuilder &b, Location loc, ArrayRef< Range > sliceParams, const DimAndIndex &dimAndIndex) | 
| Transform dimAndIndexfrom the output index space of a (non-rank-reducing) slice described bysliceParamsinto the input index space.  More... | |
| static ValueRange | invertCollapseShapeIndexing (OpBuilder &b, Location loc, ArrayRef< ReassociationIndices > reassociation, ArrayRef< OpFoldResult > reshapeSourceShape, const DimAndIndex &dimAndIndex) | 
| Transform dimAndIndexfrom the result tensor index space of a CollapseShapeOp to the source tensor index space.  More... | |
| using DimAndIndex = std::tuple<unsigned, Value> | 
A tuple that represents (dimension number, dimension value).
Definition at line 28 of file ExtractSliceFromReshapeUtils.cpp.
| 
 | static | 
Transform dimAndIndex from the result tensor index space of a CollapseShapeOp to the source tensor index space. 
Definition at line 48 of file ExtractSliceFromReshapeUtils.cpp.
Referenced by mlir::tensor::ExtractSliceFromCollapseHelper::emitLoopNestBody().
| 
 | static | 
Transform dimAndIndex from the output index space of a (non-rank-reducing) slice described by sliceParams into the input index space. 
Definition at line 32 of file ExtractSliceFromReshapeUtils.cpp.
References mlir::bindDims(), mlir::bindSymbols(), mlir::Builder::getContext(), and mlir::affine::makeComposedAffineApply().
Referenced by mlir::tensor::ExtractSliceFromCollapseHelper::emitLoopNestBody().