@@ -458,21 +458,18 @@ static void print(OpAsmPrinter &printer, ParallelOp &op) {
458
458
// / (`create` `(` value-list `)`)?
459
459
// / (`create_zero` `(` value-list `)`)?
460
460
// / (`no_create` `(` value-list `)`)?
461
- // / (`delete` `(` value-list `)`)?
462
461
// / (`attach` `(` value-list `)`)?
463
- // / (`detach` `(` value-list `)`)?
464
462
// / region attr-dict?
465
463
static ParseResult parseDataOp (OpAsmParser &parser, OperationState &result) {
466
464
Builder &builder = parser.getBuilder ();
467
465
SmallVector<OpAsmParser::OperandType, 2 > presentOperands, copyOperands,
468
466
copyinOperands, copyinReadonlyOperands, copyoutOperands,
469
467
copyoutZeroOperands, createOperands, createZeroOperands, noCreateOperands,
470
- deleteOperands, attachOperands, detachOperands ;
468
+ attachOperands;
471
469
SmallVector<Type, 2 > presentOperandTypes, copyOperandTypes,
472
470
copyinOperandTypes, copyinReadonlyOperandTypes, copyoutOperandTypes,
473
471
copyoutZeroOperandTypes, createOperandTypes, createZeroOperandTypes,
474
- noCreateOperandTypes, deleteOperandTypes, attachOperandTypes,
475
- detachOperandTypes;
472
+ noCreateOperandTypes, attachOperandTypes;
476
473
477
474
// present(value-list)?
478
475
if (failed (parseOperandList (parser, DataOp::getPresentKeyword (),
@@ -522,21 +519,11 @@ static ParseResult parseDataOp(OpAsmParser &parser, OperationState &result) {
522
519
noCreateOperands, noCreateOperandTypes, result)))
523
520
return failure ();
524
521
525
- // delete(value-list)?
526
- if (failed (parseOperandList (parser, DataOp::getDeleteKeyword (),
527
- deleteOperands, deleteOperandTypes, result)))
528
- return failure ();
529
-
530
522
// attach(value-list)?
531
523
if (failed (parseOperandList (parser, DataOp::getAttachKeyword (),
532
524
attachOperands, attachOperandTypes, result)))
533
525
return failure ();
534
526
535
- // detach(value-list)?
536
- if (failed (parseOperandList (parser, DataOp::getDetachKeyword (),
537
- detachOperands, detachOperandTypes, result)))
538
- return failure ();
539
-
540
527
// Data op region
541
528
if (failed (parseRegions<ParallelOp>(parser, result)))
542
529
return failure ();
@@ -552,9 +539,7 @@ static ParseResult parseDataOp(OpAsmParser &parser, OperationState &result) {
552
539
static_cast <int32_t >(createOperands.size ()),
553
540
static_cast <int32_t >(createZeroOperands.size ()),
554
541
static_cast <int32_t >(noCreateOperands.size ()),
555
- static_cast <int32_t >(deleteOperands.size ()),
556
- static_cast <int32_t >(attachOperands.size ()),
557
- static_cast <int32_t >(detachOperands.size ())}));
542
+ static_cast <int32_t >(attachOperands.size ())}));
558
543
559
544
// Additional attributes
560
545
if (failed (parser.parseOptionalAttrDictWithKeyword (result.attributes )))
@@ -597,15 +582,9 @@ static void print(OpAsmPrinter &printer, DataOp &op) {
597
582
printOperandList (op.noCreateOperands (), DataOp::getNoCreateKeyword (),
598
583
printer);
599
584
600
- // delete(value-list)?
601
- printOperandList (op.deleteOperands (), DataOp::getDeleteKeyword (), printer);
602
-
603
585
// attach(value-list)?
604
586
printOperandList (op.attachOperands (), DataOp::getAttachKeyword (), printer);
605
587
606
- // detach(value-list)?
607
- printOperandList (op.detachOperands (), DataOp::getDetachKeyword (), printer);
608
-
609
588
printer.printRegion (op.region (),
610
589
/* printEntryBlockArgs=*/ false ,
611
590
/* printBlockTerminators=*/ true );
0 commit comments