Please review CodeGen of the 'linear' clause for the 'omp simd' directive.
The linear variable is privatized (similar to 'private') and its value on current iteration is calculated, similar to the loop counter variables.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Mostly looks good.
include/clang/AST/OpenMPClause.h | ||
---|---|---|
1388 ↗ | (On Diff #22084) | Please add a comment describing the memory layout of the extra fields here. |
1421 ↗ | (On Diff #22084) | It looks like these 'clear' methods are called from one place; just inline them there. If you'd rather not, please at least avoid calling them 'clear', which has different implications for C++ data structures. |
lib/AST/Stmt.cpp | ||
1343 ↗ | (On Diff #22084) | Please document the contributors to these magic numbers. Also, if I'm understanding correctly, the calculation should be (4 * NumVars + 2) * sizeof(Expr*). |