|
MLIR 23.0.0git
|
#include "mlir/Dialect/Linalg/Passes.h"#include "mlir/Dialect/Linalg/IR/Linalg.h"#include "mlir/Dialect/Linalg/Transforms/Transforms.h"#include "mlir/Dialect/Linalg/Utils/Utils.h"#include "mlir/Transforms/DialectConversion.h"#include "llvm/ADT/SmallVectorExtras.h"#include "mlir/Dialect/Linalg/Passes.h.inc"Go to the source code of this file.
Classes | |
| class | mlir::impl::ConvertElementwiseToLinalgPassBase< DerivedT > |
Namespaces | |
| namespace | mlir |
| Include the generated interface declarations. | |
| namespace | mlir::impl |
| Attribute collections provide a dictionary-like interface. | |
Macros | |
| #define | GEN_PASS_DEF_CONVERTELEMENTWISETOLINALGPASS |
Functions | |
| std::unique_ptr<::mlir::Pass > | mlir::impl::createConvertElementwiseToLinalgPass () |
| std::unique_ptr<::mlir::Pass > | mlir::createConvertElementwiseToLinalgPass () |
| static bool | isScalarLike (Type t) |
| static bool | isElementwiseMappableOpOnRankedTensors (Operation *op) |
| static SmallVector< Value, 4 > | getOrCreateOperandsMatchingResultTypes (OpBuilder &b, Operation *op) |
| Given op assumed isElementwiseMappableOpOnRankedTensors, iterate over the result types and return a list of values such that, for each result type t and value v at the same index idx: | |
| #define GEN_PASS_DEF_CONVERTELEMENTWISETOLINALGPASS |
Definition at line 18 of file ElementwiseToLinalg.cpp.
|
static |
Given op assumed isElementwiseMappableOpOnRankedTensors, iterate over the result types and return a list of values such that, for each result type t and value v at the same index idx:
This is sufficient because ElementwiseMappable guarantees that "The static types of all vector (resp. tensor) operands and results must have the same shape".
Definition at line 60 of file ElementwiseToLinalg.cpp.
Referenced by mlir::createConvertElementwiseToLinalgPass().
Definition at line 28 of file ElementwiseToLinalg.cpp.
References mlir::Operation::getOperandTypes(), and mlir::OpTrait::hasElementwiseMappableTraits().
Referenced by mlir::createConvertElementwiseToLinalgPass(), and mlir::impl::ConvertElementwiseToLinalgPassBase< DerivedT >::getName().
Definition at line 24 of file ElementwiseToLinalg.cpp.
Referenced by mlir::createConvertElementwiseToLinalgPass().