MLIR 24.0.0git
mlir::FieldParser< std::optional< char > > Struct Reference

Parse an optional plain char as a single-character keyword-or-string. More...

#include "mlir/IR/DialectImplementation.h"

Inheritance diagram for mlir::FieldParser< std::optional< char > >:

Static Public Member Functions

static FailureOr< std::optional< char > > parse (AsmParser &parser)

Static Public Attributes

static constexpr bool isKeyValueCompositional = false

Detailed Description

Parse an optional plain char as a single-character keyword-or-string.

Identifier characters (e.g. A) are accepted as bare keywords; all other values use a quoted+escaped string with two-digit hex escapes (e.g. "\0A" for newline), covering all 256 byte values. Named escapes such as \n are also accepted as input but are not the canonical printed form. Returns std::nullopt if no keyword or string is present.

Definition at line 120 of file DialectImplementation.h.

Member Function Documentation

◆ parse()

FailureOr< std::optional< char > > mlir::FieldParser< std::optional< char > >::parse ( AsmParser & parser)
inlinestatic

Member Data Documentation

◆ isKeyValueCompositional

bool mlir::FieldParser< std::optional< char > >::isKeyValueCompositional = false
staticconstexpr

Definition at line 121 of file DialectImplementation.h.


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