Changeset 1d66a91
- Timestamp:
- Jul 17, 2023, 3:58:48 PM (16 months ago)
- Branches:
- master
- Children:
- bf55f32
- Parents:
- 66ac416
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Waituntil.cpp
r66ac416 r1d66a91 178 178 CompoundStmt * genStmtBlock( const WhenClause * clause, const ClauseData * data ); 179 179 Stmt * genElseClauseBranch( const WaitUntilStmt * stmt, string & runName, string & arrName, vector<ClauseData *> & clauseData ); 180 Stmt * genNoElseClauseBranch( const WaitUntilStmt * stmt, string & satName, string &runName, string & arrName, string & pCountName, vector<ClauseData *> & clauseData );180 Stmt * genNoElseClauseBranch( const WaitUntilStmt * stmt, string & runName, string & arrName, string & pCountName, vector<ClauseData *> & clauseData ); 181 181 void genClauseInits( const WaitUntilStmt * stmt, vector<ClauseData *> & clauseData, CompoundStmt * body, string & statusName, string & elseWhenName ); 182 182 Stmt * recursiveOrIfGen( const WaitUntilStmt * stmt, vector<ClauseData *> & data, vector<ClauseData*>::size_type idx, string & elseWhenName ); … … 625 625 CompoundStmt * GenerateWaitUntilCore::genStmtBlock( const WhenClause * clause, const ClauseData * data ) { 626 626 const CodeLocation & cLoc = clause->location; 627 // return new CompoundStmt( cLoc, // OLD628 // {629 // new ExprStmt( cLoc,630 // genSelectTraitCall( clause, data, "on_selected" )631 // ),632 // ast::deepCopy( clause->stmt )633 // }634 // );635 627 return new CompoundStmt( cLoc, 636 628 { … … 827 819 ); 828 820 } 829 // C_TODO remove unused param if change kept 830 Stmt * GenerateWaitUntilCore::genNoElseClauseBranch( const WaitUntilStmt * stmt, string & satName, string &runName, string & arrName, string & pCountName, vector<ClauseData *> & clauseData ) {821 822 Stmt * GenerateWaitUntilCore::genNoElseClauseBranch( const WaitUntilStmt * stmt, string & runName, string & arrName, string & pCountName, vector<ClauseData *> & clauseData ) { 831 823 CompoundStmt * whileBody = new CompoundStmt( stmt->location ); 832 824 const CodeLocation & loc = stmt->location; … … 843 835 844 836 whileBody->push_back( genStatusCheckFor( stmt, clauseData, runName ) ); 845 // whileBody->push_back( genStatusCheckFor( stmt, clauseData, satName ) ); // OLD846 837 847 838 return new CompoundStmt( loc, … … 849 840 new WhileDoStmt( loc, 850 841 genNotSatExpr( stmt, runName, arrName ), 851 // genNotSatExpr( stmt, satName, arrName ), // OLD852 842 whileBody, // body 853 843 {} // no inits 854 844 ) 855 // , // OLD856 // genStatusCheckFor( stmt, clauseData, runName ) // OLD857 845 } 858 846 ); … … 878 866 new ObjectDecl( cLoc, 879 867 currClause->targetName, 880 new ReferenceType( new TypeofType( ast::deepCopy( stmt->clauses.at(i)->target ) ) ), 868 new ReferenceType( 869 new TypeofType( new UntypedExpr( cLoc, 870 new NameExpr( cLoc, "__CFA_select_get_type" ), 871 { ast::deepCopy( stmt->clauses.at(i)->target ) } 872 )) 873 ), 881 874 new SingleInit( cLoc, ast::deepCopy( stmt->clauses.at(i)->target ) ) 882 875 ) … … 1290 1283 new NameExpr( stmt->else_cond->location, elseWhenName ), 1291 1284 genElseClauseBranch( stmt, runName, statusArrName, clauseData ), 1292 genNoElseClauseBranch( stmt, satName,runName, statusArrName, pCountName, clauseData )1285 genNoElseClauseBranch( stmt, runName, statusArrName, pCountName, clauseData ) 1293 1286 ) 1294 1287 ); 1295 1288 } else if ( !stmt->else_stmt ) { // normal gen 1296 tryBody->push_back( genNoElseClauseBranch( stmt, satName,runName, statusArrName, pCountName, clauseData ) );1289 tryBody->push_back( genNoElseClauseBranch( stmt, runName, statusArrName, pCountName, clauseData ) ); 1297 1290 } else { // generate just else 1298 1291 tryBody->push_back( genElseClauseBranch( stmt, runName, statusArrName, clauseData ) );
Note: See TracChangeset
for help on using the changeset viewer.