Changeset 8c91088
- Timestamp:
- Oct 6, 2022, 4:00:41 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- c8837e5
- Parents:
- 7fffb1b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r7fffb1b r8c91088 66 66 }; 67 67 68 /// Adds layout-generation functions to polymorphic types 68 /// Adds layout-generation functions to polymorphic types. 69 69 class LayoutFunctionBuilder final : public WithDeclsToAdd, public WithVisitorRef<LayoutFunctionBuilder>, public WithShortCircuiting { 70 unsigned int functionNesting = 0; // current level of nested functions 70 // Current level of nested functions: 71 unsigned int functionNesting = 0; 71 72 public: 72 73 void previsit( FunctionDecl *functionDecl ); … … 75 76 }; 76 77 77 /// Replaces polymorphic return types with out-parameters, replaces calls to polymorphic functions with adapter calls as needed, and adds appropriate type variables to the function call 78 /// Replaces polymorphic return types with out-parameters, 79 /// replaces calls to polymorphic functions with adapter calls, 80 /// and adds appropriate type variables to the function call. 78 81 class Pass1 final : public BoxPass, public WithConstTypeSubstitution, public WithStmtsToAdd, public WithGuards, public WithVisitorRef<Pass1>, public WithShortCircuiting { 79 82 public: … … 146 149 }; 147 150 148 /// Replaces member and size/align/offsetof expressions on polymorphic generic types with calculated expressions.151 /// * Replaces member and size/align/offsetof expressions on polymorphic generic types with calculated expressions. 149 152 /// * Replaces member expressions for polymorphic types with calculated add-field-offset-and-dereference 150 153 /// * Calculates polymorphic offsetof expressions from offset array … … 199 202 }; 200 203 201 /// Replaces initialization of polymorphic values with alloca, declaration of dtype/ftype with appropriate void expression, sizeof expressions of polymorphic types with the proper variable, and strips fields from generic struct declarations. 204 /// Replaces initialization of polymorphic values with alloca, 205 /// declaration of dtype/ftype with appropriate void expression, 206 /// sizeof expressions of polymorphic types with the proper variable, 207 /// and strips fields from generic struct declarations. 202 208 struct Pass3 final : public BoxPass, public WithGuards { 203 209 template< typename DeclClass >
Note: See TracChangeset
for help on using the changeset viewer.