Changeset 5a40e4e for src/Common/PassVisitor.impl.h
- Timestamp:
- Sep 9, 2021, 3:56:32 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- d0b9247
- Parents:
- dd1cc02 (diff), d8d512e (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
rdd1cc02 r5a40e4e 1781 1781 1782 1782 //-------------------------------------------------------------------------- 1783 // MutexStmt 1784 template< typename pass_type > 1785 void PassVisitor< pass_type >::visit( MutexStmt * node ) { 1786 VISIT_START( node ); 1787 // mutex statements introduce a level of scope (for the initialization) 1788 maybeAccept_impl( node->mutexObjs, *this ); 1789 { 1790 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 1791 node->stmt = visitStatement( node->stmt ); 1792 } 1793 VISIT_END( node ); 1794 } 1795 1796 template< typename pass_type > 1797 void PassVisitor< pass_type >::visit( const MutexStmt * node ) { 1798 VISIT_START( node ); 1799 maybeAccept_impl( node->mutexObjs, *this ); 1800 { 1801 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 1802 visitStatement( node->stmt ); 1803 } 1804 VISIT_END( node ); 1805 } 1806 1807 template< typename pass_type > 1808 Statement * PassVisitor< pass_type >::mutate( MutexStmt * node ) { 1809 MUTATE_START( node ); 1810 maybeMutate_impl( node->mutexObjs, *this ); 1811 { 1812 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 1813 node->stmt = mutateStatement( node->stmt ); 1814 } 1815 MUTATE_END( Statement, node ); 1816 } 1817 1818 //-------------------------------------------------------------------------- 1783 1819 // ApplicationExpr 1784 1820 template< typename pass_type >
Note:
See TracChangeset
for help on using the changeset viewer.