9#ifndef MLIR_DIALECT_TRANSFORMS_UTILS_UTILS_H
10#define MLIR_DIALECT_TRANSFORMS_UTILS_UTILS_H
16#include "llvm/ADT/STLExtras.h"
38 Value packed, Type packedType,
39 OperandRange values,
TypeRange valueTypes,
79 OpAsmParser &parser, std::optional<OpAsmParser::UnresolvedOperand> &packed,
84 OpAsmParser &parser, std::optional<OpAsmParser::UnresolvedOperand> &packed,
89 scalableFlags, valueTypes,
92 if (llvm::is_contained(scalableFlags.
asArrayRef(),
true))
94 <<
"scalable indices are not supported";
98 OpAsmParser &parser, std::optional<OpAsmParser::UnresolvedOperand> &packed,
103 scalableFlags,
nullptr, integers);
106 OpAsmParser &parser, std::optional<OpAsmParser::UnresolvedOperand> &packed,
113 OpAsmParser &parser, std::optional<OpAsmParser::UnresolvedOperand> &packed,
virtual InFlightDiagnostic emitError(SMLoc loc, const Twine &message={})=0
Emit a diagnostic at the specified location and return failure.
virtual SMLoc getNameLoc() const =0
Return the location of the original name token.
The OpAsmParser has methods for interacting with the asm parser: parsing things from it,...
This is a pure-virtual base class that exposes the asmprinter hooks necessary to implement a custom p...
This class implements the operand iterators for the Operation class.
Operation is the basic unit of execution within MLIR.
This class provides an abstraction over the various different ranges of value types.
Instances of the Type class are uniqued, have an immutable identifier and an optional mutable compone...
This class represents an instance of an SSA value in the MLIR system, representing a computable value...
ArrayRef< T > asArrayRef() const
Include the generated interface declarations.
detail::DenseArrayAttrImpl< int64_t > DenseI64ArrayAttr
detail::DenseArrayAttrImpl< bool > DenseBoolArrayAttr