Changeset 5c56a22


Ignore:
Timestamp:
Mar 20, 2026, 8:22:37 AM (27 hours ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
2c2e865
Parents:
742fa15
Message:

harmonize AST dump and flag names, and the order the passes are called

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/CompilationState.cpp

    r742fa15 r5c56a22  
    1010// Created On       : Mon Ju1 30 10:47:01 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Apr 10 19:12:50 2023
    13 // Update Count     : 6
     12// Last Modified On : Sat Mar  7 15:43:02 2026
     13// Update Count     : 11
    1414//
    1515
     
    1818int
    1919        astp = false,
    20         bresolvep = false,
     20        bresolverp = false,
    2121        bboxp = false,
    2222        bcodegenp = false,
    23         ctorinitp = false,
     23        ctordtorp = false,
    2424        declstatsp = false,
    25         exdeclp = false,
    26         exprp = false,
     25        excpdeclp = false,
    2726        expraltp = false,
    28         genericsp = false,
     27        expranlp = false,
     28        instgenp = false,
    2929        invariant = false,
    3030        libcfap = false,
     
    3939        treep = false,
    4040        tuplep = false,
    41         validp = false,
     41        valideclp = false,
    4242        errorp = false,
    4343        codegenp = false,
  • src/CompilationState.hpp

    r742fa15 r5c56a22  
    1010// Created On       : Mon Ju1 30 10:47:01 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Apr 10 19:12:53 2023
    13 // Update Count     : 6
     12// Last Modified On : Sat Mar  7 15:39:59 2026
     13// Update Count     : 14
    1414//
    1515
     
    1717extern int
    1818        astp,
    19         bresolvep,
     19        bresolverp,
    2020        bboxp,
    2121        bcodegenp,
    22         ctorinitp,
     22        ctordtorp,
    2323        declstatsp,
    24         exdeclp,
    25         exprp,
     24        excpdeclp,
    2625        expraltp,
    27         genericsp,
     26        expranlp,
     27        instgenp,
    2828        invariant,
    2929        libcfap,
     
    3838        treep,
    3939        tuplep,
    40         validp,
     40        valideclp,
    4141        errorp,
    4242        codegenp,
  • src/main.cpp

    r742fa15 r5c56a22  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Jun 23 16:38:09 2024
    13 // Update Count     : 691
     12// Last Modified On : Fri Mar 20 08:10:38 2026
     13// Update Count     : 710
    1414//
    1515
     
    202202
    203203                PASS( "Translate Exception Declarations", ControlStruct::translateExcept, transUnit );
    204                 DUMP( exdeclp, transUnit );
     204                DUMP( excpdeclp, transUnit );
    205205                PASS( "Verify Ctor, Dtor & Assign", Validate::verifyCtorDtorAssign, transUnit );
    206206                PASS( "Replace Typedefs", Validate::replaceTypedef, transUnit );
     
    242242                } // if
    243243
    244                 if ( expraltp ) {
     244                if ( expranlp ) {
    245245                        ResolvExpr::printCandidates( transUnit );
    246246                        return EXIT_SUCCESS;
    247247                } // if
    248248
    249                 DUMP( validp, transUnit );
     249                DUMP( valideclp, transUnit );
    250250
    251251                PASS( "Translate Throws", ControlStruct::translateThrows, transUnit );
     
    265265                } // if
    266266
    267                 DUMP( bresolvep, transUnit );
     267                DUMP( bresolverp, transUnit );
    268268
    269269                if ( resolvprotop ) {
     
    273273
    274274                PASS( "Resolve", ResolvExpr::resolve, transUnit );
    275                 DUMP( exprp, transUnit );
    276                 PASS( "Fix Init", InitTweak::fix, transUnit, buildingLibrary() ); // Here
     275                DUMP( expranlp, transUnit );
     276                PASS( "Fix Init", InitTweak::fix, transUnit, buildingLibrary() );
    277277                PASS( "Erase With", ResolvExpr::eraseWith, transUnit );
    278278
    279279                // fix ObjectDecl - replaces ConstructorInit nodes
    280                 DUMP( ctorinitp, transUnit );
     280                DUMP( ctordtorp, transUnit );
    281281
    282282                // Currently not working due to unresolved issues with UniqueExpr
     
    297297
    298298                PASS( "Instantiate Generics", GenPoly::instantiateGeneric, transUnit );
    299                 DUMP( genericsp, transUnit );
     299                DUMP( instgenp, transUnit );
    300300
    301301                PASS( "Convert L-Value", GenPoly::convertLvalue, transUnit );
     
    422422        // AST dumps
    423423        { "ast", astp, true, "print AST after parsing" },
    424         { "excpdecl", exdeclp, true, "print AST after translating exception decls" },
    425         { "symevt", symtabp, true, "print AST after symbol table events" },
    426         { "expralt", expraltp, true, "print AST after expressions alternatives" },
    427         { "valdecl", validp, true, "print AST after declaration validation pass" },
    428         { "bresolver", bresolvep, true, "print AST before resolver step" },
    429         { "expranly", exprp, true, "print AST after expression analysis" },
    430         { "ctordtor", ctorinitp, true, "print AST after ctor/dtor are replaced" },
     424        { "excpdecl", excpdeclp, true, "print AST after translating exception decls" },
     425        // These flags are currently disconnected from whatever they did in the past.
     426        // { "symevt", symtabp, true, "print AST after symbol table events" },
     427        // { "expralt", expraltp, true, "print AST after expressions alternatives" },
     428        { "validecl", valideclp, true, "print AST after declaration validation pass" },
     429        { "bresolver", bresolverp, true, "print AST before resolver step" },
     430        { "expranl", expranlp, true, "print AST after expression analysis" },
     431        { "ctordtor", ctordtorp, true, "print AST after ctor/dtor are replaced" },
    431432        { "tuple", tuplep, true, "print AST after tuple expansion" },
    432         { "instgen", genericsp, true, "print AST after instantiate generics" },
     433        { "instgen", instgenp, true, "print AST after instantiate generics" },
    433434        { "bbox", bboxp, true, "print AST before box pass" },
    434         { "bcodegen", bcodegenp, true, "print AST before code generation" }
     435        { "bcodegen", bcodegenp, true, "print AST before code generation" },
    435436};
    436437enum { printoptsSize = sizeof( printopts ) / sizeof( printopts[0] ) };
Note: See TracChangeset for help on using the changeset viewer.