Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rcf3da24 r62c6cfa  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Sep 28 22:28:45 2023
    13 // Update Count     : 687
     12// Last Modified On : Mon Apr 10 21:12:17 2023
     13// Update Count     : 682
    1414//
    1515
     
    4646#include "Common/utility.h"                 // for deleteAll, filter, printAll
    4747#include "Concurrency/Actors.hpp"           // for implementActors
    48 #include "Concurrency/Corun.hpp"            // for implementCorun
    4948#include "Concurrency/Keywords.h"           // for implementMutex, implement...
    5049#include "Concurrency/Waitfor.h"            // for generateWaitfor
     
    6362#include "Parser/RunParser.hpp"             // for buildList, dumpParseTree,...
    6463#include "ResolvExpr/CandidatePrinter.hpp"  // for printCandidates
    65 #include "ResolvExpr/EraseWith.hpp"         // for eraseWith
    6664#include "ResolvExpr/Resolver.h"            // for resolve
    6765#include "SynTree/LinkageSpec.h"            // for Spec, Cforall, Intrinsic
     
    346344                PASS( "Implement Concurrent Keywords", Concurrency::implementKeywords, transUnit );
    347345                PASS( "Fix Unique Ids", Validate::fixUniqueIds, transUnit );
    348                 PASS( "Implement Corun", Concurrency::implementCorun, transUnit );
    349346                PASS( "Hoist Control Declarations", ControlStruct::hoistControlDecls, transUnit );
    350347
     
    399396
    400397                PASS( "Fix Init", InitTweak::fix, transUnit, buildingLibrary() );
    401                 PASS( "Erase With", ResolvExpr::eraseWith, transUnit );
    402398
    403399                // fix ObjectDecl - replaces ConstructorInit nodes
     
    423419
    424420                PASS( "Convert L-Value", GenPoly::convertLvalue, transUnit );
    425                 DUMP( bboxp, std::move( transUnit ) );
    426                 PASS( "Box", GenPoly::box, transUnit );
    427                 PASS( "Link-Once", CodeGen::translateLinkOnce, transUnit );
    428421
    429422                translationUnit = convert( std::move( transUnit ) );
     423
     424                DUMP( bboxp, translationUnit );
     425                PASS( "Box", GenPoly::box, translationUnit );
     426
     427                PASS( "Link-Once", CodeGen::translateLinkOnce, translationUnit );
    430428
    431429                // Code has been lowered to C, now we can start generation.
     
    542540        { "ascodegen", codegenp, true, "print AST as codegen rather than AST" },
    543541        { "asterr", errorp, true, "print AST on error" },
    544         { "declstats", declstatsp, true, "print code property statistics" },
    545         { "parse", yydebug, true, "print yacc (parsing) debug information" },
     542        { "declstats", declstatsp, true, "code property statistics" },
     543        { "parse", yydebug, true, "yacc (parsing) debug information" },
    546544        { "pretty", prettycodegenp, true, "prettyprint for ascodegen flag" },
    547545        { "rproto", resolvprotop, true, "resolver-proto instance" },
    548546        { "rsteps", resolvep, true, "print resolver steps" },
    549         // AST dumps
     547        // code dumps
    550548        { "ast", astp, true, "print AST after parsing" },
    551         { "excpdecl", exdeclp, true, "print AST after translating exception decls" },
     549        { "exdecl", exdeclp, true, "print AST after translating exception decls" },
    552550        { "symevt", symtabp, true, "print AST after symbol table events" },
    553         { "expralt", expraltp, true, "print AST after expressions alternatives" },
    554         { "valdecl", validp, true, "print AST after declaration validation pass" },
    555         { "bresolver", bresolvep, true, "print AST before resolver step" },
    556         { "expranly", exprp, true, "print AST after expression analysis" },
     551        { "altexpr", expraltp, true, "print alternatives for expressions" },
     552        { "astdecl", validp, true, "print AST after declaration validation pass" },
     553        { "resolver", bresolvep, true, "print AST before resolver step" },
     554        { "astexpr", exprp, true, "print AST after expression analysis" },
    557555        { "ctordtor", ctorinitp, true, "print AST after ctor/dtor are replaced" },
    558556        { "tuple", tuplep, true, "print AST after tuple expansion" },
    559         { "instgen", genericsp, true, "print AST after instantiate generics" },
    560         { "bbox", bboxp, true, "print AST before box pass" },
    561         { "bcodegen", bcodegenp, true, "print AST before code generation" },
     557        { "astgen", genericsp, true, "print AST after instantiate generics" },
     558        { "box", bboxp, true, "print AST before box step" },
     559        { "codegen", bcodegenp, true, "print AST before code generation" },
    562560};
    563561enum { printoptsSize = sizeof( printopts ) / sizeof( printopts[0] ) };
Note: See TracChangeset for help on using the changeset viewer.