MLIR 24.0.0git
mlir::FieldParser< T, typename > Struct Template Reference

Provide a template class that can be specialized by users to dispatch to parsers. More...

Inheritance diagram for mlir::FieldParser< T, typename >:

Detailed Description

template<typename T, typename = T>
struct mlir::FieldParser< T, typename >

Provide a template class that can be specialized by users to dispatch to parsers.

Auto-generated parsers generate calls to FieldParser<T>::parse, where T is the parameter storage type, to parse custom types.

A parser is key-value compositional only if it consumes exactly one value and leaves the comma separating the next key unconsumed. For example, an undelimited array parser for values = 1, 2, next = 9 cannot distinguish its element commas from the comma before next and may try to parse next as another element. Marking it non-compositional lets a keyed property list use a self-delimiting attribute such as array<i64: 1, 2> instead. Specializations with this behavior, or that may succeed without consuming a token, should define isKeyValueCompositional as false.

Definition at line 83 of file DialectImplementation.h.


The documentation for this struct was generated from the following file: