@@ -422,14 +422,14 @@ in the IR:
422
422
### Parameter Parsing and Printing
423
423
424
424
For many basic parameter types, no additional work is needed to define how
425
- these parameters are parsed or printerd .
425
+ these parameters are parsed or printed .
426
426
427
427
* The default printer for any parameter is ` $_printer << $_self ` ,
428
- where ` $_self ` is the C++ value of the parameter and ` $_printer ` is a
429
- ` DialectAsmPrinter ` .
428
+ where ` $_self ` is the C++ value of the parameter and ` $_printer ` is an
429
+ ` AsmPrinter ` .
430
430
* The default parser for a parameter is
431
431
` FieldParser<$cppClass>::parse($_parser) ` , where ` $cppClass ` is the C++ type
432
- of the parameter and ` $_parser ` is a ` DialectAsmParser ` .
432
+ of the parameter and ` $_parser ` is an ` AsmParser ` .
433
433
434
434
Printing and parsing behaviour can be added to additional C++ types by
435
435
overloading these functions or by defining a ` parser ` and ` printer ` in an ODS
@@ -440,12 +440,12 @@ Example of overloading:
440
440
``` c++
441
441
using MyParameter = std::pair<int , int >;
442
442
443
- DialectAsmPrinter &operator <<(DialectAsmPrinter &printer, MyParameter param) {
443
+ AsmPrinter &operator <<(AsmPrinter &printer, MyParameter param) {
444
444
printer << param.first << " * " << param.second;
445
445
}
446
446
447
447
template <> struct FieldParser <MyParameter> {
448
- static FailureOr<MyParameter > parse(DialectAsmParser &parser) {
448
+ static FailureOr<MyParameter > parse(AsmParser &parser) {
449
449
int a, b;
450
450
if (parser.parseInteger(a) || parser.parseStar() ||
451
451
parser.parseInteger(b))
0 commit comments