Changes in src/main.cc [5f3ba11:9490621]
- File:
-
- 1 edited
-
src/main.cc (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r5f3ba11 r9490621 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Tue Nov 30 10:25:00 202113 // Update Count : 6 5912 // Last Modified On : Wed Jan 26 14:09:00 2022 13 // Update Count : 670 14 14 // 15 15 … … 32 32 33 33 #include "AST/Convert.hpp" 34 #include "AST/Print.hpp" 34 35 #include "CompilationState.h" 35 36 #include "../config.h" // for CFA_LIBDIR … … 55 56 #include "ControlStruct/ExceptTranslate.h" // for translateEHM 56 57 #include "ControlStruct/FixLabels.hpp" // for fixLabels 58 #include "ControlStruct/HoistControlDecls.hpp" // hoistControlDecls 57 59 #include "ControlStruct/Mutate.h" // for mutate 58 60 #include "GenPoly/Box.h" // for box … … 73 75 #include "SynTree/Visitor.h" // for acceptAll 74 76 #include "Tuples/Tuples.h" // for expandMemberTuples, expan... 77 #include "Validate/Autogen.hpp" // for autogenerateRoutines 75 78 #include "Validate/FindSpecialDecls.h" // for findGlobalDecls 79 #include "Validate/ForallPointerDecay.hpp" // for decayForallPointers 76 80 #include "Validate/CompoundLiteral.hpp" // for handleCompoundLiterals 77 81 #include "Validate/InitializerLength.hpp" // for setLengthFromInitializer 78 82 #include "Validate/LabelAddressFixer.hpp" // for fixLabelAddresses 79 83 #include "Virtual/ExpandCasts.h" // for expandCasts 80 81 84 82 85 static void NewPass( const char * const name ) { … … 326 329 PASS( "Validate-B", SymTab::validate_B( translationUnit ) ); 327 330 PASS( "Validate-C", SymTab::validate_C( translationUnit ) ); 328 PASS( "Validate-D", SymTab::validate_D( translationUnit ) );329 331 330 332 CodeTools::fillLocations( translationUnit ); 331 333 332 334 if( useNewAST ) { 335 PASS( "Implement Concurrent Keywords", Concurrency::applyKeywords( translationUnit ) ); 336 //PASS( "Forall Pointer Decay - A", SymTab::decayForallPointersA( translationUnit ) ); 337 //PASS( "Forall Pointer Decay - B", SymTab::decayForallPointersB( translationUnit ) ); 338 //PASS( "Forall Pointer Decay - C", SymTab::decayForallPointersC( translationUnit ) ); 339 //PASS( "Forall Pointer Decay - D", SymTab::decayForallPointersD( translationUnit ) ); 340 CodeTools::fillLocations( translationUnit ); 341 333 342 if (Stats::Counters::enabled) { 334 343 ast::pass_visitor_stats.avg = Stats::Counters::build<Stats::Counters::AverageCounter<double>>("Average Depth - New"); … … 338 347 339 348 forceFillCodeLocations( transUnit ); 349 350 // Must be after implement concurrent keywords; because uniqueIds 351 // must be set on declaration before resolution. 352 // Must happen before autogen routines are added. 353 PASS( "Forall Pointer Decay", Validate::decayForallPointers( transUnit ) ); 354 355 // Must happen before autogen routines are added. 356 PASS( "Hoist Control Declarations", ControlStruct::hoistControlDecls( transUnit ) ); 357 358 // Must be after enum and pointer decay. 359 // Must be before compound literals. 360 PASS( "Generate Autogen Routines", Validate::autogenerateRoutines( transUnit ) ); 340 361 341 362 PASS( "Implement Mutex", Concurrency::implementMutex( transUnit ) ); … … 409 430 translationUnit = convert( move( transUnit ) ); 410 431 } else { 432 PASS( "Validate-D", SymTab::validate_D( translationUnit ) ); 411 433 PASS( "Validate-E", SymTab::validate_E( translationUnit ) ); 412 434 PASS( "Validate-F", SymTab::validate_F( translationUnit ) );
Note:
See TracChangeset
for help on using the changeset viewer.