|
MLIR 22.0.0git
|
#include "mlir/Dialect/Linalg/Transforms/Transforms.h"#include "mlir/Dialect/Affine/IR/AffineOps.h"#include "mlir/Dialect/Linalg/IR/Linalg.h"#include <optional>Go to the source code of this file.
Functions | |
| static SmallVector< OpFoldResult > | getGenericOpLoopRange (OpBuilder &b, GenericOp op) |
| Helper method to compute the range of a generic op. | |
| SmallVector< OpFoldResult > | permuteValues (ArrayRef< OpFoldResult > values, AffineMap map) |
| Helper method to permute the list of values based on the map. | |
| static Value | getZero (OpBuilder &b, Location loc, Type elementType) |
| Get zero value for an element type. | |
|
static |
Helper method to compute the range of a generic op.
Definition at line 105 of file DecomposeLinalgOps.cpp.
References b, and mlir::affine::makeComposedFoldedMultiResultAffineApply().
Get zero value for an element type.
Definition at line 132 of file DecomposeLinalgOps.cpp.
References b, mlir::arith::ConstantFloatOp::create(), mlir::arith::ConstantIndexOp::create(), mlir::arith::ConstantIntOp::create(), mlir::Type::isIndex(), and mlir::Type::isIntOrIndexOrFloat().
| SmallVector< OpFoldResult > permuteValues | ( | ArrayRef< OpFoldResult > | values, |
| AffineMap | map ) |
Helper method to permute the list of values based on the map.
Definition at line 119 of file DecomposeLinalgOps.cpp.
References mlir::AffineMap::getResults(), and mlir::AffineMap::isPermutation().