MLIR 22.0.0git
LinalgToStandard.cpp File Reference

Go to the source code of this file.

Classes

class  mlir::impl::ConvertLinalgToStandardPassBase< DerivedT >

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::impl
 Attribute collections provide a dictionary-like interface.

Macros

#define GEN_PASS_DEF_CONVERTLINALGTOSTANDARDPASS

Functions

std::unique_ptr<::mlir::Passmlir::impl::createConvertLinalgToStandardPass ()
std::unique_ptr<::mlir::Passmlir::createConvertLinalgToStandardPass ()
static MemRefType makeStridedLayoutDynamic (MemRefType type)
static SmallVector< Type, 4 > extractOperandTypes (Operation *op)
 Helper function to extract the operand types that are passed to the generated CallOp.
static FailureOr< FlatSymbolRefAttrgetLibraryCallSymbolRef (Operation *op, PatternRewriter &rewriter)
static SmallVector< Value, 4 > createTypeCanonicalizedMemRefOperands (OpBuilder &b, Location loc, ValueRange operands)

Macro Definition Documentation

◆ GEN_PASS_DEF_CONVERTLINALGTOSTANDARDPASS

#define GEN_PASS_DEF_CONVERTLINALGTOSTANDARDPASS

Definition at line 20 of file LinalgToStandard.cpp.

Function Documentation

◆ createTypeCanonicalizedMemRefOperands()

SmallVector< Value, 4 > createTypeCanonicalizedMemRefOperands ( OpBuilder & b,
Location loc,
ValueRange operands )
static

◆ extractOperandTypes()

SmallVector< Type, 4 > extractOperandTypes ( Operation * op)
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 37 of file LinalgToStandard.cpp.

References mlir::Operation::getNumOperands(), mlir::Operation::getOperandTypes(), makeStridedLayoutDynamic(), and result.

Referenced by getLibraryCallSymbolRef().

◆ getLibraryCallSymbolRef()

◆ makeStridedLayoutDynamic()

MemRefType makeStridedLayoutDynamic ( MemRefType type)
static