MLIR
15.0.0git
|
#include "mlir/Conversion/LinalgToStandard/LinalgToStandard.h"
#include "../PassDetail.h"
#include "mlir/Dialect/Affine/IR/AffineOps.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Dialect/Linalg/IR/Linalg.h"
#include "mlir/Dialect/Linalg/Transforms/Transforms.h"
#include "mlir/Dialect/MemRef/IR/MemRef.h"
#include "mlir/Dialect/SCF/IR/SCF.h"
Go to the source code of this file.
Functions | |
static SmallVector< Type, 4 > | extractOperandTypes (Operation *op) |
Helper function to extract the operand types that are passed to the generated CallOp. More... | |
static FlatSymbolRefAttr | getLibraryCallSymbolRef (Operation *op, PatternRewriter &rewriter) |
static SmallVector< Value, 4 > | createTypeCanonicalizedMemRefOperands (OpBuilder &b, Location loc, ValueRange operands) |
|
static |
Definition at line 82 of file LinalgToStandard.cpp.
Referenced by mlir::linalg::LinalgOpToLibraryCallRewrite::matchAndRewrite().
|
static |
Helper function to extract the operand types that are passed to the generated CallOp.
MemRefTypes have their layout canonicalized since the information is not used in signature generation. Note that static size information is not modified.
Definition at line 27 of file LinalgToStandard.cpp.
References mlir::eraseStridedLayout(), mlir::Operation::getNumOperands(), and mlir::Operation::getOperandTypes().
Referenced by getLibraryCallSymbolRef().
|
static |
Definition at line 44 of file LinalgToStandard.cpp.
References mlir::OpBuilder::create(), mlir::Operation::emitWarning(), extractOperandTypes(), mlir::FlatSymbolRefAttr::getAttr(), mlir::Builder::getContext(), mlir::Operation::getContext(), mlir::Builder::getFunctionType(), mlir::Operation::getLoc(), mlir::Operation::getNumResults(), mlir::Operation::getParentOfType(), mlir::FlatSymbolRefAttr::getValue(), mlir::Operation::setAttr(), and mlir::OpBuilder::setInsertionPoint().
Referenced by mlir::linalg::LinalgOpToLibraryCallRewrite::matchAndRewrite().