Changeset 39cf5cc for src/main.cpp


Ignore:
Timestamp:
Jul 3, 2024, 5:32:19 PM (2 weeks ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
f8f298c
Parents:
6d2b3dc (diff), 793eb2f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cpp

    r6d2b3dc r39cf5cc  
    320320                PASS( "Forall Pointer Decay", Validate::decayForallPointers, transUnit );
    321321                PASS( "Fix Qualified Types", Validate::fixQualifiedTypes, transUnit );
    322 
    323322                PASS( "Eliminate Typedef", Validate::eliminateTypedef, transUnit );
    324323                PASS( "Hoist Struct", Validate::hoistStruct, transUnit );
     
    326325                PASS( "Translate Enum Range Expression", ControlStruct::translateEnumRange, transUnit );
    327326                PASS( "Translate Dimensions", Validate::translateDimensionParameters, transUnit );
    328                 // Need to happen before fixing returns because implementEnumFunc has ReturnStmt
    329                
    330327                PASS( "Generate Enum Attributes Functions", Validate::implementEnumFunc, transUnit );
    331328                PASS( "Check Function Returns", Validate::checkReturnStatements, transUnit );
     
    337334
    338335                PASS( "Generate Autogen Routines", Validate::autogenerateRoutines, transUnit );
    339                
     336
    340337                PASS( "Implement Actors", Concurrency::implementActors, transUnit );
    341338                PASS( "Implement Virtual Destructors", Virtual::implementVirtDtors, transUnit );
     
    456453                return EXIT_FAILURE;
    457454        } // try
     455
     456        // This pseudo-pass is used to get more accurate heap statistics.
     457        NewPass("Clean-up");
     458        Stats::Time::StartBlock("Clean-Up");
     459        transUnit.global = ast::TranslationGlobal();
     460        transUnit.decls.clear();
     461        Stats::Time::StopBlock();
    458462
    459463        Stats::print();
Note: See TracChangeset for help on using the changeset viewer.