Changeset 660665f for src/Common/PassVisitor.impl.h
- Timestamp:
- Jun 29, 2021, 5:35:19 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- dcad80a
- Parents:
- 5a46e09 (diff), d02e547 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.impl.h
r5a46e09 r660665f 636 636 maybeAccept_impl( node->parameters, *this ); 637 637 maybeAccept_impl( node->members , *this ); 638 maybeAccept_impl( node->attributes, *this ); 638 639 } 639 640 … … 656 657 maybeAccept_impl( node->parameters, *this ); 657 658 maybeAccept_impl( node->members , *this ); 659 maybeAccept_impl( node->attributes, *this ); 658 660 } 659 661 … … 676 678 maybeMutate_impl( node->parameters, *this ); 677 679 maybeMutate_impl( node->members , *this ); 680 maybeMutate_impl( node->attributes, *this ); 678 681 } 679 682 … … 697 700 maybeAccept_impl( node->parameters, *this ); 698 701 maybeAccept_impl( node->members , *this ); 702 maybeAccept_impl( node->attributes, *this ); 699 703 } 700 704 … … 714 718 maybeAccept_impl( node->parameters, *this ); 715 719 maybeAccept_impl( node->members , *this ); 720 maybeAccept_impl( node->attributes, *this ); 716 721 } 717 722 … … 732 737 maybeMutate_impl( node->parameters, *this ); 733 738 maybeMutate_impl( node->members , *this ); 739 maybeMutate_impl( node->attributes, *this ); 734 740 } 735 741 … … 750 756 maybeAccept_impl( node->parameters, *this ); 751 757 maybeAccept_impl( node->members , *this ); 758 maybeAccept_impl( node->attributes, *this ); 752 759 753 760 VISIT_END( node ); … … 763 770 maybeAccept_impl( node->parameters, *this ); 764 771 maybeAccept_impl( node->members , *this ); 772 maybeAccept_impl( node->attributes, *this ); 765 773 766 774 VISIT_END( node ); … … 776 784 maybeMutate_impl( node->parameters, *this ); 777 785 maybeMutate_impl( node->members , *this ); 786 maybeMutate_impl( node->attributes, *this ); 778 787 779 788 MUTATE_END( Declaration, node ); … … 790 799 maybeAccept_impl( node->parameters, *this ); 791 800 maybeAccept_impl( node->members , *this ); 801 maybeAccept_impl( node->attributes, *this ); 792 802 } 793 803 … … 805 815 maybeAccept_impl( node->parameters, *this ); 806 816 maybeAccept_impl( node->members , *this ); 817 maybeAccept_impl( node->attributes, *this ); 807 818 } 808 819 … … 820 831 maybeMutate_impl( node->parameters, *this ); 821 832 maybeMutate_impl( node->members , *this ); 833 maybeMutate_impl( node->attributes, *this ); 822 834 } 823 835 … … 2507 2519 2508 2520 //-------------------------------------------------------------------------- 2521 // DimensionExpr 2522 template< typename pass_type > 2523 void PassVisitor< pass_type >::visit( DimensionExpr * node ) { 2524 VISIT_START( node ); 2525 2526 indexerScopedAccept( node->result, *this ); 2527 2528 VISIT_END( node ); 2529 } 2530 2531 template< typename pass_type > 2532 void PassVisitor< pass_type >::visit( const DimensionExpr * node ) { 2533 VISIT_START( node ); 2534 2535 indexerScopedAccept( node->result, *this ); 2536 2537 VISIT_END( node ); 2538 } 2539 2540 template< typename pass_type > 2541 Expression * PassVisitor< pass_type >::mutate( DimensionExpr * node ) { 2542 MUTATE_START( node ); 2543 2544 indexerScopedMutate( node->env , *this ); 2545 indexerScopedMutate( node->result, *this ); 2546 2547 MUTATE_END( Expression, node ); 2548 } 2549 2550 //-------------------------------------------------------------------------- 2509 2551 // AsmExpr 2510 2552 template< typename pass_type > … … 3145 3187 3146 3188 maybeAccept_impl( node->forall, *this ); 3147 // xxx - should PointerType visit/mutate dimension?3189 maybeAccept_impl( node->dimension, *this ); 3148 3190 maybeAccept_impl( node->base, *this ); 3149 3191 … … 3156 3198 3157 3199 maybeAccept_impl( node->forall, *this ); 3158 // xxx - should PointerType visit/mutate dimension?3200 maybeAccept_impl( node->dimension, *this ); 3159 3201 maybeAccept_impl( node->base, *this ); 3160 3202 … … 3167 3209 3168 3210 maybeMutate_impl( node->forall, *this ); 3169 // xxx - should PointerType visit/mutate dimension?3211 maybeMutate_impl( node->dimension, *this ); 3170 3212 maybeMutate_impl( node->base, *this ); 3171 3213 … … 3856 3898 3857 3899 //-------------------------------------------------------------------------- 3858 // Attribute3900 // Constant 3859 3901 template< typename pass_type > 3860 3902 void PassVisitor< pass_type >::visit( Constant * node ) {
Note: See TracChangeset
for help on using the changeset viewer.