Openmp parallel iterator improvements (#9493)

* More flexibility in OpenMP pragma
* Use static to constrain to compile-time annotation string
* Update changelog with OpenMP change
This commit is contained in:
Mamy Ratsimbazafy 2018-10-25 18:09:35 +02:00 • committed by Andreas Rumpf
commit 5b97762787
4 changed files with 13 additions and 8 deletions

View file

@ -557,7 +557,7 @@ proc genParForStmt(p: BProc, t: PNode) =
initLocExpr(p, call.sons[1], rangeA)
initLocExpr(p, call.sons[2], rangeB)
lineF(p, cpsStmts, "#pragma omp parallel for $4$n" &
lineF(p, cpsStmts, "#pragma omp $4$n" &
"for ($1 = $2; $1 <= $3; ++$1)",
[forLoopVar.loc.rdLoc,
rangeA.rdLoc, rangeB.rdLoc,