Changes in src/Common/PassVisitor.impl.h [6cebfef:7ff35e0e]
- File:
-
- 1 edited
-
src/Common/PassVisitor.impl.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.impl.h
r6cebfef r7ff35e0e 1781 1781 1782 1782 //-------------------------------------------------------------------------- 1783 // MutexStmt1784 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 //--------------------------------------------------------------------------1819 1783 // ApplicationExpr 1820 1784 template< typename pass_type >
Note:
See TracChangeset
for help on using the changeset viewer.