MLIR
15.0.0git
|
This base class exposes generic asm parser hooks, usable across the various derived parsers. More...
#include "mlir/IR/OpImplementation.h"
Public Types | |
enum | Delimiter { Delimiter::None, Delimiter::Paren, Delimiter::Square, Delimiter::LessGreater, Delimiter::Braces, Delimiter::OptionalParen, Delimiter::OptionalSquare, Delimiter::OptionalLessGreater, Delimiter::OptionalBraces } |
These are the supported delimiters around operand lists and region argument lists, used by parseOperandList. More... | |
template<typename AttrType > | |
using | has_parse_method = decltype(AttrType::parse(std::declval< AsmParser & >(), std::declval< Type >())) |
Trait to check if AttrType provides a parse method. More... | |
template<typename AttrType > | |
using | detect_has_parse_method = llvm::is_detected< has_parse_method, AttrType > |
template<typename TypeT > | |
using | type_has_parse_method = decltype(TypeT::parse(std::declval< AsmParser & >())) |
Trait to check if TypeT provides a parse method. More... | |
template<typename TypeT > | |
using | detect_type_has_parse_method = llvm::is_detected< type_has_parse_method, TypeT > |
Public Member Functions | |
AsmParser ()=default | |
virtual | ~AsmParser () |
MLIRContext * | getContext () const |
virtual SMLoc | getNameLoc () const =0 |
Return the location of the original name token. More... | |
virtual InFlightDiagnostic | emitError (SMLoc loc, const Twine &message={})=0 |
Emit a diagnostic at the specified location and return failure. More... | |
virtual Builder & | getBuilder () const =0 |
Return a builder which provides useful access to MLIRContext, global objects like types and attributes. More... | |
virtual SMLoc | getCurrentLocation ()=0 |
Get the location of the next token and store it into the argument. More... | |
ParseResult | getCurrentLocation (SMLoc *loc) |
virtual Location | getEncodedSourceLoc (SMLoc loc)=0 |
Re-encode the given source location as an MLIR location and return it. More... | |
virtual ParseResult | parseArrow ()=0 |
Parse a '->' token. More... | |
virtual ParseResult | parseOptionalArrow ()=0 |
Parse a '->' token if present. More... | |
virtual ParseResult | parseLBrace ()=0 |
Parse a { token. More... | |
virtual ParseResult | parseOptionalLBrace ()=0 |
Parse a { token if present. More... | |
virtual ParseResult | parseRBrace ()=0 |
Parse a } token. More... | |
virtual ParseResult | parseOptionalRBrace ()=0 |
Parse a } token if present. More... | |
virtual ParseResult | parseColon ()=0 |
Parse a : token. More... | |
virtual ParseResult | parseOptionalColon ()=0 |
Parse a : token if present. More... | |
virtual ParseResult | parseComma ()=0 |
Parse a , token. More... | |
virtual ParseResult | parseOptionalComma ()=0 |
Parse a , token if present. More... | |
virtual ParseResult | parseEqual ()=0 |
Parse a = token. More... | |
virtual ParseResult | parseOptionalEqual ()=0 |
Parse a = token if present. More... | |
virtual ParseResult | parseLess ()=0 |
Parse a '<' token. More... | |
virtual ParseResult | parseOptionalLess ()=0 |
Parse a '<' token if present. More... | |
virtual ParseResult | parseGreater ()=0 |
Parse a '>' token. More... | |
virtual ParseResult | parseOptionalGreater ()=0 |
Parse a '>' token if present. More... | |
virtual ParseResult | parseQuestion ()=0 |
Parse a '?' token. More... | |
virtual ParseResult | parseOptionalQuestion ()=0 |
Parse a '?' token if present. More... | |
virtual ParseResult | parsePlus ()=0 |
Parse a '+' token. More... | |
virtual ParseResult | parseOptionalPlus ()=0 |
Parse a '+' token if present. More... | |
virtual ParseResult | parseStar ()=0 |
Parse a '*' token. More... | |
virtual ParseResult | parseOptionalStar ()=0 |
Parse a '*' token if present. More... | |
virtual ParseResult | parseVerticalBar ()=0 |
Parse a '|' token. More... | |
virtual ParseResult | parseOptionalVerticalBar ()=0 |
Parse a '|' token if present. More... | |
ParseResult | parseString (std::string *string) |
Parse a quoted string token. More... | |
virtual ParseResult | parseOptionalString (std::string *string)=0 |
Parse a quoted string token if present. More... | |
ParseResult | parseKeyword (StringRef keyword, const Twine &msg="") |
Parse a given keyword. More... | |
ParseResult | parseKeyword (StringRef *keyword) |
Parse a keyword into 'keyword'. More... | |
virtual ParseResult | parseOptionalKeyword (StringRef keyword)=0 |
Parse the given keyword if present. More... | |
virtual ParseResult | parseOptionalKeyword (StringRef *keyword)=0 |
Parse a keyword, if present, into 'keyword'. More... | |
virtual ParseResult | parseOptionalKeyword (StringRef *keyword, ArrayRef< StringRef > allowedValues)=0 |
Parse a keyword, if present, and if one of the 'allowedValues', into 'keyword'. More... | |
ParseResult | parseKeywordOrString (std::string *result) |
Parse a keyword or a quoted string. More... | |
virtual ParseResult | parseOptionalKeywordOrString (std::string *result)=0 |
Parse an optional keyword or string. More... | |
virtual ParseResult | parseLParen ()=0 |
Parse a ( token. More... | |
virtual ParseResult | parseOptionalLParen ()=0 |
Parse a ( token if present. More... | |
virtual ParseResult | parseRParen ()=0 |
Parse a ) token. More... | |
virtual ParseResult | parseOptionalRParen ()=0 |
Parse a ) token if present. More... | |
virtual ParseResult | parseLSquare ()=0 |
Parse a [ token. More... | |
virtual ParseResult | parseOptionalLSquare ()=0 |
Parse a [ token if present. More... | |
virtual ParseResult | parseRSquare ()=0 |
Parse a ] token. More... | |
virtual ParseResult | parseOptionalRSquare ()=0 |
Parse a ] token if present. More... | |
virtual ParseResult | parseOptionalEllipsis ()=0 |
Parse a ... token if present;. More... | |
virtual ParseResult | parseFloat (double &result)=0 |
Parse a floating point value from the stream. More... | |
template<typename IntT > | |
ParseResult | parseInteger (IntT &result) |
Parse an integer value from the stream. More... | |
virtual OptionalParseResult | parseOptionalInteger (APInt &result)=0 |
Parse an optional integer value from the stream. More... | |
template<typename IntT > | |
OptionalParseResult | parseOptionalInteger (IntT &result) |
virtual ParseResult | parseCommaSeparatedList (Delimiter delimiter, function_ref< ParseResult()> parseElementFn, StringRef contextMessage=StringRef())=0 |
Parse a list of comma-separated items with an optional delimiter. More... | |
ParseResult | parseCommaSeparatedList (function_ref< ParseResult()> parseElementFn) |
Parse a comma separated list of elements that must have at least one entry in it. More... | |
template<typename T , typename... ParamsT> | |
T | getChecked (SMLoc loc, ParamsT &&...params) |
Invoke the getChecked method of the given Attribute or Type class, using the provided location to emit errors in the case of failure. More... | |
template<typename T , typename... ParamsT> | |
T | getChecked (ParamsT &&...params) |
A variant of getChecked that uses the result of getNameLoc to emit errors. More... | |
virtual ParseResult | parseAttribute (Attribute &result, Type type={})=0 |
Parse an arbitrary attribute of a given type and return it in result. More... | |
virtual ParseResult | parseCustomAttributeWithFallback (Attribute &result, Type type, function_ref< ParseResult(Attribute &result, Type type)> parseAttribute)=0 |
Parse a custom attribute with the provided callback, unless the next token is # , in which case the generic parser is invoked. More... | |
template<typename AttrType > | |
ParseResult | parseAttribute (AttrType &result, Type type={}) |
Parse an attribute of a specific kind and type. More... | |
ParseResult | parseAttribute (Attribute &result, StringRef attrName, NamedAttrList &attrs) |
Parse an arbitrary attribute and return it in result. More... | |
template<typename AttrType > | |
ParseResult | parseAttribute (AttrType &result, StringRef attrName, NamedAttrList &attrs) |
Parse an attribute of a specific kind and type. More... | |
template<typename AttrType > | |
ParseResult | parseAttribute (AttrType &result, Type type, StringRef attrName, NamedAttrList &attrs) |
Parse an arbitrary attribute of a given type and populate it in result . More... | |
template<typename AttrType > | |
std::enable_if_t< detect_has_parse_method< AttrType >::value, ParseResult > | parseCustomAttributeWithFallback (AttrType &result, Type type, StringRef attrName, NamedAttrList &attrs) |
Parse a custom attribute of a given type unless the next token is # , in which case the generic parser is invoked. More... | |
template<typename AttrType > | |
std::enable_if_t<!detect_has_parse_method< AttrType >::value, ParseResult > | parseCustomAttributeWithFallback (AttrType &result, Type type, StringRef attrName, NamedAttrList &attrs) |
SFINAE parsing method for Attribute that don't implement a parse method. More... | |
template<typename AttrType > | |
std::enable_if_t< detect_has_parse_method< AttrType >::value, ParseResult > | parseCustomAttributeWithFallback (AttrType &result) |
Parse a custom attribute of a given type unless the next token is # , in which case the generic parser is invoked. More... | |
template<typename AttrType > | |
std::enable_if_t<!detect_has_parse_method< AttrType >::value, ParseResult > | parseCustomAttributeWithFallback (AttrType &result) |
SFINAE parsing method for Attribute that don't implement a parse method. More... | |
virtual OptionalParseResult | parseOptionalAttribute (Attribute &result, Type type={})=0 |
Parse an arbitrary optional attribute of a given type and return it in result. More... | |
virtual OptionalParseResult | parseOptionalAttribute (ArrayAttr &result, Type type={})=0 |
Parse an optional array attribute and return it in result. More... | |
virtual OptionalParseResult | parseOptionalAttribute (StringAttr &result, Type type={})=0 |
Parse an optional string attribute and return it in result. More... | |
template<typename AttrType > | |
OptionalParseResult | parseOptionalAttribute (AttrType &result, StringRef attrName, NamedAttrList &attrs) |
Parse an optional attribute of a specific type and add it to the list with the specified name. More... | |
template<typename AttrType > | |
OptionalParseResult | parseOptionalAttribute (AttrType &result, Type type, StringRef attrName, NamedAttrList &attrs) |
Parse an optional attribute of a specific type and add it to the list with the specified name. More... | |
virtual ParseResult | parseOptionalAttrDict (NamedAttrList &result)=0 |
Parse a named dictionary into 'result' if it is present. More... | |
virtual ParseResult | parseOptionalAttrDictWithKeyword (NamedAttrList &result)=0 |
Parse a named dictionary into 'result' if the attributes keyword is present. More... | |
virtual ParseResult | parseAffineMap (AffineMap &map)=0 |
Parse an affine map instance into 'map'. More... | |
virtual ParseResult | printIntegerSet (IntegerSet &set)=0 |
Parse an integer set instance into 'set'. More... | |
ParseResult | parseSymbolName (StringAttr &result, StringRef attrName, NamedAttrList &attrs) |
Parse an -identifier and store it (without the '@' symbol) in a string attribute named 'attrName'. More... | |
virtual ParseResult | parseOptionalSymbolName (StringAttr &result, StringRef attrName, NamedAttrList &attrs)=0 |
Parse an optional -identifier and store it (without the '@' symbol) in a string attribute named 'attrName'. More... | |
virtual ParseResult | parseType (Type &result)=0 |
Parse a type. More... | |
virtual ParseResult | parseCustomTypeWithFallback (Type &result, function_ref< ParseResult(Type &result)> parseType)=0 |
Parse a custom type with the provided callback, unless the next token is # , in which case the generic parser is invoked. More... | |
virtual OptionalParseResult | parseOptionalType (Type &result)=0 |
Parse an optional type. More... | |
template<typename TypeT > | |
ParseResult | parseType (TypeT &result) |
Parse a type of a specific type. More... | |
template<typename TypeT > | |
std::enable_if_t< detect_type_has_parse_method< TypeT >::value, ParseResult > | parseCustomTypeWithFallback (TypeT &result) |
Parse a custom Type of a given type unless the next token is # , in which case the generic parser is invoked. More... | |
template<typename TypeT > | |
std::enable_if_t<!detect_type_has_parse_method< TypeT >::value, ParseResult > | parseCustomTypeWithFallback (TypeT &result) |
SFINAE parsing method for Type that don't implement a parse method. More... | |
ParseResult | parseTypeList (SmallVectorImpl< Type > &result) |
Parse a type list. More... | |
virtual ParseResult | parseArrowTypeList (SmallVectorImpl< Type > &result)=0 |
Parse an arrow followed by a type list. More... | |
virtual ParseResult | parseOptionalArrowTypeList (SmallVectorImpl< Type > &result)=0 |
Parse an optional arrow followed by a type list. More... | |
virtual ParseResult | parseColonType (Type &result)=0 |
Parse a colon followed by a type. More... | |
template<typename TypeType > | |
ParseResult | parseColonType (TypeType &result) |
Parse a colon followed by a type of a specific kind, e.g. a FunctionType. More... | |
virtual ParseResult | parseColonTypeList (SmallVectorImpl< Type > &result)=0 |
Parse a colon followed by a type list, which must have at least one type. More... | |
virtual ParseResult | parseOptionalColonTypeList (SmallVectorImpl< Type > &result)=0 |
Parse an optional colon followed by a type list, which if present must have at least one type. More... | |
ParseResult | parseKeywordType (const char *keyword, Type &result) |
Parse a keyword followed by a type. More... | |
ParseResult | addTypeToList (Type type, SmallVectorImpl< Type > &result) |
Add the specified type to the end of the specified type list and return success. More... | |
ParseResult | addTypesToList (ArrayRef< Type > types, SmallVectorImpl< Type > &result) |
Add the specified types to the end of the specified type list and return success. More... | |
virtual ParseResult | parseDimensionList (SmallVectorImpl< int64_t > &dimensions, bool allowDynamic=true, bool withTrailingX=true)=0 |
Parse a dimension list of a tensor or memref type. More... | |
virtual ParseResult | parseXInDimensionList ()=0 |
Parse an 'x' token in a dimension list, handling the case where the x is juxtaposed with an element type, as in "xf32", leaving the "f32" as the next token. More... | |
This base class exposes generic asm parser hooks, usable across the various derived parsers.
Definition at line 362 of file OpImplementation.h.
using mlir::AsmParser::detect_has_parse_method = llvm::is_detected<has_parse_method, AttrType> |
Definition at line 720 of file OpImplementation.h.
using mlir::AsmParser::detect_type_has_parse_method = llvm::is_detected<type_has_parse_method, TypeT> |
Definition at line 898 of file OpImplementation.h.
using mlir::AsmParser::has_parse_method = decltype(AttrType::parse(std::declval<AsmParser &>(), std::declval<Type>())) |
Trait to check if AttrType
provides a parse
method.
Definition at line 718 of file OpImplementation.h.
using mlir::AsmParser::type_has_parse_method = decltype(TypeT::parse(std::declval<AsmParser &>())) |
Trait to check if TypeT
provides a parse
method.
Definition at line 895 of file OpImplementation.h.
|
strong |
These are the supported delimiters around operand lists and region argument lists, used by parseOperandList.
Definition at line 588 of file OpImplementation.h.
|
default |
|
virtualdefault |
Referenced by mlir::OperationName::dump().
|
inline |
Add the specified types to the end of the specified type list and return success.
This is a helper designed to allow parse methods to be simple and chain through || operators.
Definition at line 988 of file OpImplementation.h.
References mlir::success().
Referenced by verifyAtomicCompareExchangeImpl().
|
inline |
Add the specified type to the end of the specified type list and return success.
This is a helper designed to allow parse methods to be simple and chain through || operators.
Definition at line 980 of file OpImplementation.h.
References mlir::success().
Referenced by foldTransferInBoundsAttribute(), parseAffineMinMaxOp(), parseAtomicCompareExchangeImpl(), parseAtomicUpdateOp(), parseGroupNonUniformArithmeticOp(), parseOneResultSameOperandTypeOp(), printNVVMIntrinsicOp(), printTransferAttrs(), mlir::replaceForOpWithNewYields(), and verifyAtomicCompareExchangeImpl().
|
pure virtual |
Emit a diagnostic at the specified location and return failure.
Referenced by acceptBitWidth(), applyTilingToAll(), buildLLVMFunctionType(), mlir::pdl::PDLType::classof(), computeMemRefRankReductionMask(), eachHasOnlyOneOfTypes(), foldTransferInBoundsAttribute(), mlir::DynamicOpDefinition::get(), getElementType(), getInsertExtractValueElementType(), getLoadStoreElementType(), getOption(), mlir::scf::getParallelForInductionVarOwner(), hasOneBranchOpTo(), isZeroAttribute(), CanonicalizeSingleResultAffineMinMaxOp< T >::matchAndRewrite(), mlir::DataLayoutEntryAttr::parse(), mlir::DataLayoutSpecAttr::parse(), mlir::OpState::parse(), mlir::AffineDmaStartOp::parse(), mlir::AffineDmaWaitOp::parse(), parseAllReduceOperation(), parseAndVerify(), parseAndVerifyMatrixType(), parseAndVerifySampledImageType(), parseAndVerifyType(), parseArrayType(), parseAsyncDependencies(), parseAtomicCompareExchangeImpl(), parseAtomicUpdateOp(), mlir::Dialect::parseAttribute(), parseAttributions(), parseBound(), parseCalibratedType(), parseClauseAttr(), parseCooperativeMatrixType(), parseEnumStrAttr(), parseExpressedTypeAndRange(), parseFunctionArgumentList(), mlir::function_interface_impl::parseFunctionOp(), parseGlobalMemrefOpTypeAndInitialValue(), parseInterfaceVarABIAttr(), parseMatrixType(), parseNamedStructuredOpRegion(), parseOneResultSameOperandTypeOp(), parseOptionalArrayStride(), parseOptionalLLVMKeyword(), parsePDLType(), parsePointerType(), parseScheduleClause(), parseStorageRange(), parseStorageType(), parseStructMemberDecorations(), parseStructType(), parseSymbolVisibility(), parseSynchronizationHint(), parseTargetEnvAttr(), mlir::Dialect::parseType(), parseUniformType(), parseVerCapExtAttr(), mlir::DataLayoutSpecAttr::print(), printInitializationList(), printTransferAttrs(), mlir::replaceForOpWithNewYields(), mlir::LLVM::satisfiesLLVMModule(), verifyAtomicCompareExchangeImpl(), verifyConstantType(), verifyDimAndSymbolIdentifiers(), and verifyScheduleModifiers().
|
pure virtual |
Return a builder which provides useful access to MLIRContext, global objects like types and attributes.
Referenced by applyTilingToAll(), buildLLVMFunctionType(), computeMemRefRankReductionMask(), eachHasOnlyOneOfTypes(), foldTransferInBoundsAttribute(), getLoadStoreElementType(), hasOneBranchOpTo(), mlir::scf::insideMutuallyExclusiveBranches(), isComputeOperation(), SelectToExtUI::matchAndRewrite(), CanonicalizeSingleResultAffineMinMaxOp< T >::matchAndRewrite(), mlir::DataLayoutEntryAttr::parse(), mlir::AffineDmaStartOp::parse(), mlir::AffineDmaWaitOp::parse(), parseAffineMinMaxOp(), parseAsyncDependencies(), parseAttributions(), parseBound(), parseCmpOp(), parseCommonStructuredOpParts(), parseControlAttribute(), parseCreateOperationOpAttributes(), parseCreateOperationOpResults(), mlir::parseDimAndSymbolList(), parseEnumKeywordAttr(), parseEnumStrAttr(), mlir::function_interface_impl::parseFunctionOp(), parseGEPIndices(), parseGlobalMemrefOpTypeAndInitialValue(), parseGroupNonUniformArithmeticOp(), parseInterfaceVarABIAttr(), parseMemoryAccessAttributes(), parseOperandsOrIntegersImpl(), parseOperationOpAttributes(), parseOptionalLLVMKeyword(), mlir::impl::parseOptionalVisibilityKeyword(), parseResultsValueType(), parseScheduleClause(), parseSizeAssignment(), parseSourceMemoryAccessAttributes(), parseStorageType(), parseSymbolVisibility(), parseSynchronizationHint(), parseVariableDecorations(), parseVerCapExtAttr(), parseWsLoopControl(), printInitializationList(), printTransferAttrs(), printWsLoopControl(), mlir::replaceForOpWithNewYields(), verifyAllocLikeOp(), verifyAtomicCompareExchangeImpl(), verifyAttributions(), verifyConstantType(), verifyCoopMatrixMulAdd(), verifyDimAndSymbolIdentifiers(), verifyMemoryOpIndexing(), verifyPointerAndCoopMatrixType(), and verifyVectorMemoryOp().
|
inline |
Invoke the getChecked
method of the given Attribute or Type class, using the provided location to emit errors in the case of failure.
Note that unlike OpBuilder::getType
, this method does not implicitly insert a context parameter.
Definition at line 636 of file OpImplementation.h.
References mlir::emitError().
Referenced by acceptBitWidth(), mlir::DynamicAttr::parse(), mlir::DynamicType::parse(), parseAnyType(), parseCalibratedType(), and parseUniformType().
|
inline |
A variant of getChecked
that uses the result of getNameLoc
to emit errors.
Definition at line 643 of file OpImplementation.h.
References mlir::emitError(), and mlir::parseAttribute().
MLIRContext * AsmParser::getContext | ( | ) | const |
Definition at line 66 of file AsmPrinter.cpp.
References mlir::DialectAsmPrinter::~DialectAsmPrinter(), and mlir::OpAsmPrinter::~OpAsmPrinter().
Referenced by acceptBitWidth(), buildLLVMFunctionType(), getOption(), mlir::DataLayoutSpecAttr::parse(), parseAllReduceOperation(), parseClauseAttr(), parseFunctionArgumentList(), parseGlobalMemrefOpTypeAndInitialValue(), parseImageOperands(), parseNamedStructuredOpRegion(), parseOptionalLLVMKeyword(), parseReductionVarList(), parseScheduleClause(), printNVVMIntrinsicOp(), mlir::LLVM::satisfiesLLVMModule(), and verifyCoopMatrixMulAdd().
|
pure virtual |
Get the location of the next token and store it into the argument.
This always succeeds.
Referenced by applyTilingToAll(), mlir::pdl::PDLType::classof(), foldTransferInBoundsAttribute(), mlir::DynamicOpDefinition::get(), getElementPtrType(), getGenericEffectsImpl(), getInsertExtractValueElementType(), getLoadStoreElementType(), mlir::scf::getParallelForInductionVarOwner(), hasOneBranchOpTo(), isZeroAttribute(), mlir::DataLayoutEntryAttr::parse(), parseAllReduceOperation(), parseAndVerify(), parseAndVerifyMatrixType(), parseAndVerifySampledImageType(), parseAndVerifyType(), parseArrayType(), parseAsyncDependencies(), parseAtomicBinOp(), parseAtomicCompareExchangeImpl(), parseAtomicOrdering(), parseAtomicUpdateOp(), parseAttributions(), parseBound(), parseClauseAttr(), parseCommonStructuredOpParts(), parseCooperativeMatrixType(), parseEnumStrAttr(), parseExpressedTypeAndRange(), parseFunctionArgumentList(), mlir::function_interface_impl::parseFunctionOp(), parseInterfaceVarABIAttr(), parseMatrixType(), parseNamedStructuredOpRegion(), parseOneResultSameOperandTypeOp(), parseOperandList(), parseOptionalArrayStride(), parsePointerType(), parsePtrAccessChainOpImpl(), parseScheduleClause(), parseStorageRange(), parseStorageType(), parseStructMemberDecorations(), parseSymbolVisibility(), parseSynchronizationHint(), parseTargetEnvAttr(), parseUniformType(), parseVerCapExtAttr(), printTransferAttrs(), verifyAtomicCompareExchangeImpl(), and verifyConstantType().
|
inline |
Definition at line 387 of file OpImplementation.h.
References mlir::success().
|
pure virtual |
Re-encode the given source location as an MLIR location and return it.
Note: This method should only be used when a Location
is necessary, as the encoding process is not efficient.
|
pure virtual |
Return the location of the original name token.
Referenced by acceptBitWidth(), computeMemRefRankReductionMask(), eachHasOnlyOneOfTypes(), getLoadStoreElementType(), getOption(), hasOneBranchOpTo(), mlir::scf::insideMutuallyExclusiveBranches(), SelectToExtUI::matchAndRewrite(), CanonicalizeSingleResultAffineMinMaxOp< T >::matchAndRewrite(), mlir::DataLayoutSpecAttr::parse(), mlir::OpState::parse(), mlir::AffineDmaStartOp::parse(), mlir::AffineDmaWaitOp::parse(), parseAtomicCompareExchangeImpl(), parseAtomicUpdateOp(), mlir::Dialect::parseAttribute(), parseBound(), parseCalibratedType(), parseGlobalMemrefOpTypeAndInitialValue(), parseOptionalLLVMKeyword(), parsePDLType(), parseScheduleClause(), parseStructType(), parseTargetEnvAttr(), mlir::Dialect::parseType(), mlir::DataLayoutSpecAttr::print(), printInitializationList(), printNVVMIntrinsicOp(), mlir::replaceForOpWithNewYields(), mlir::LLVM::satisfiesLLVMModule(), verifyAtomicCompareExchangeImpl(), verifyDimAndSymbolIdentifiers(), verifyPointerAndCoopMatrixType(), and verifyScheduleModifiers().
|
pure virtual |
Parse an affine map instance into 'map'.
|
pure virtual |
Parse a '->' token.
Referenced by getLoadStoreElementType(), parseAllocateAndAllocator(), parseResultsValueType(), and printCreateOperationOpResults().
|
pure virtual |
Parse an arrow followed by a type list.
Referenced by parseBound(), and printInitializationList().
|
pure virtual |
Parse an arbitrary attribute of a given type and return it in result.
Referenced by acceptBitWidth(), eachHasOnlyOneOfTypes(), foldMemRefCast(), getInsertExtractValueElementType(), getLoadStoreElementType(), hasOneBranchOpTo(), isZeroAttribute(), CanonicalizeSingleResultAffineMinMaxOp< T >::matchAndRewrite(), mlir::DataLayoutEntryAttr::parse(), parseAffineMinMaxOp(), parseBound(), parseCreateOperationOpAttributes(), parseEnumStrAttr(), parseGlobalMemrefOpTypeAndInitialValue(), parseMemoryAccessAttributes(), parseOperationOpAttributes(), parseOptionalLLVMKeyword(), parseSourceMemoryAccessAttributes(), parseTargetEnvAttr(), parseTypedInitialValue(), parseVariableDecorations(), mlir::replaceForOpWithNewYields(), typeOrAttrParser(), verifyAtomicCompareExchangeImpl(), verifyConstantType(), verifyCoopMatrixMulAdd(), and verifyDimAndSymbolIdentifiers().
|
inline |
Parse an attribute of a specific kind and type.
Definition at line 664 of file OpImplementation.h.
References mlir::Attribute::dyn_cast(), mlir::emitError(), mlir::failure(), mlir::parseAttribute(), and mlir::success().
|
inline |
Parse an arbitrary attribute and return it in result.
This also adds the attribute to the specified attribute list with the specified name.
Definition at line 681 of file OpImplementation.h.
References mlir::parseAttribute().
|
inline |
Parse an attribute of a specific kind and type.
Definition at line 688 of file OpImplementation.h.
References mlir::parseAttribute().
|
inline |
Parse an arbitrary attribute of a given type and populate it in result
.
This also adds the attribute to the specified attribute list with the specified name.
Definition at line 697 of file OpImplementation.h.
References mlir::NamedAttrList::append(), mlir::Attribute::dyn_cast(), mlir::emitError(), mlir::failure(), mlir::parseAttribute(), and mlir::success().
|
pure virtual |
Parse a :
token.
Referenced by getInsertExtractValueElementType(), getLoadStoreElementType(), hasOneBranchOpTo(), parseExpressedTypeAndRange(), parseOneResultSameOperandTypeOp(), parseStorageRange(), parseSwitchOpCases(), parseUniformType(), verifyConstantType(), verifyCoopMatrixMulAdd(), and verifyPointerAndCoopMatrixType().
|
pure virtual |
Parse a colon followed by a type.
Referenced by computeMemRefRankReductionMask(), eachHasOnlyOneOfTypes(), getElementPtrType(), getInsertExtractValueElementType(), getLoadStoreElementType(), mlir::scf::getParallelForInductionVarOwner(), isZeroAttribute(), SelectToExtUI::matchAndRewrite(), CanonicalizeSingleResultAffineMinMaxOp< T >::matchAndRewrite(), mlir::AffineDmaWaitOp::parse(), parseAllocateAndAllocator(), parseAtomicCompareExchangeImpl(), parseAtomicUpdateOp(), parseGlobalMemrefOpTypeAndInitialValue(), parseGroupNonUniformArithmeticOp(), parseLinearClause(), parseOneResultSameOperandTypeOp(), parseOperandAndType(), parsePtrAccessChainOpImpl(), parseScheduleClause(), parseTypedInitialValue(), parseWsLoopControl(), printNVVMIntrinsicOp(), printWsLoopControl(), mlir::replaceForOpWithNewYields(), verifyAtomicCompareExchangeImpl(), verifyConstantType(), verifyCoopMatrixMulAdd(), verifyMemoryOpIndexing(), and verifyVectorMemoryOp().
|
inline |
Parse a colon followed by a type of a specific kind, e.g. a FunctionType.
Definition at line 948 of file OpImplementation.h.
References mlir::Type::dyn_cast(), mlir::emitError(), mlir::failure(), and mlir::success().
|
pure virtual |
Parse a colon followed by a type list, which must have at least one type.
Referenced by computeMemRefRankReductionMask(), foldTransferInBoundsAttribute(), getGenericEffectsImpl(), mlir::AffineDmaStartOp::parse(), parseCommonStructuredOpParts(), parseCreateOperationOpResults(), parseSwitchOpCases(), and printTransferAttrs().
|
pure virtual |
Parse a ,
token.
Referenced by computeMemRefRankReductionMask(), foldTransferInBoundsAttribute(), getElementPtrType(), getInsertExtractValueElementType(), getLoadStoreElementType(), isZeroAttribute(), CanonicalizeSingleResultAffineMinMaxOp< T >::matchAndRewrite(), mlir::DataLayoutEntryAttr::parse(), mlir::AffineDmaStartOp::parse(), mlir::AffineDmaWaitOp::parse(), parseAndVerify< unsigned >(), parseCooperativeMatrixType(), parseGlobalMemrefOpTypeAndInitialValue(), parseInterfaceVarABIAttr(), parseMemoryAccessAttributes(), parsePointerType(), parsePtrAccessChainOpImpl(), parseSizeAssignment(), parseSourceMemoryAccessAttributes(), parseStructMemberDecorations(), parseStructType(), parseTargetEnvAttr(), parseUniformType(), parseVariableDecorations(), parseVerCapExtAttr(), printTransferAttrs(), typeOrAttrParser(), verifyAtomicCompareExchangeImpl(), verifyCoopMatrixMulAdd(), verifyMemoryOpIndexing(), verifyPointerAndCoopMatrixType(), and verifyVectorMemoryOp().
|
pure virtual |
Parse a list of comma-separated items with an optional delimiter.
If a delimiter is provided, then an empty list is allowed. If not, then at least one element will be parsed.
contextMessage is an optional message appended to "expected '('" sorts of diagnostics when parsing the delimeters.
Referenced by getOption(), mlir::DataLayoutSpecAttr::parse(), mlir::FieldParser< ContainerT, std::enable_if_t< std::is_member_function_pointer< decltype(&ContainerT::push_back)>::value, ContainerT > >::parse(), parseAllocateAndAllocator(), parseCreateOperationOpAttributes(), parseFunctionArgumentList(), parseFunctionResultList(), parseGEPIndices(), parseKeywordList(), parseLinearClause(), parseOperandList(), parseOperationOpAttributes(), parseReductionVarList(), parseStructMemberDecorations(), parseSynchronizationHint(), mlir::LLVM::satisfiesLLVMModule(), and verifyConstantType().
|
inline |
Parse a comma separated list of elements that must have at least one entry in it.
Definition at line 623 of file OpImplementation.h.
References mlir::detail::pass_options::parseCommaSeparatedList().
|
pure virtual |
Parse a custom attribute with the provided callback, unless the next token is #
, in which case the generic parser is invoked.
Referenced by mlir::FieldParser< AttributeT, std::enable_if_t< std::is_base_of< Attribute, AttributeT >::value, AttributeT > >::parse().
|
inline |
Parse a custom attribute of a given type unless the next token is #
, in which case the generic parser is invoked.
The parsed attribute is populated in result
and also added to the specified attribute list with the specified name.
Definition at line 728 of file OpImplementation.h.
References mlir::NamedAttrList::append(), mlir::Attribute::dyn_cast(), mlir::emitError(), mlir::failure(), mlir::success(), and value.
|
inline |
SFINAE parsing method for Attribute that don't implement a parse method.
Definition at line 755 of file OpImplementation.h.
References mlir::parseAttribute(), and value.
|
inline |
Parse a custom attribute of a given type unless the next token is #
, in which case the generic parser is invoked.
The parsed attribute is populated in result
.
Definition at line 765 of file OpImplementation.h.
References mlir::Attribute::dyn_cast(), mlir::emitError(), mlir::failure(), mlir::success(), and value.
|
inline |
SFINAE parsing method for Attribute that don't implement a parse method.
Definition at line 787 of file OpImplementation.h.
References mlir::parseAttribute().
|
pure virtual |
Parse a custom type with the provided callback, unless the next token is #
, in which case the generic parser is invoked.
Referenced by mlir::FieldParser< TypeT, std::enable_if_t< std::is_base_of< Type, TypeT >::value, TypeT > >::parse().
|
inline |
Parse a custom Type of a given type unless the next token is #
, in which case the generic parser is invoked.
The parsed Type is populated in result
.
Definition at line 905 of file OpImplementation.h.
References mlir::Type::dyn_cast(), mlir::emitError(), mlir::failure(), mlir::success(), and value.
|
inline |
SFINAE parsing method for Type that don't implement a parse method.
Definition at line 926 of file OpImplementation.h.
References mlir::parseType().
|
pure virtual |
Parse a dimension list of a tensor or memref type.
This populates the dimension list, using -1 for the ?
dimensions if allowDynamic
is set and errors out on ?
otherwise. Parsing the trailing x
is configurable.
dimension-list ::= eps | dimension (x
dimension)* dimension-list-with-trailing-x ::= (dimension x
)* dimension ::= ?
| decimal-literal
When allowDynamic
is not set, this is used to parse:
static-dimension-list ::= eps | decimal-literal (x
decimal-literal)* static-dimension-list-with-trailing-x ::= (dimension x
)*
Referenced by parseArrayType(), parseCooperativeMatrixType(), and parseMatrixType().
|
pure virtual |
Parse a =
token.
Referenced by foldMemRefCast(), getOption(), hasOneBranchOpTo(), mlir::scf::insideMutuallyExclusiveBranches(), parseBound(), parseCreateOperationOpAttributes(), parseLinearClause(), parseOperationOpAttributes(), parseOptionalArrayStride(), parserOptionalOperandAndTypeWithPrefix(), parseSizeAssignment(), parseWsLoopControl(), printInitializationList(), and printWsLoopControl().
|
pure virtual |
Parse a floating point value from the stream.
Referenced by parseExpressedTypeAndRange(), and parseQuantParams().
|
pure virtual |
Parse a '>' token.
Referenced by acceptBitWidth(), mlir::pdl::PDLType::classof(), getOption(), CanonicalizeSingleResultAffineMinMaxOp< T >::matchAndRewrite(), mlir::DataLayoutEntryAttr::parse(), mlir::DataLayoutSpecAttr::parse(), parseAnyType(), parseArrayType(), parseCalibratedType(), parseCooperativeMatrixType(), parseCreateOperationOpResults(), parseExpressedTypeAndRange(), parseGlobalMemrefOpTypeAndInitialValue(), parseImageType(), parseInterfaceVarABIAttr(), parseMatrixType(), parsePointerType(), parseRuntimeArrayType(), parseSampledImageType(), parseStorageRange(), parseStructType(), parseTargetEnvAttr(), parseUniformType(), parseVerCapExtAttr(), and mlir::LLVM::satisfiesLLVMModule().
|
inline |
Parse an integer value from the stream.
Definition at line 555 of file OpImplementation.h.
References mlir::emitError(), and mlir::OptionalParseResult::hasValue().
Referenced by getOption(), mlir::FieldParser< IntT, std::enable_if_t< std::is_integral< IntT >::value, IntT > >::parse(), parseAndVerifyInteger(), parseQuantParams(), parseStorageRange(), parseSwitchOpCases(), parseTargetEnvAttr(), and parseUniformType().
|
inline |
Parse a given keyword.
Definition at line 485 of file OpImplementation.h.
References mlir::emitError(), and mlir::success().
Referenced by eachHasOnlyOneOfTypes(), getLoadStoreElementType(), getOption(), mlir::scf::getParallelForInductionVarOwner(), mlir::scf::insideMutuallyExclusiveBranches(), CanonicalizeSingleResultAffineMinMaxOp< T >::matchAndRewrite(), mlir::vector::CombiningKindAttr::parse(), parseAndVerify(), parseAtomicBinOp(), parseAtomicOrdering(), parseBound(), parseCalibratedType(), parseClauseAttr(), parseCreateOperationOpResults(), parseGlobalMemrefOpTypeAndInitialValue(), parseInterfaceVarABIAttr(), parseOptionalArrayStride(), parsePDLType(), parsePointerType(), parseScheduleClause(), parseSizeAssignment(), parseStorageType(), parseStructType(), parseSwitchOpCases(), parseSynchronizationHint(), parseTargetEnvAttr(), parseVerCapExtAttr(), parseWsLoopControl(), mlir::DataLayoutSpecAttr::print(), printCreateOperationOpResults(), printInitializationList(), printWsLoopControl(), mlir::LLVM::satisfiesLLVMModule(), and verifyCoopMatrixMulAdd().
|
inline |
Parse a keyword into 'keyword'.
Definition at line 493 of file OpImplementation.h.
References mlir::emitError(), and mlir::success().
|
inline |
Parse a keyword or a quoted string.
Definition at line 513 of file OpImplementation.h.
References mlir::emitError(), mlir::failed(), and mlir::success().
|
inline |
Parse a keyword followed by a type.
Definition at line 973 of file OpImplementation.h.
References mlir::failure(), and mlir::parseType().
Referenced by hasOneBranchOpTo(), and verifyAtomicCompareExchangeImpl().
|
pure virtual |
Parse a {
token.
Referenced by parseUniformType().
|
pure virtual |
Parse a '<' token.
Referenced by acceptBitWidth(), mlir::pdl::PDLType::classof(), getOption(), CanonicalizeSingleResultAffineMinMaxOp< T >::matchAndRewrite(), mlir::DataLayoutEntryAttr::parse(), mlir::DataLayoutSpecAttr::parse(), mlir::vector::CombiningKindAttr::parse(), parseAnyType(), parseArrayType(), parseCalibratedType(), parseCooperativeMatrixType(), parseExpressedTypeAndRange(), parseGlobalMemrefOpTypeAndInitialValue(), parseImageType(), parseInterfaceVarABIAttr(), parseMatrixType(), parsePointerType(), parseRuntimeArrayType(), parseSampledImageType(), parseStructType(), parseTargetEnvAttr(), parseUniformType(), parseVerCapExtAttr(), and mlir::LLVM::satisfiesLLVMModule().
|
pure virtual |
Parse a (
token.
Referenced by mlir::scf::getParallelForInductionVarOwner(), hasOneBranchOpTo(), parseCommonStructuredOpParts(), parseControlAttribute(), parseCreateOperationOpResults(), parseGroupNonUniformArithmeticOp(), parseInterfaceVarABIAttr(), parseOperandList(), parseOptionalLLVMKeyword(), parseOptionalOperand(), parseOptionalOperandAndType(), parseSizeAssignment(), parseStructType(), parseVariableDecorations(), verifyConstantType(), and verifyCoopMatrixMulAdd().
|
pure virtual |
Parse a [
token.
Referenced by getInsertExtractValueElementType(), getLoadStoreElementType(), parseKeywordList(), and parseOperandsOrIntegersImpl().
|
pure virtual |
Parse a '->' token if present.
Referenced by parseCreateOperationOpResults(), and mlir::function_interface_impl::parseFunctionSignature().
|
pure virtual |
Parse an optional arrow followed by a type list.
Referenced by eachHasOnlyOneOfTypes(), mlir::scf::insideMutuallyExclusiveBranches(), isComputeOperation(), parseNamedStructuredOpResults(), mlir::replaceForOpWithNewYields(), replaceOpWithRegion(), and verifyAllocLikeOp().
|
pure virtual |
Parse a named dictionary into 'result' if it is present.
Referenced by applyTilingToAll(), computeMemRefRankReductionMask(), eachHasOnlyOneOfTypes(), foldMemRefCast(), foldTransferInBoundsAttribute(), getGenericEffectsImpl(), getInsertExtractValueElementType(), getLoadStoreElementType(), mlir::scf::insideMutuallyExclusiveBranches(), isZeroAttribute(), SelectToExtUI::matchAndRewrite(), CanonicalizeSingleResultAffineMinMaxOp< T >::matchAndRewrite(), parseAffineMinMaxOp(), parseBound(), parseCommonStructuredOpParts(), parseFunctionArgumentList(), parseLLVMOpAttrs(), parseOneResultSameOperandTypeOp(), parseOptionalLLVMKeyword(), parseSizeAssignment(), parseVariableDecorations(), printCreateOperationOpResults(), printInitializationList(), printNVVMIntrinsicOp(), printTransferAttrs(), mlir::replaceForOpWithNewYields(), replaceOpWithRegion(), verifyAllocLikeOp(), verifyConstantType(), verifyCoopMatrixMulAdd(), verifyDimAndSymbolIdentifiers(), verifyMemoryOpIndexing(), and verifyVectorMemoryOp().
|
pure virtual |
Parse a named dictionary into 'result' if the attributes
keyword is present.
Referenced by mlir::scf::getParallelForInductionVarOwner(), hasOneBranchOpTo(), isComputeOperation(), parseAttributions(), mlir::function_interface_impl::parseFunctionOp(), verifyAttributions(), and verifyConstantType().
|
pure virtual |
Parse an arbitrary optional attribute of a given type and return it in result.
|
pure virtual |
Parse an optional array attribute and return it in result.
|
pure virtual |
Parse an optional string attribute and return it in result.
|
inline |
Parse an optional attribute of a specific type and add it to the list with the specified name.
Definition at line 807 of file OpImplementation.h.
|
inline |
Parse an optional attribute of a specific type and add it to the list with the specified name.
Definition at line 816 of file OpImplementation.h.
References mlir::NamedAttrList::append(), mlir::OptionalParseResult::hasValue(), and mlir::succeeded().
|
pure virtual |
Parse a :
token if present.
Referenced by parseAnyType(), parseQuantParams(), parseTargetEnvAttr(), and parseUniformType().
|
pure virtual |
Parse an optional colon followed by a type list, which if present must have at least one type.
Referenced by parseOptionalLLVMKeyword().
|
pure virtual |
Parse a ,
token if present.
Referenced by foldTransferInBoundsAttribute(), getLoadStoreElementType(), isComputeOperation(), SelectToExtUI::matchAndRewrite(), parseInterfaceVarABIAttr(), parseOptionalArrayStride(), parseScheduleClause(), parseStructType(), parseSwitchOpCases(), parseUniformType(), printTransferAttrs(), verifyConstantType(), and verifyCoopMatrixMulAdd().
|
pure virtual |
Parse a ...
token if present;.
Referenced by parseFunctionArgumentList().
|
pure virtual |
Parse a =
token if present.
Referenced by parseGlobalMemrefOpTypeAndInitialValue(), parseScheduleClause(), and parseStructMemberDecorations().
|
pure virtual |
Parse a '>' token if present.
Referenced by mlir::DataLayoutSpecAttr::parse(), parseStructType(), mlir::LLVM::satisfiesLLVMModule(), and typeOrAttrParser().
|
pure virtual |
Parse an optional integer value from the stream.
Referenced by parseGEPIndices(), parseInterfaceVarABIAttr(), parseStructMemberDecorations(), and parseSwitchOpCases().
|
inline |
Definition at line 567 of file OpImplementation.h.
References mlir::emitError(), mlir::failed(), mlir::OptionalParseResult::hasValue(), and mlir::success().
|
pure virtual |
Parse the given keyword if present.
Referenced by foldMemRefCast(), getLoadStoreElementType(), getOption(), hasOneBranchOpTo(), mlir::scf::insideMutuallyExclusiveBranches(), isComputeOperation(), parseAllReduceOperation(), parseAsyncDependencies(), parseAtomicReductionRegion(), parseAttributions(), parseBound(), parseCommonStructuredOpParts(), parseControlAttribute(), parseGlobalMemrefOpTypeAndInitialValue(), parseGroupNonUniformArithmeticOp(), parseLaunchFuncOperands(), parseOperandList(), parseOptionalKeywordAlternative(), parseOptionalLLVMKeyword(), parseOptionalOperand(), parseOptionalOperandAndType(), mlir::impl::parseOptionalVisibilityKeyword(), parserOptionalOperandAndTypeWithPrefix(), parseSizeAssignment(), parseStructType(), parseSymbolVisibility(), parseSynchronizationHint(), parseTargetEnvAttr(), parseVariableDecorations(), parseWsLoopControl(), printInitializationList(), mlir::replaceForOpWithNewYields(), and verifyConstantType().
|
pure virtual |
Parse a keyword, if present, into 'keyword'.
|
pure virtual |
Parse a keyword, if present, and if one of the 'allowedValues', into 'keyword'.
|
pure virtual |
Parse an optional keyword or string.
|
pure virtual |
Parse a {
token if present.
Referenced by parseCreateOperationOpAttributes(), and parseOperationOpAttributes().
|
pure virtual |
Parse a '<' token if present.
Referenced by parseCreateOperationOpResults(), parseStorageRange(), and typeOrAttrParser().
|
pure virtual |
Parse a (
token if present.
Referenced by getLoadStoreElementType(), isComputeOperation(), parseFunctionResultList(), parseOneResultSameOperandTypeOp(), parseOptionalOperandAndType(), parseSwitchOpCases(), and parseTypedInitialValue().
|
pure virtual |
Parse a [
token if present.
Referenced by parseImageOperands(), parseMemoryAccessAttributes(), parseSourceMemoryAccessAttributes(), parseStructType(), and verifyAtomicCompareExchangeImpl().
|
pure virtual |
Parse a '+' token if present.
|
pure virtual |
Parse a '?' token if present.
|
pure virtual |
Parse a }
token if present.
|
pure virtual |
Parse a )
token if present.
Referenced by parseFunctionResultList(), parseOperandList(), parseOptionalLLVMKeyword(), and parseStructType().
|
pure virtual |
Parse a ]
token if present.
Referenced by parseKeywordList(), parseOperandsOrIntegersImpl(), and parseStructMemberDecorations().
|
pure virtual |
Parse a '*' token if present.
|
pure virtual |
Parse a quoted string token if present.
Referenced by mlir::DataLayoutEntryAttr::parse().
|
pure virtual |
Parse an optional -identifier and store it (without the '@' symbol) in a string attribute named 'attrName'.
Referenced by hasOneBranchOpTo().
|
pure virtual |
Parse an optional type.
Referenced by mlir::DataLayoutEntryAttr::parse(), and parseStorageType().
|
pure virtual |
Parse a '|' token if present.
|
pure virtual |
Parse a '+' token.
|
pure virtual |
Parse a '?' token.
|
pure virtual |
Parse a }
token.
Referenced by parseCreateOperationOpAttributes(), parseOperationOpAttributes(), and parseUniformType().
|
pure virtual |
Parse a )
token.
Referenced by getLoadStoreElementType(), mlir::scf::getParallelForInductionVarOwner(), hasOneBranchOpTo(), isComputeOperation(), parseCommonStructuredOpParts(), parseControlAttribute(), parseCreateOperationOpResults(), parseFunctionResultList(), parseGroupNonUniformArithmeticOp(), parseInterfaceVarABIAttr(), parseOneResultSameOperandTypeOp(), parseOperandList(), parseOptionalLLVMKeyword(), parseOptionalOperand(), parseOptionalOperandAndType(), parseSizeAssignment(), parseStructType(), parseSwitchOpCases(), parseTypedInitialValue(), parseVariableDecorations(), verifyConstantType(), and verifyCoopMatrixMulAdd().
|
pure virtual |
|
pure virtual |
Parse a '*' token.
|
inline |
Parse a quoted string token.
Definition at line 474 of file OpImplementation.h.
References mlir::emitError(), and mlir::success().
Referenced by mlir::FieldParser< std::string >::parse().
|
inline |
Parse an -identifier and store it (without the '@' symbol) in a string attribute named 'attrName'.
Definition at line 845 of file OpImplementation.h.
References mlir::emitError(), mlir::failed(), mlir::parseType(), and mlir::success().
Referenced by hasOneBranchOpTo(), parseAttributions(), mlir::function_interface_impl::parseFunctionOp(), parseOptionalLLVMKeyword(), verifyAttributions(), verifyConstantType(), and verifyCoopMatrixMulAdd().
|
pure virtual |
Parse a type.
Referenced by getInsertExtractValueElementType(), getLoadStoreElementType(), hasOneBranchOpTo(), isZeroAttribute(), SelectToExtUI::matchAndRewrite(), parseAndVerifyMatrixType(), parseAndVerifySampledImageType(), parseAndVerifyType(), parseAnyType(), parseAwaitResultType(), parseExpressedTypeAndRange(), parseFunctionArgumentList(), parseFunctionResultList(), parseGlobalMemrefOpTypeAndInitialValue(), parseOneResultSameOperandTypeOp(), parseResultsValueType(), parseStructType(), parseUniformType(), verifyConstantType(), verifyCoopMatrixMulAdd(), verifyPointerAndCoopMatrixType(), and verifyVectorMemoryOp().
|
inline |
Parse a type of a specific type.
Definition at line 876 of file OpImplementation.h.
References mlir::Type::dyn_cast(), mlir::emitError(), mlir::failure(), mlir::parseType(), and mlir::success().
|
inline |
Parse a type list.
Definition at line 931 of file OpImplementation.h.
References mlir::detail::pass_options::parseCommaSeparatedList(), and mlir::parseType().
Referenced by getElementPtrType(), and parsePtrAccessChainOpImpl().
|
pure virtual |
Parse a '|' token.
|
pure virtual |
Parse an 'x' token in a dimension list, handling the case where the x is juxtaposed with an element type, as in "xf32", leaving the "f32" as the next token.
|
pure virtual |
Parse an integer set instance into 'set'.