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:
parent
c844a9169c
commit
5b97762787
4 changed files with 13 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue