Changeset 39cf5cc


Ignore:
Timestamp:
Jul 3, 2024, 5:32:19 PM (3 months 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

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/ImplementEnumFunc.hpp

    r6d2b3dc r39cf5cc  
    22
    33namespace ast {
    4     class TranslationUnit;
     4        class TranslationUnit;
    55}
    66
    77namespace Validate {
    8     void implementEnumFunc( ast::TranslationUnit & translationUnit );
     8
     9/// Auto-Generation of enumeration functions.
     10/// Happens before fixReturnStatements because it inserts "unfixed" returns.
     11void implementEnumFunc( ast::TranslationUnit & translationUnit );
     12
    913}
  • 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.