Changes in / [11f95ee5:32b8144]
- Files:
-
- 3 deleted
- 17 edited
-
Jenkinsfile (modified) (3 diffs)
-
src/CodeGen/CodeGenerator.cc (modified) (2 diffs)
-
src/GenPoly/Box.cc (modified) (2 diffs)
-
src/InitTweak/FixInit.cc (modified) (2 diffs)
-
src/InitTweak/GenInit.cc (modified) (2 diffs)
-
src/Parser/DeclarationNode.cc (modified) (5 diffs)
-
src/Parser/ParseNode.h (modified) (2 diffs)
-
src/Parser/TypeData.cc (modified) (4 diffs)
-
src/Parser/TypeData.h (modified) (3 diffs)
-
src/Parser/core (deleted)
-
src/SymTab/Autogen.cc (modified) (3 diffs)
-
src/SymTab/Indexer.cc (modified) (2 diffs)
-
src/SynTree/Declaration.h (modified) (3 diffs)
-
src/SynTree/FunctionDecl.cc (modified) (3 diffs)
-
src/SynTree/Mutator.cc (modified) (2 diffs)
-
src/SynTree/Visitor.cc (modified) (2 diffs)
-
src/tests/.expect/KRfunctions.txt (deleted)
-
src/tests/KRfunctions.c (deleted)
-
src/tests/Makefile.am (modified) (2 diffs)
-
src/tests/Makefile.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r11f95ee5 r32b8144 87 87 status_prefix = 'Documentation' 88 88 89 // //We can't just write to a file outside our repo 90 // //Copy the file locally using ssh 91 // sh 'scp plg2.cs.uwaterloo.ca:/u/cforall/public_html/perf-history/concurrency.csv bench.csv' 92 93 // //Then append to the local file 94 // sh 'make -C src/benchmark csv-data >> bench.csv' 95 96 // //Then publish the file again 97 // sh 'scp bench.csv plg2.cs.uwaterloo.ca:/u/cforall/public_html/perf-history/concurrency.csv' 89 // sh 'make -C src/benchmark csv-data >> /u/cforall/public_html/perf-history/concurrency.csv' 98 90 } 99 91 … … 180 172 ]]) 181 173 182 bIsSandbox = env.BRANCH_NAME == "jenkins-sandbox"183 174 bIsFullBuild = isFullBuild == 'true' 184 175 architectureFlag = '' … … 233 224 234 225 //Send email with final results if this is not a full build 235 if( !bIsFullBuild && !bIsSandbox) {226 if( !bIsFullBuild ) { 236 227 echo 'Notifying users of result' 237 228 email(currentBuild.result, log_needed) -
src/CodeGen/CodeGenerator.cc
r11f95ee5 r32b8144 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 14:56:29201713 // Update Count : 41 812 // Last Modified On : Thu Feb 9 15:05:18 2017 13 // Update Count : 417 14 14 // 15 15 … … 141 141 } // if 142 142 output << genType( functionDecl->get_functionType(), mangleName( functionDecl ), pretty ); 143 144 // how to get this to the Functype? 145 std::list< Declaration * > olds = functionDecl->get_oldDecls(); 146 if ( ! olds.empty() ) { 147 output << " /* function has old declaration */"; 148 } // if 143 149 144 150 asmName( functionDecl ); -
src/GenPoly/Box.cc
r11f95ee5 r32b8144 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 14:57:16 201713 // Update Count : 29 712 // Last Modified On : Wed Jun 29 21:43:03 2016 13 // Update Count : 296 14 14 // 15 15 … … 263 263 DeclarationWithType *LayoutFunctionBuilder::mutate( FunctionDecl *functionDecl ) { 264 264 functionDecl->set_functionType( maybeMutate( functionDecl->get_functionType(), *this ) ); 265 mutateAll( functionDecl->get_oldDecls(), *this ); 265 266 ++functionNesting; 266 267 functionDecl->set_statements( maybeMutate( functionDecl->get_statements(), *this ) ); -
src/InitTweak/FixInit.cc
r11f95ee5 r32b8144 10 10 // Created On : Wed Jan 13 16:29:30 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Feb 16 14:58:43 201713 // Update Count : 3 512 // Last Modified On : Tue Jul 12 17:41:15 2016 13 // Update Count : 34 14 14 // 15 15 … … 839 839 void handleFuncDecl( FunctionDecl * funcDecl, Visitor & visitor ) { 840 840 maybeAccept( funcDecl->get_functionType(), visitor ); 841 acceptAll( funcDecl->get_oldDecls(), visitor ); 841 842 maybeAccept( funcDecl->get_statements(), visitor ); 842 843 } -
src/InitTweak/GenInit.cc
r11f95ee5 r32b8144 9 9 // Author : Rob Schluntz 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Thu Feb 16 14:57:53 201713 // Update Count : 16 711 // Last Modified By : Rob Schluntz 12 // Last Modified On : Fri May 13 11:37:48 2016 13 // Update Count : 166 14 14 // 15 15 … … 320 320 } 321 321 // parameters should not be constructed and destructed, so don't mutate FunctionType 322 mutateAll( functionDecl->get_oldDecls(), *this ); 322 323 functionDecl->set_statements( maybeMutate( functionDecl->get_statements(), *this ) ); 323 324 -
src/Parser/DeclarationNode.cc
r11f95ee5 r32b8144 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 13:06:50201713 // Update Count : 7 5312 // Last Modified On : Thu Feb 9 15:54:59 2017 13 // Update Count : 742 14 14 // 15 15 … … 913 913 SemanticError errors; 914 914 std::back_insert_iterator< std::list< Declaration * > > out( outputList ); 915 916 for ( const DeclarationNode * cur = firstNode; cur; cur = dynamic_cast< DeclarationNode * >( cur->get_next() ) ) { 915 const DeclarationNode * cur = firstNode; 916 917 while ( cur ) { 917 918 try { 918 919 if ( DeclarationNode * extr = cur->extractAggregate() ) { … … 935 936 errors.append( e ); 936 937 } // try 938 cur = dynamic_cast< DeclarationNode * >( cur->get_next() ); 937 939 } // while 938 940 … … 945 947 SemanticError errors; 946 948 std::back_insert_iterator< std::list< DeclarationWithType * > > out( outputList ); 947 948 for ( const DeclarationNode * cur = firstNode; cur; cur = dynamic_cast< DeclarationNode * >( cur->get_next() )) {949 const DeclarationNode * cur = firstNode; 950 while ( cur ) { 949 951 try { 950 952 Declaration * decl = cur->build(); … … 970 972 errors.append( e ); 971 973 } // try 972 } // for973 974 cur = dynamic_cast< DeclarationNode * >( cur->get_next() ); 975 } // while 974 976 if ( ! errors.isEmpty() ) { 975 977 throw errors; -
src/Parser/ParseNode.h
r11f95ee5 r32b8144 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 13:15:55201713 // Update Count : 6 6112 // Last Modified On : Thu Feb 9 14:45:28 2017 13 // Update Count : 658 14 14 // 15 15 … … 437 437 template< typename SynTreeType, typename NodeType > 438 438 void buildMoveList( const NodeType * firstNode, std::list< SynTreeType * > &outputList ) { 439 buildList( firstNode, outputList);439 buildList(firstNode, outputList); 440 440 delete firstNode; 441 441 } -
src/Parser/TypeData.cc
r11f95ee5 r32b8144 10 10 // Created On : Sat May 16 15:12:51 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 15:06:59201713 // Update Count : 4 5512 // Last Modified On : Fri Jan 27 15:28:56 2017 13 // Update Count : 428 14 14 // 15 15 … … 724 724 Declaration * buildDecl( const TypeData * td, const string &name, DeclarationNode::StorageClass sc, Expression * bitfieldWidth, bool isInline, bool isNoreturn, LinkageSpec::Spec linkage, ConstantExpr *asmName, Initializer * init, std::list< Attribute * > attributes ) { 725 725 if ( td->kind == TypeData::Function ) { 726 if ( td->function.idList ) {727 buildKRFunction( td->function );728 } // if729 730 726 FunctionDecl * decl; 731 727 if ( td->function.hasBody ) { … … 742 738 decl = new FunctionDecl( name, sc, linkage, buildFunction( td ), nullptr, isInline, isNoreturn, attributes ); 743 739 } // if 740 for ( DeclarationNode * cur = td->function.idList; cur != nullptr; cur = dynamic_cast< DeclarationNode* >( cur->get_next() ) ) { 741 if ( cur->name ) { 742 decl->get_oldIdents().insert( decl->get_oldIdents().end(), *cur->name ); 743 } // if 744 } // for 745 buildList( td->function.oldDeclList, decl->get_oldDecls() ); 744 746 return decl->set_asmName( asmName ); 745 747 } else if ( td->kind == TypeData::Aggregate ) { … … 776 778 } // buildFunction 777 779 778 void buildKRFunction( const TypeData::Function_t & function ) {779 assert( ! function.params );780 for ( DeclarationNode * decl = function.oldDeclList; decl != nullptr; decl = dynamic_cast< DeclarationNode* >( decl->get_next() ) ) {781 for ( DeclarationNode * param = function.idList; param != nullptr; param = dynamic_cast< DeclarationNode* >( param->get_next() ) ) {782 if ( *decl->name == *param->name ) {783 if ( param->type ) throw SemanticError( string( "duplicate declaration name " ) + *param->name );784 if ( ! decl->type ) throw SemanticError( string( "duplicate parameter name " ) + *param->name );785 param->type = decl->type;786 decl->type = nullptr;787 param->attributes.splice( param->attributes.end(), decl->attributes );788 } // if789 } // for790 if ( decl->type ) throw SemanticError( string( "missing name in parameter list " ) + *decl->name );791 } // for792 for ( DeclarationNode * param = function.idList; param != nullptr; param = dynamic_cast< DeclarationNode* >( param->get_next() ) ) {793 if ( ! param->type ) {794 param->type = new TypeData( TypeData::Basic );795 param->type->basictype = DeclarationNode::Int;796 } // if797 } // for798 799 function.params = function.idList;800 function.idList = nullptr;801 delete function.oldDeclList;802 function.oldDeclList = nullptr;803 } // buildKRFunction804 805 780 // Local Variables: // 806 781 // tab-width: 4 // -
src/Parser/TypeData.h
r11f95ee5 r32b8144 10 10 // Created On : Sat May 16 15:18:36 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 14:30:05201713 // Update Count : 1 5312 // Last Modified On : Thu Feb 2 17:02:09 2017 13 // Update Count : 146 14 14 // 15 15 … … 52 52 53 53 struct Function_t { 54 mutable DeclarationNode * params; // mutables modified in buildKRFunction55 mutable DeclarationNode * idList;// old-style56 mutableDeclarationNode * oldDeclList;54 DeclarationNode * params; 55 DeclarationNode * idList; // old-style 56 DeclarationNode * oldDeclList; 57 57 StatementNode * body; 58 58 bool hasBody; … … 113 113 Declaration * buildDecl( const TypeData *, const std::string &, DeclarationNode::StorageClass, Expression *, bool isInline, bool isNoreturn, LinkageSpec::Spec, ConstantExpr *asmName, Initializer * init = nullptr, std::list< class Attribute * > attributes = std::list< class Attribute * >() ); 114 114 FunctionType * buildFunction( const TypeData * ); 115 void buildKRFunction( const TypeData::Function_t & function );116 115 117 116 #endif // TYPEDATA_H -
src/SymTab/Autogen.cc
r11f95ee5 r32b8144 10 10 // Created On : Thu Mar 03 15:45:56 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 15:02:50 201713 // Update Count : 1 312 // Last Modified On : Thu Feb 2 18:04:40 2017 13 // Update Count : 11 14 14 // 15 15 … … 658 658 659 659 maybeAccept( functionDecl->get_functionType(), *this ); 660 acceptAll( functionDecl->get_oldDecls(), *this ); 660 661 functionNesting += 1; 661 662 maybeAccept( functionDecl->get_statements(), *this ); … … 751 752 DeclarationWithType * AutogenTupleRoutines::mutate( FunctionDecl *functionDecl ) { 752 753 functionDecl->set_functionType( maybeMutate( functionDecl->get_functionType(), *this ) ); 754 mutateAll( functionDecl->get_oldDecls(), *this ); 753 755 functionNesting += 1; 754 756 functionDecl->set_statements( maybeMutate( functionDecl->get_statements(), *this ) ); -
src/SymTab/Indexer.cc
r11f95ee5 r32b8144 10 10 // Created On : Sun May 17 21:37:33 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Feb 16 14:59:19 201713 // Update Count : 1 312 // Last Modified On : Tue Jul 12 17:47:47 2016 13 // Update Count : 12 14 14 // 15 15 … … 236 236 enterScope(); 237 237 maybeAccept( functionDecl->get_functionType(), *this ); 238 acceptAll( functionDecl->get_oldDecls(), *this ); 238 239 maybeAccept( functionDecl->get_statements(), *this ); 239 240 leaveScope(); -
src/SynTree/Declaration.h
r11f95ee5 r32b8144 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 14:53:35201713 // Update Count : 5 712 // Last Modified On : Thu Feb 9 14:27:08 2017 13 // Update Count : 56 14 14 // 15 15 … … 140 140 CompoundStmt *get_statements() const { return statements; } 141 141 void set_statements( CompoundStmt *newValue ) { statements = newValue; } 142 std::list< std::string >& get_oldIdents() { return oldIdents; } 143 std::list< Declaration* >& get_oldDecls() { return oldDecls; } 142 144 143 145 virtual FunctionDecl *clone() const { return new FunctionDecl( *this ); } … … 149 151 FunctionType *type; 150 152 CompoundStmt *statements; 153 std::list< std::string > oldIdents; 154 std::list< Declaration* > oldDecls; 151 155 }; 152 156 -
src/SynTree/FunctionDecl.cc
r11f95ee5 r32b8144 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 15:01:52 201713 // Update Count : 2 312 // Last Modified On : Sat Oct 1 23:06:32 2016 13 // Update Count : 21 14 14 // 15 15 … … 44 44 delete type; 45 45 delete statements; 46 deleteAll( oldDecls ); 46 47 } 47 48 … … 83 84 } // if 84 85 86 if ( ! oldIdents.empty() ) { 87 os << string( indent + 2, ' ' ) << "with parameter names" << endl; 88 for ( std::list< std::string >::const_iterator i = oldIdents.begin(); i != oldIdents.end(); ++i ) { 89 os << string( indent + 4, ' ' ) << *i << endl; 90 } // for 91 } // if 92 93 if ( ! oldDecls.empty() ) { 94 os << string( indent + 2, ' ' ) << "with parameter declarations" << endl; 95 printAll( oldDecls, os, indent + 4 ); 96 } // if 85 97 if ( statements ) { 86 98 os << string( indent + 2, ' ' ) << "with body " << endl; -
src/SynTree/Mutator.cc
r11f95ee5 r32b8144 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 15:02:23201713 // Update Count : 2 112 // Last Modified On : Thu Feb 9 14:22:56 2017 13 // Update Count : 20 14 14 // 15 15 … … 38 38 DeclarationWithType *Mutator::mutate( FunctionDecl *functionDecl ) { 39 39 functionDecl->set_functionType( maybeMutate( functionDecl->get_functionType(), *this ) ); 40 mutateAll( functionDecl->get_oldDecls(), *this ); 40 41 functionDecl->set_statements( maybeMutate( functionDecl->get_statements(), *this ) ); 41 42 return functionDecl; -
src/SynTree/Visitor.cc
r11f95ee5 r32b8144 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 16 15:01:25201713 // Update Count : 2 312 // Last Modified On : Thu Feb 9 14:19:22 2017 13 // Update Count : 22 14 14 // 15 15 … … 35 35 void Visitor::visit( FunctionDecl *functionDecl ) { 36 36 maybeAccept( functionDecl->get_functionType(), *this ); 37 acceptAll( functionDecl->get_oldDecls(), *this ); 37 38 maybeAccept( functionDecl->get_statements(), *this ); 38 39 } -
src/tests/Makefile.am
r11f95ee5 r32b8144 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Thu Feb 16 15:27:50201714 ## Update Count : 4 113 ## Last Modified On : Mon Feb 6 16:10:43 2017 14 ## Update Count : 40 15 15 ############################################################################### 16 16 … … 68 68 ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@} 69 69 70 KRfunctions : KRfunctions.c71 ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}72 73 70 memberCtors-ERR1: memberCtors.c 74 71 ${CC} ${CFLAGS} -DERR1 ${<} -o ${@} -
src/tests/Makefile.in
r11f95ee5 r32b8144 689 689 ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@} 690 690 691 KRfunctions : KRfunctions.c692 ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}693 694 691 memberCtors-ERR1: memberCtors.c 695 692 ${CC} ${CFLAGS} -DERR1 ${<} -o ${@}
Note:
See TracChangeset
for help on using the changeset viewer.