Ignore:
Timestamp:
Oct 25, 2023, 6:33:25 PM (10 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
bef4f1a
Parents:
d22bf87
Message:

Direct translation of code generation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/Generate.h

    rd22bf87 r8941b6b  
    2222class Declaration;
    2323
     24namespace ast {
     25        class TranslationUnit;
     26}
     27
    2428namespace CodeGen {
    2529        /// Generates code. doIntrinsics determines if intrinsic functions are printed, pretty formats output nicely (e.g., uses unmangled names, etc.), generateC is true when the output must consist only of C code (allows some assertions, etc.)
     
    2832        /// Generate code for a single node -- helpful for debugging in gdb
    2933        void generate( BaseSyntaxNode * node, std::ostream & os );
     34
     35/// Generates all code in transUnit and writing it to the os.
     36/// doIntrinsics: Should intrinsic functions be printed?
     37/// pretty: Format output nicely (e.g., uses unmangled names, etc.).
     38/// generateC: Make sure the output only consists of C code (allows some assertions, etc.)
     39/// lineMarks: Output line marks (processed line directives) in the output.
     40/// printExprTypes: Print the types of expressions in comments.
     41void generate( ast::TranslationUnit & transUnit, std::ostream &os, bool doIntrinsics,
     42                bool pretty, bool generateC, bool lineMarks, bool printExprTypes );
     43
    3044} // namespace CodeGen
    3145
Note: See TracChangeset for help on using the changeset viewer.