13 #ifndef MLIR_INTERFACES_VIEWLIKEINTERFACE_H_
14 #define MLIR_INTERFACES_VIEWLIKEINTERFACE_H_
24 class OffsetSizeAndStrideOpInterface;
31 OffsetSizeAndStrideOpInterface a, OffsetSizeAndStrideOpInterface b,
38 #include "mlir/Interfaces/ViewLikeInterface.h.inc"
59 OpAsmPrinter &printer, Operation *op, OperandRange values,
60 ArrayRef<int64_t> integers, TypeRange valueTypes = TypeRange(),
62 bool isTrailingIdxScalable =
false);
90 SmallVectorImpl<OpAsmParser::UnresolvedOperand> &values,
92 SmallVectorImpl<Type> *valueTypes =
nullptr,
100 nullptr, &valueTypes,
107 unsigned expectedNumElements,
108 ArrayRef<int64_t> attr,
Delimiter
These are the supported delimiters around operand lists and region argument lists,...
@ Square
Square brackets surrounding zero or more operands.
The OpAsmParser has methods for interacting with the asm parser: parsing things from it,...
This class represents success/failure for parsing-like operations that find it important to chain tog...
Base class for DenseArrayAttr that is instantiated and specialized for each supported element type be...
bool sameOffsetsSizesAndStrides(OffsetSizeAndStrideOpInterface a, OffsetSizeAndStrideOpInterface b, llvm::function_ref< bool(OpFoldResult, OpFoldResult)> cmp)
LogicalResult verifyOffsetSizeAndStrideOp(OffsetSizeAndStrideOpInterface op)
This header declares functions that assit transformations in the MemRef dialect.
ParseResult parseDynamicIndexList(OpAsmParser &parser, SmallVectorImpl< OpAsmParser::UnresolvedOperand > &values, DenseI64ArrayAttr &integers, bool *isTrailingIdxScalable=nullptr, SmallVectorImpl< Type > *valueTypes=nullptr, AsmParser::Delimiter delimiter=AsmParser::Delimiter::Square)
Parser hook for custom directive in assemblyFormat.
detail::DenseArrayAttrImpl< int64_t > DenseI64ArrayAttr
void printDynamicIndexList(OpAsmPrinter &printer, Operation *op, OperandRange values, ArrayRef< int64_t > integers, TypeRange valueTypes=TypeRange(), AsmParser::Delimiter delimiter=AsmParser::Delimiter::Square, bool isTrailingIdxScalable=false)
Printer hook for custom directive in assemblyFormat.
LogicalResult verifyListOfOperandsOrIntegers(Operation *op, StringRef name, unsigned expectedNumElements, ArrayRef< int64_t > attr, ValueRange values)
Verify that a the values has as many elements as the number of entries in attr for which isDynamic ev...