Changes in src/main.cc [a488783:5f3ba11]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
ra488783 r5f3ba11 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed Jan 26 14:09:00 202213 // Update Count : 6 7012 // Last Modified On : Tue Nov 30 10:25:00 2021 13 // Update Count : 659 14 14 // 15 15 … … 55 55 #include "ControlStruct/ExceptTranslate.h" // for translateEHM 56 56 #include "ControlStruct/FixLabels.hpp" // for fixLabels 57 #include "ControlStruct/HoistControlDecls.hpp" // hoistControlDecls58 57 #include "ControlStruct/Mutate.h" // for mutate 59 58 #include "GenPoly/Box.h" // for box … … 74 73 #include "SynTree/Visitor.h" // for acceptAll 75 74 #include "Tuples/Tuples.h" // for expandMemberTuples, expan... 76 #include "Validate/Autogen.hpp" // for autogenerateRoutines77 75 #include "Validate/FindSpecialDecls.h" // for findGlobalDecls 78 76 #include "Validate/CompoundLiteral.hpp" // for handleCompoundLiterals … … 80 78 #include "Validate/LabelAddressFixer.hpp" // for fixLabelAddresses 81 79 #include "Virtual/ExpandCasts.h" // for expandCasts 80 82 81 83 82 static void NewPass( const char * const name ) { … … 327 326 PASS( "Validate-B", SymTab::validate_B( translationUnit ) ); 328 327 PASS( "Validate-C", SymTab::validate_C( translationUnit ) ); 328 PASS( "Validate-D", SymTab::validate_D( translationUnit ) ); 329 329 330 330 CodeTools::fillLocations( translationUnit ); 331 331 332 332 if( useNewAST ) { 333 PASS( "Apply Concurrent Keywords", Concurrency::applyKeywords( translationUnit ) );334 PASS( "Forall Pointer Decay", SymTab::decayForallPointers( translationUnit ) );335 CodeTools::fillLocations( translationUnit );336 337 333 if (Stats::Counters::enabled) { 338 334 ast::pass_visitor_stats.avg = Stats::Counters::build<Stats::Counters::AverageCounter<double>>("Average Depth - New"); … … 342 338 343 339 forceFillCodeLocations( transUnit ); 344 345 // Must happen before autogen routines are added.346 PASS( "Hoist Control Declarations", ControlStruct::hoistControlDecls( transUnit ) );347 348 // Must be after enum and pointer decay.349 // Must be before compound literals.350 PASS( "Generate Autogen Routines", Validate::autogenerateRoutines( transUnit ) );351 340 352 341 PASS( "Implement Mutex", Concurrency::implementMutex( transUnit ) ); … … 415 404 // Currently not working due to unresolved issues with UniqueExpr 416 405 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 406 407 PASS( "Translate Tries" , ControlStruct::translateTries( transUnit ) ); 408 417 409 translationUnit = convert( move( transUnit ) ); 418 410 } else { 419 PASS( "Validate-D", SymTab::validate_D( translationUnit ) );420 411 PASS( "Validate-E", SymTab::validate_E( translationUnit ) ); 421 412 PASS( "Validate-F", SymTab::validate_F( translationUnit ) ); … … 481 472 482 473 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 474 475 PASS( "Translate Tries" , ControlStruct::translateTries( translationUnit ) ); 483 476 } 484 477 485 PASS( "Translate Tries" , ControlStruct::translateTries( translationUnit ) );478 486 479 487 480 PASS( "Gen Waitfor" , Concurrency::generateWaitFor( translationUnit ) );
Note:
See TracChangeset
for help on using the changeset viewer.