Changes in / [dfee306:85c4ef0]


Ignore:
Location:
src
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/FixNames.h

    rdfee306 r85c4ef0  
    2020
    2121namespace CodeGen {
    22         /// mangles object and function names
    2322        void fixNames( std::list< Declaration* > translationUnit );
    2423} // namespace CodeGen
  • src/CodeGen/Generate.h

    rdfee306 r85c4ef0  
    2323
    2424namespace CodeGen {
    25         /// Generates code
    2625        void generate( std::list< Declaration* > translationUnit, std::ostream &os, bool doIntrinsics );
    2726} // namespace CodeGen
  • src/ControlStruct/CaseRangeMutator.h

    rdfee306 r85c4ef0  
    2222
    2323namespace ControlStruct {
    24         /// expand case ranges and turn fallthru into a null statement
    2524        class CaseRangeMutator : public Mutator {
    2625          public:
  • src/ControlStruct/ChooseMutator.h

    rdfee306 r85c4ef0  
    2222
    2323namespace ControlStruct {
    24         /// transform choose statements into switch statements
    2524        class ChooseMutator : public Mutator {
    2625          public:
  • src/ControlStruct/LabelFixer.h

    rdfee306 r85c4ef0  
    2525
    2626namespace ControlStruct {
    27         /// normalizes label definitions and generates multi-level exit labels
    2827        class LabelFixer : public Visitor {
    2928                typedef Visitor Parent;
  • src/ControlStruct/Mutate.h

    rdfee306 r85c4ef0  
    2323
    2424namespace ControlStruct {
    25         /// Desugars Cforall control structures
    2625        void mutate( std::list< Declaration* > translationUnit );
    2726} // namespace ControlStruct
  • src/GenPoly/Box.cc

    rdfee306 r85c4ef0  
    204204                }
    205205
    206                 DeclarationWithType *Pass1::mutate( FunctionDecl *functionDecl ) {
     206                DeclarationWithType *
     207                Pass1::mutate( FunctionDecl *functionDecl ) {
    207208                        if ( functionDecl->get_statements() ) {
    208209                                TyVarMap oldtyVars = scopeTyVars;
  • src/GenPoly/Box.h

    rdfee306 r85c4ef0  
    2121
    2222namespace GenPoly {
    23         /// boxes polymorphic function calls
    2423        void box( std::list< Declaration* >& translationUnit );
    2524} // namespace GenPoly
  • src/GenPoly/CopyParams.h

    rdfee306 r85c4ef0  
    2020
    2121namespace GenPoly {
    22         /// Clones by-value parameters which have been passed by-reference for polymorphism
    2322        void copyParams( std::list< Declaration* > &translationUnit );
    2423} // namespace GenPoly
  • src/GenPoly/Lvalue.h

    rdfee306 r85c4ef0  
    2222
    2323namespace GenPoly {
    24         /// replaces return type of `lvalue T` with `T*`, along with appropriate address-of and dereference operators
    2524        void convertLvalue( std::list< Declaration* >& translationUnit );
    2625} // namespace GenPoly
  • src/GenPoly/Specialize.h

    rdfee306 r85c4ef0  
    2222
    2323namespace GenPoly {
    24         /// generates thunks where needed
    2524        void convertSpecializations( std::list< Declaration* >& translationUnit );
    2625} // namespace GenPoly
  • src/InitTweak/RemoveInit.h

    rdfee306 r85c4ef0  
    2525
    2626namespace InitTweak {
    27         /// Adds assignment statements for polymorphic type initializers
    2827        void tweak( std::list< Declaration * > translationUnit );
    2928
  • src/ResolvExpr/Resolver.h

    rdfee306 r85c4ef0  
    2121
    2222namespace ResolvExpr {
    23         /// Checks types and binds syntactic constructs to typed representations
    2423        void resolve( std::list< Declaration * > translationUnit );
    2524        Expression *resolveInVoidContext( Expression *expr, const SymTab::Indexer &indexer );
  • src/SymTab/FixFunction.h

    rdfee306 r85c4ef0  
    2020
    2121namespace SymTab {
    22         /// Replaces function and array types by equivalent pointer types.
    2322        class FixFunction : public Mutator {
    2423                typedef Mutator Parent;
  • src/SymTab/Validate.cc

    rdfee306 r85c4ef0  
    6060        class HoistStruct : public Visitor {
    6161          public:
    62                 /// Flattens nested struct types
    6362                static void hoistStruct( std::list< Declaration * > &translationUnit );
    6463 
     
    8584        };
    8685
    87         /// Replaces enum types by int, and function or array types in function parameter and return lists by appropriate pointers
    8886        class Pass1 : public Visitor {
    8987                typedef Visitor Parent;
     
    9189                virtual void visit( FunctionType *func );
    9290        };
    93 
    94         /// Associates forward declarations of aggregates with their definitions
     91 
    9592        class Pass2 : public Indexer {
    9693                typedef Indexer Parent;
     
    113110        };
    114111
    115         /// Replaces array and function types in forall lists by appropriate pointer type
    116112        class Pass3 : public Indexer {
    117113                typedef Indexer Parent;
     
    127123        class AddStructAssignment : public Visitor {
    128124          public:
    129                 /// Generates assignment operators for aggregate types as required
    130125                static void addStructAssignment( std::list< Declaration * > &translationUnit );
    131126
     
    449444        }
    450445
    451         /// Fix up assertions
    452446        void forallFixer( Type *func ) {
     447                // Fix up assertions
    453448                for ( std::list< TypeDecl * >::iterator type = func->get_forall().begin(); type != func->get_forall().end(); ++type ) {
    454449                        std::list< DeclarationWithType * > toBeDone, nextRound;
  • src/SymTab/Validate.h

    rdfee306 r85c4ef0  
    2323        class Indexer;
    2424
    25         /// Normalizes struct and function declarations
    2625        void validate( std::list< Declaration * > &translationUnit, bool doDebug = false );
    2726        void validateType( Type *type, const Indexer *indexer );
  • src/SynTree/TypeSubstitution.h

    rdfee306 r85c4ef0  
    157157}
    158158
    159 /// Instantiate each member of the context given the actual parameters specified, and store the
    160 /// instantiations for use by the indexer
     159// helper function
    161160template< typename FormalIterator, typename ActualIterator, typename MemberIterator, typename OutputIterator >
    162161void applySubstitution( FormalIterator formalBegin, FormalIterator formalEnd, ActualIterator actual, MemberIterator memberBegin, MemberIterator memberEnd, OutputIterator out ) {
     162        // Instantiate each member of the context given the actual parameters specified, and store the
     163        // instantiations for use by the indexer
     164
    163165        TypeSubstitution sub = TypeSubstitution( formalBegin, formalEnd, actual );
    164166        for ( std::list< Declaration* >::iterator i = memberBegin; i != memberEnd; ++i ) {
Note: See TracChangeset for help on using the changeset viewer.