Changeset 01d433e
- Timestamp:
- Aug 18, 2021, 1:15:22 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- bb9924c
- Parents:
- 6d63c14
- Location:
- src
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Tuples/Tuples.h ¶
r6d63c14 r01d433e 45 45 /// replaces UniqueExprs with a temporary variable and one call 46 46 void expandUniqueExpr( std::list< Declaration * > & translationUnit ); 47 void expandUniqueExpr( ast::TranslationUnit & translationUnit ); 47 48 48 49 /// returns VoidType if any of the expressions have Voidtype, otherwise TupleType of the Expression result types -
TabularUnified src/Tuples/module.mk ¶
r6d63c14 r01d433e 20 20 Tuples/TupleAssignment.cc \ 21 21 Tuples/TupleExpansion.cc \ 22 Tuples/TupleExpansionNew.cpp \ 22 23 Tuples/Tuples.cc \ 23 24 Tuples/Tuples.h -
TabularUnified src/main.cc ¶
r6d63c14 r01d433e 374 374 375 375 PASS( "Fix Init", InitTweak::fix(transUnit, buildingLibrary())); 376 377 // fix ObjectDecl - replaces ConstructorInit nodes 378 if ( ctorinitp ) { 379 dump( move( transUnit ) ); 380 return EXIT_SUCCESS; 381 } // if 382 383 // Currently not working due to unresolved issues with UniqueExpr 384 PASS( "Expand Unique Expr", Tuples::expandUniqueExpr( transUnit ) ); // xxx - is this the right place for this? want to expand ASAP so tha, sequent passes don't need to worry about double-visiting a unique expr - needs to go after InitTweak::fix so that copy constructed return declarations are reused 376 385 translationUnit = convert( move( transUnit ) ); 377 386 } else { … … 383 392 384 393 PASS( "Fix Init", InitTweak::fix( translationUnit, buildingLibrary() ) ); 394 395 // fix ObjectDecl - replaces ConstructorInit nodes 396 if ( ctorinitp ) { 397 dump ( translationUnit ); 398 return EXIT_SUCCESS; 399 } // if 400 401 PASS( "Expand Unique Expr", Tuples::expandUniqueExpr( translationUnit ) ); // xxx - is this the right place for this? want to expand ASAP so tha, sequent passes don't need to worry about double-visiting a unique expr - needs to go after InitTweak::fix so that copy constructed return declarations are reused 385 402 } 386 387 // fix ObjectDecl - replaces ConstructorInit nodes388 if ( ctorinitp ) {389 dump ( translationUnit );390 return EXIT_SUCCESS;391 } // if392 393 PASS( "Expand Unique Expr", Tuples::expandUniqueExpr( translationUnit ) ); // xxx - is this the right place for this? want to expand ASAP so tha, sequent passes don't need to worry about double-visiting a unique expr - needs to go after InitTweak::fix so that copy constructed return declarations are reused394 403 395 404 PASS( "Translate Tries" , ControlStruct::translateTries( translationUnit ) );
Note: See TracChangeset
for help on using the changeset viewer.