Changes in src/main.cc [62c6cfa:cf3da24]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r62c6cfa rcf3da24 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Apr 10 21:12:17202313 // Update Count : 68 212 // Last Modified On : Thu Sep 28 22:28:45 2023 13 // Update Count : 687 14 14 // 15 15 … … 46 46 #include "Common/utility.h" // for deleteAll, filter, printAll 47 47 #include "Concurrency/Actors.hpp" // for implementActors 48 #include "Concurrency/Corun.hpp" // for implementCorun 48 49 #include "Concurrency/Keywords.h" // for implementMutex, implement... 49 50 #include "Concurrency/Waitfor.h" // for generateWaitfor … … 62 63 #include "Parser/RunParser.hpp" // for buildList, dumpParseTree,... 63 64 #include "ResolvExpr/CandidatePrinter.hpp" // for printCandidates 65 #include "ResolvExpr/EraseWith.hpp" // for eraseWith 64 66 #include "ResolvExpr/Resolver.h" // for resolve 65 67 #include "SynTree/LinkageSpec.h" // for Spec, Cforall, Intrinsic … … 344 346 PASS( "Implement Concurrent Keywords", Concurrency::implementKeywords, transUnit ); 345 347 PASS( "Fix Unique Ids", Validate::fixUniqueIds, transUnit ); 348 PASS( "Implement Corun", Concurrency::implementCorun, transUnit ); 346 349 PASS( "Hoist Control Declarations", ControlStruct::hoistControlDecls, transUnit ); 347 350 … … 396 399 397 400 PASS( "Fix Init", InitTweak::fix, transUnit, buildingLibrary() ); 401 PASS( "Erase With", ResolvExpr::eraseWith, transUnit ); 398 402 399 403 // fix ObjectDecl - replaces ConstructorInit nodes … … 419 423 420 424 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 ); 421 428 422 429 translationUnit = convert( std::move( transUnit ) ); 423 424 DUMP( bboxp, translationUnit );425 PASS( "Box", GenPoly::box, translationUnit );426 427 PASS( "Link-Once", CodeGen::translateLinkOnce, translationUnit );428 430 429 431 // Code has been lowered to C, now we can start generation. … … 540 542 { "ascodegen", codegenp, true, "print AST as codegen rather than AST" }, 541 543 { "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" }, 544 546 { "pretty", prettycodegenp, true, "prettyprint for ascodegen flag" }, 545 547 { "rproto", resolvprotop, true, "resolver-proto instance" }, 546 548 { "rsteps", resolvep, true, "print resolver steps" }, 547 // codedumps549 // AST dumps 548 550 { "ast", astp, true, "print AST after parsing" }, 549 { "ex decl", exdeclp, true, "print AST after translating exception decls" },551 { "excpdecl", exdeclp, true, "print AST after translating exception decls" }, 550 552 { "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" }, 555 557 { "ctordtor", ctorinitp, true, "print AST after ctor/dtor are replaced" }, 556 558 { "tuple", tuplep, true, "print AST after tuple expansion" }, 557 { " astgen", genericsp, true, "print AST after instantiate generics" },558 { "b ox", 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" }, 560 562 }; 561 563 enum { printoptsSize = sizeof( printopts ) / sizeof( printopts[0] ) };
Note:
See TracChangeset
for help on using the changeset viewer.