9 #ifndef MLIR_DIALECT_LINALG_IR_LINALG_H 10 #define MLIR_DIALECT_LINALG_IR_LINALG_H 61 MLIRContext *context);
66 MLIRContext *context);
69 SmallVector<AffineExpr, 4>
concat(ArrayRef<AffineExpr> a,
70 ArrayRef<AffineExpr> b);
75 SmallVectorImpl<unsigned> &res);
87 #include "mlir/Dialect/Linalg/IR/LinalgOpsDialect.h.inc" 93 #include "mlir/Dialect/Linalg/IR/LinalgOpsEnums.h.inc" 99 #define GET_ATTRDEF_CLASSES 100 #include "mlir/Dialect/Linalg/IR/LinalgOpsAttrDefs.h.inc" 112 #define GET_OP_CLASSES 113 #include "mlir/Dialect/Linalg/IR/LinalgOps.h.inc" 115 #define GET_OP_CLASSES 116 #include "mlir/Dialect/Linalg/IR/LinalgStructuredOps.h.inc" 118 #endif // MLIR_DIALECT_LINALG_IR_LINALG_H
Include the generated interface declarations.
Operation is a basic unit of execution within MLIR.
AffineMap extractOrIdentityMap(Optional< AffineMap > maybeMap, unsigned rank, MLIRContext *context)
Returns maybeMap.get() if maybeMap is set, otherwise returns the symbol-less identity map of rank...
This class represents an efficient way to signal success or failure.
std::string generateLibraryCallName(Operation *op)
Returns the name mangled library call name to disambiguate between different overloads at the C level...
void getDimsOfType(Operation *op, StringRef iteratorTypeName, SmallVectorImpl< unsigned > &res)
Return the dims that are iteratorTypeName loops in the LinalgOp op.
LogicalResult verifyStructuredOpInterface(Operation *op)
Verify that op conforms to the invariants of StructuredOpInterface.
SmallVector< AffineExpr, 4 > makeAffineDimExprs(unsigned num, unsigned &startIdx, MLIRContext *context)
Returns num AffineDimExpr dimensions at positions [startIdx, startIdx + num) and increments startIdx ...
SmallVector< AffineExpr, 4 > concat(ArrayRef< AffineExpr > a, ArrayRef< AffineExpr > b)
Return the vector that is the concatenation of a and b.