MLIR  16.0.0git
Classes | Namespaces | Functions
Utils.h File Reference
#include "mlir/Dialect/Arithmetic/IR/Arithmetic.h"
#include "mlir/IR/Matchers.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/IR/Value.h"
+ Include dependency graph for Utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  mlir::OpWithOffsetSizesAndStridesConstantArgumentFolder< OpType, ResultTypeFunc, CastOpFunc >
 Pattern to rewrite a subview op with constant arguments. More...
struct  mlir::ArithBuilder
 Helper struct to build simple arithmetic quantities with minimal type inference support. More...


 Include the generated interface declarations.


detail::op_matcher< arith::ConstantIndexOpmlir::matchConstantIndex ()
 Matches a ConstantIndexOp. More...
void mlir::canonicalizeSubViewPart (SmallVectorImpl< OpFoldResult > &values, function_ref< bool(int64_t)> isDynamic)
 Detects the values produced by a ConstantIndexOp and places the new constant in place of the corresponding sentinel value. More...
llvm::SmallBitVector mlir::getPositionsOfShapeOne (unsigned rank, ArrayRef< int64_t > shape)
Value mlir::getValueOrCreateConstantIndexOp (OpBuilder &b, Location loc, OpFoldResult ofr)
 Converts an OpFoldResult to a Value. More...
Value mlir::getValueOrCreateCastToIndexLike (OpBuilder &b, Location loc, Type targetType, Value value)
 Create a cast from an index-like value (index or integer) to another index-like value. More...
SmallVector< Valuemlir::getValueOrCreateConstantIndexOp (OpBuilder &b, Location loc, ArrayRef< OpFoldResult > valueOrAttrVec)
 Similar to the other overload, but converts multiple OpFoldResults into Values. More...