Changeset 9f5ecf5
- Timestamp:
- Sep 13, 2017, 2:14:55 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- e3e16bc
- Parents:
- 9dcb653
- Location:
- src
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
r9dcb653 r9f5ecf5 259 259 //============================================================================================= 260 260 void ConcurrentSueKeyword::postvisit(StructDecl * decl) { 261 if( decl-> get_name() == type_name && decl->has_body()) {261 if( decl->name == type_name && decl->body ) { 262 262 assert( !type_decl ); 263 263 type_decl = decl; … … 270 270 271 271 void ConcurrentSueKeyword::handle( StructDecl * decl ) { 272 if( ! decl-> has_body()) return;272 if( ! decl->body ) return; 273 273 274 274 if( !type_decl ) throw SemanticError( context_error, decl ); … … 418 418 void MutexKeyword::postvisit(StructDecl* decl) { 419 419 420 if( decl-> get_name()== "monitor_desc" ) {420 if( decl->name == "monitor_desc" ) { 421 421 assert( !monitor_decl ); 422 422 monitor_decl = decl; 423 423 } 424 else if( decl-> get_name()== "monitor_guard_t" ) {424 else if( decl->name == "monitor_guard_t" ) { 425 425 assert( !guard_decl ); 426 426 guard_decl = decl; … … 524 524 //============================================================================================= 525 525 void ThreadStarter::postvisit(FunctionDecl * decl) { 526 if( ! CodeGen::isConstructor(decl-> get_name()) ) return;526 if( ! CodeGen::isConstructor(decl->name) ) return; 527 527 528 528 DeclarationWithType * param = decl->get_functionType()->get_parameters().front(); -
src/Concurrency/module.mk
r9dcb653 r9f5ecf5 6 6 ## file "LICENCE" distributed with Cforall. 7 7 ## 8 ## module.mk -- 8 ## module.mk -- 9 9 ## 10 10 ## Author : Thierry Delisle 11 11 ## Created On : Mon Mar 13 12:48:40 2017 12 ## Last Modified By : 13 ## Last Modified On : 12 ## Last Modified By : 13 ## Last Modified On : 14 14 ## Update Count : 0 15 15 ############################################################################### 16 16 17 SRC += Concurrency/Keywords.cc 17 SRC += Concurrency/Keywords.cc \ 18 Concurrency/Waitfor.cc 18 19 -
src/Makefile.in
r9dcb653 r9f5ecf5 159 159 CodeTools/driver_cfa_cpp-TrackLoc.$(OBJEXT) \ 160 160 Concurrency/driver_cfa_cpp-Keywords.$(OBJEXT) \ 161 Concurrency/driver_cfa_cpp-Waitfor.$(OBJEXT) \ 161 162 Common/driver_cfa_cpp-SemanticError.$(OBJEXT) \ 162 163 Common/driver_cfa_cpp-UniqueName.$(OBJEXT) \ … … 490 491 CodeGen/OperatorTable.cc CodeTools/DeclStats.cc \ 491 492 CodeTools/TrackLoc.cc Concurrency/Keywords.cc \ 492 Co mmon/SemanticError.cc Common/UniqueName.cc \493 Common/ DebugMalloc.cc Common/Assert.cc \493 Concurrency/Waitfor.cc Common/SemanticError.cc \ 494 Common/UniqueName.cc Common/DebugMalloc.cc Common/Assert.cc \ 494 495 ControlStruct/LabelGenerator.cc ControlStruct/LabelFixer.cc \ 495 496 ControlStruct/MLEMutator.cc ControlStruct/Mutate.cc \ … … 663 664 @: > Concurrency/$(DEPDIR)/$(am__dirstamp) 664 665 Concurrency/driver_cfa_cpp-Keywords.$(OBJEXT): \ 666 Concurrency/$(am__dirstamp) \ 667 Concurrency/$(DEPDIR)/$(am__dirstamp) 668 Concurrency/driver_cfa_cpp-Waitfor.$(OBJEXT): \ 665 669 Concurrency/$(am__dirstamp) \ 666 670 Concurrency/$(DEPDIR)/$(am__dirstamp) … … 995 999 @AMDEP_TRUE@@am__include@ @am__quote@Common/$(DEPDIR)/driver_cfa_cpp-UniqueName.Po@am__quote@ 996 1000 @AMDEP_TRUE@@am__include@ @am__quote@Concurrency/$(DEPDIR)/driver_cfa_cpp-Keywords.Po@am__quote@ 1001 @AMDEP_TRUE@@am__include@ @am__quote@Concurrency/$(DEPDIR)/driver_cfa_cpp-Waitfor.Po@am__quote@ 997 1002 @AMDEP_TRUE@@am__include@ @am__quote@ControlStruct/$(DEPDIR)/driver_cfa_cpp-ExceptTranslate.Po@am__quote@ 998 1003 @AMDEP_TRUE@@am__include@ @am__quote@ControlStruct/$(DEPDIR)/driver_cfa_cpp-ForExprMutator.Po@am__quote@ … … 1263 1268 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o Concurrency/driver_cfa_cpp-Keywords.obj `if test -f 'Concurrency/Keywords.cc'; then $(CYGPATH_W) 'Concurrency/Keywords.cc'; else $(CYGPATH_W) '$(srcdir)/Concurrency/Keywords.cc'; fi` 1264 1269 1270 Concurrency/driver_cfa_cpp-Waitfor.o: Concurrency/Waitfor.cc 1271 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT Concurrency/driver_cfa_cpp-Waitfor.o -MD -MP -MF Concurrency/$(DEPDIR)/driver_cfa_cpp-Waitfor.Tpo -c -o Concurrency/driver_cfa_cpp-Waitfor.o `test -f 'Concurrency/Waitfor.cc' || echo '$(srcdir)/'`Concurrency/Waitfor.cc 1272 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) Concurrency/$(DEPDIR)/driver_cfa_cpp-Waitfor.Tpo Concurrency/$(DEPDIR)/driver_cfa_cpp-Waitfor.Po 1273 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Concurrency/Waitfor.cc' object='Concurrency/driver_cfa_cpp-Waitfor.o' libtool=no @AMDEPBACKSLASH@ 1274 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1275 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o Concurrency/driver_cfa_cpp-Waitfor.o `test -f 'Concurrency/Waitfor.cc' || echo '$(srcdir)/'`Concurrency/Waitfor.cc 1276 1277 Concurrency/driver_cfa_cpp-Waitfor.obj: Concurrency/Waitfor.cc 1278 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT Concurrency/driver_cfa_cpp-Waitfor.obj -MD -MP -MF Concurrency/$(DEPDIR)/driver_cfa_cpp-Waitfor.Tpo -c -o Concurrency/driver_cfa_cpp-Waitfor.obj `if test -f 'Concurrency/Waitfor.cc'; then $(CYGPATH_W) 'Concurrency/Waitfor.cc'; else $(CYGPATH_W) '$(srcdir)/Concurrency/Waitfor.cc'; fi` 1279 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) Concurrency/$(DEPDIR)/driver_cfa_cpp-Waitfor.Tpo Concurrency/$(DEPDIR)/driver_cfa_cpp-Waitfor.Po 1280 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='Concurrency/Waitfor.cc' object='Concurrency/driver_cfa_cpp-Waitfor.obj' libtool=no @AMDEPBACKSLASH@ 1281 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1282 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -c -o Concurrency/driver_cfa_cpp-Waitfor.obj `if test -f 'Concurrency/Waitfor.cc'; then $(CYGPATH_W) 'Concurrency/Waitfor.cc'; else $(CYGPATH_W) '$(srcdir)/Concurrency/Waitfor.cc'; fi` 1283 1265 1284 Common/driver_cfa_cpp-SemanticError.o: Common/SemanticError.cc 1266 1285 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(driver_cfa_cpp_CXXFLAGS) $(CXXFLAGS) -MT Common/driver_cfa_cpp-SemanticError.o -MD -MP -MF Common/$(DEPDIR)/driver_cfa_cpp-SemanticError.Tpo -c -o Common/driver_cfa_cpp-SemanticError.o `test -f 'Common/SemanticError.cc' || echo '$(srcdir)/'`Common/SemanticError.cc -
src/libcfa/concurrency/monitor
r9dcb653 r9f5ecf5 103 103 unsigned short count; 104 104 monitor_desc ** monitors; 105 bool is_dtor; 105 106 }; 106 107 -
src/main.cc
r9dcb653 r9f5ecf5 39 39 #include "Common/UnimplementedError.h" // for UnimplementedError 40 40 #include "Common/utility.h" // for deleteAll, filter, printAll 41 #include "Concurrency/Waitfor.h" // for generateWaitfor 41 42 #include "ControlStruct/ExceptTranslate.h" // for translateEHM 42 43 #include "ControlStruct/Mutate.h" // for mutate … … 304 305 ControlStruct::translateEHM( translationUnit ); 305 306 307 OPTPRINT( "generateWaitfor" ); 308 Concurrency::generateWaitFor( translationUnit ); 309 306 310 OPTPRINT( "convertSpecializations" ) // needs to happen before tuple types are expanded 307 311 GenPoly::convertSpecializations( translationUnit );
Note: See TracChangeset
for help on using the changeset viewer.