Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r33b7d49 r5f3ba11  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Fri Mar 11 10:39:00 2022
    13 // Update Count     : 671
     12// Last Modified On : Tue Nov 30 10:25:00 2021
     13// Update Count     : 659
    1414//
    1515
     
    5555#include "ControlStruct/ExceptTranslate.h"  // for translateEHM
    5656#include "ControlStruct/FixLabels.hpp"      // for fixLabels
    57 #include "ControlStruct/HoistControlDecls.hpp" //  hoistControlDecls
    5857#include "ControlStruct/Mutate.h"           // for mutate
    5958#include "GenPoly/Box.h"                    // for box
     
    7473#include "SynTree/Visitor.h"                // for acceptAll
    7574#include "Tuples/Tuples.h"                  // for expandMemberTuples, expan...
    76 #include "Validate/Autogen.hpp"             // for autogenerateRoutines
    7775#include "Validate/FindSpecialDecls.h"      // for findGlobalDecls
    78 #include "Validate/ForallPointerDecay.hpp"  // for decayForallPointers
    7976#include "Validate/CompoundLiteral.hpp"     // for handleCompoundLiterals
    8077#include "Validate/InitializerLength.hpp"   // for setLengthFromInitializer
    8178#include "Validate/LabelAddressFixer.hpp"   // for fixLabelAddresses
    8279#include "Virtual/ExpandCasts.h"            // for expandCasts
     80
    8381
    8482static void NewPass( const char * const name ) {
     
    328326                PASS( "Validate-B", SymTab::validate_B( translationUnit ) );
    329327                PASS( "Validate-C", SymTab::validate_C( translationUnit ) );
     328                PASS( "Validate-D", SymTab::validate_D( translationUnit ) );
    330329
    331330                CodeTools::fillLocations( translationUnit );
    332331
    333332                if( useNewAST ) {
    334                         CodeTools::fillLocations( translationUnit );
    335 
    336333                        if (Stats::Counters::enabled) {
    337334                                ast::pass_visitor_stats.avg = Stats::Counters::build<Stats::Counters::AverageCounter<double>>("Average Depth - New");
     
    341338
    342339                        forceFillCodeLocations( transUnit );
    343 
    344                         PASS( "Implement Concurrent Keywords", Concurrency::implementKeywords( transUnit ) );
    345 
    346                         // Must be after implement concurrent keywords; because uniqueIds
    347                         //   must be set on declaration before resolution.
    348                         // Must happen before autogen routines are added.
    349                         PASS( "Forall Pointer Decay", Validate::decayForallPointers( transUnit ) );
    350 
    351                         // Must happen before autogen routines are added.
    352                         PASS( "Hoist Control Declarations", ControlStruct::hoistControlDecls( transUnit ) );
    353 
    354                         // Must be after enum and pointer decay.
    355                         // Must be before compound literals.
    356                         PASS( "Generate Autogen Routines", Validate::autogenerateRoutines( transUnit ) );
    357340
    358341                        PASS( "Implement Mutex", Concurrency::implementMutex( transUnit ) );
     
    426409                        translationUnit = convert( move( transUnit ) );
    427410                } else {
    428                         PASS( "Validate-D", SymTab::validate_D( translationUnit ) );
    429411                        PASS( "Validate-E", SymTab::validate_E( translationUnit ) );
    430412                        PASS( "Validate-F", SymTab::validate_F( translationUnit ) );
     
    493475                        PASS( "Translate Tries" , ControlStruct::translateTries( translationUnit ) );
    494476                }
     477
     478               
    495479
    496480                PASS( "Gen Waitfor" , Concurrency::generateWaitFor( translationUnit ) );
Note: See TracChangeset for help on using the changeset viewer.