Changes between Version 43 and Version 44 of Next-GenOpenMPTransformation


Ignore:
Timestamp:
10/31/19 10:57:46 (7 years ago)
Author:
wuwenhao
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Next-GenOpenMPTransformation

    v43 v44  
    8282* `master` ([https://vsl.cis.udel.edu/trac/civl/wiki/Next-GenOpenMPTransformation#Translatingmaster detail])
    8383
    84 * `critical` . . . . . . . . . . . . . . . . [Unsupported]
     84* `critical` ([https://vsl.cis.udel.edu/trac/civl/wiki/Next-GenOpenMPTransformation#Translatingcritical detail])
    8585 * `[name]`
    8686
     
    614614
    615615{{{
    616 #pragma omp critical(a)
    617 S
     616// critical block with unspecified name
     617#pragma omp critical
     618  BLOCKA
     619
     620// critical block with specified name
     621#pragma omp critical(x)
     622  BLOCKX
    618623}}}
    619624
     
    622627{{{
    623628...
    624 _Bool _critical_a = $false;
    625 .
    626 .
    627 .
    628 $when (!_critical_a) _critical_a=$true;
    629 translate(S);
    630 _critical_a=$false;
     629_Bool _critical_ = $false;
     630_Bool _critical_x = $false;
     631
     632...
     633
     634// critical block with unspecified name
     635$when (!_critical_) _critical_=$true;
     636  translate(BLOCKA)
     637  _critical_=$false;
     638
     639// critical block with specified name
     640$when (!_critical_x) _critical_x=$true;
     641  translate(BLOCKX);
     642  _critical_x=$false;
    631643}}}
    632644