MLIR  16.0.0git
Namespaces | Functions
ViewLikeInterface.h File Reference
#include "mlir/Dialect/Utils/StaticValueUtils.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/OpImplementation.h"
#include "mlir/Interfaces/ViewLikeInterface.h.inc"
+ Include dependency graph for ViewLikeInterface.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::detail
 

Functions

SmallVector< OpFoldResult, 4 > mlir::getMixedValues (ArrayAttr staticValues, ValueRange dynamicValues, int64_t dynamicValueIndicator)
 Return a vector of OpFoldResults given the special value that indicates whether of the value is dynamic or not. More...
 
SmallVector< OpFoldResult, 4 > mlir::getMixedStridesOrOffsets (ArrayAttr staticValues, ValueRange dynamicValues)
 Return a vector of all the static and dynamic offsets/strides. More...
 
SmallVector< OpFoldResult, 4 > mlir::getMixedSizes (ArrayAttr staticValues, ValueRange dynamicValues)
 Return a vector of all the static and dynamic sizes. More...
 
std::pair< ArrayAttr, SmallVector< Value > > mlir::decomposeMixedValues (Builder &b, const SmallVectorImpl< OpFoldResult > &mixedValues, const int64_t dynamicValueIndicator)
 Decompose a vector of mixed static or dynamic values into the corresponding pair of arrays. More...
 
std::pair< ArrayAttr, SmallVector< Value > > mlir::decomposeMixedStridesOrOffsets (OpBuilder &b, const SmallVectorImpl< OpFoldResult > &mixedValues)
 Decompose a vector of mixed static and dynamic strides/offsets into the corresponding pair of arrays. More...
 
std::pair< ArrayAttr, SmallVector< Value > > mlir::decomposeMixedSizes (OpBuilder &b, const SmallVectorImpl< OpFoldResult > &mixedValues)
 Decompose a vector of mixed static or dynamic strides/offsets into the corresponding pair of arrays. More...
 
LogicalResult mlir::detail::verifyOffsetSizeAndStrideOp (OffsetSizeAndStrideOpInterface op)
 
bool mlir::detail::sameOffsetsSizesAndStrides (OffsetSizeAndStrideOpInterface a, OffsetSizeAndStrideOpInterface b, llvm::function_ref< bool(OpFoldResult, OpFoldResult)> cmp)
 
void mlir::printDynamicIndexList (OpAsmPrinter &printer, Operation *op, OperandRange values, ArrayAttr integers, int64_t dynVal)
 Printer hook for custom directive in assemblyFormat. More...
 
ParseResult mlir::parseDynamicIndexList (OpAsmParser &parser, SmallVectorImpl< OpAsmParser::UnresolvedOperand > &values, ArrayAttr &integers, int64_t dynVal)
 Pasrer hook for custom directive in assemblyFormat. More...
 
LogicalResult mlir::verifyListOfOperandsOrIntegers (Operation *op, StringRef name, unsigned expectedNumElements, ArrayAttr attr, ValueRange values, function_ref< bool(int64_t)> isDynamic)
 Verify that a the values has as many elements as the number of entries in attr for which isDynamic evaluates to true. More...