Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r62c6cfa rcf3da24  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Apr 10 21:12:17 2023
    13 // Update Count     : 682
     12// Last Modified On : Thu Sep 28 22:28:45 2023
     13// Update Count     : 687
    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
    4849#include "Concurrency/Keywords.h"           // for implementMutex, implement...
    4950#include "Concurrency/Waitfor.h"            // for generateWaitfor
     
    6263#include "Parser/RunParser.hpp"             // for buildList, dumpParseTree,...
    6364#include "ResolvExpr/CandidatePrinter.hpp"  // for printCandidates
     65#include "ResolvExpr/EraseWith.hpp"         // for eraseWith
    6466#include "ResolvExpr/Resolver.h"            // for resolve
    6567#include "SynTree/LinkageSpec.h"            // for Spec, Cforall, Intrinsic
     
    344346                PASS( "Implement Concurrent Keywords", Concurrency::implementKeywords, transUnit );
    345347                PASS( "Fix Unique Ids", Validate::fixUniqueIds, transUnit );
     348                PASS( "Implement Corun", Concurrency::implementCorun, transUnit );
    346349                PASS( "Hoist Control Declarations", ControlStruct::hoistControlDecls, transUnit );
    347350
     
    396399
    397400                PASS( "Fix Init", InitTweak::fix, transUnit, buildingLibrary() );
     401                PASS( "Erase With", ResolvExpr::eraseWith, transUnit );
    398402
    399403                // fix ObjectDecl - replaces ConstructorInit nodes
     
    419423
    420424                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 );
    421428
    422429                translationUnit = convert( std::move( transUnit ) );
    423 
    424                 DUMP( bboxp, translationUnit );
    425                 PASS( "Box", GenPoly::box, translationUnit );
    426 
    427                 PASS( "Link-Once", CodeGen::translateLinkOnce, translationUnit );
    428430
    429431                // Code has been lowered to C, now we can start generation.
     
    540542        { "ascodegen", codegenp, true, "print AST as codegen rather than AST" },
    541543        { "asterr", errorp, true, "print AST on error" },
    542         { "declstats", declstatsp, true, "code property statistics" },
    543         { "parse", yydebug, true, "yacc (parsing) debug information" },
     544        { "declstats", declstatsp, true, "print code property statistics" },
     545        { "parse", yydebug, true, "print yacc (parsing) debug information" },
    544546        { "pretty", prettycodegenp, true, "prettyprint for ascodegen flag" },
    545547        { "rproto", resolvprotop, true, "resolver-proto instance" },
    546548        { "rsteps", resolvep, true, "print resolver steps" },
    547         // code dumps
     549        // AST dumps
    548550        { "ast", astp, true, "print AST after parsing" },
    549         { "exdecl", exdeclp, true, "print AST after translating exception decls" },
     551        { "excpdecl", exdeclp, true, "print AST after translating exception decls" },
    550552        { "symevt", symtabp, true, "print AST after symbol table events" },
    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" },
     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" },
    555557        { "ctordtor", ctorinitp, true, "print AST after ctor/dtor are replaced" },
    556558        { "tuple", tuplep, true, "print AST after tuple expansion" },
    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" },
     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" },
    560562};
    561563enum { printoptsSize = sizeof( printopts ) / sizeof( printopts[0] ) };
Note: See TracChangeset for help on using the changeset viewer.