aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2021-06-02 09:12:32 -0500
committerMichael Kruse <llvm-project@meinersbur.de>2021-06-02 16:59:35 -0500
commit07a6beb402150d25ec7c93a5747520ac2804731d (patch)
treeb6c95375805824d1a2af892b40053ba1e43f1066 /clang/lib/Frontend/CompilerInstance.cpp
parentb5dd421a3afa02907777fddf61073274e2a4aa9a (diff)
downloadllvm-07a6beb402150d25ec7c93a5747520ac2804731d.zip
llvm-07a6beb402150d25ec7c93a5747520ac2804731d.tar.gz
llvm-07a6beb402150d25ec7c93a5747520ac2804731d.tar.bz2
[Clang][OpenMP] Emit dependent PreInits before directive.
The PreInits of a loop transformation (atm moment only tile) include the computation of the trip count. The trip count is needed by any loop-associated directives that consumes the transformation-generated loop. Hence, we must ensure that the PreInits of consumed loop transformations are emitted with the consuming directive. This is done by addinging the inner loop transformation's PreInits to the outer loop-directive's PreInits. The outer loop-directive will consume the de-sugared AST such that the inner PreInits are not emitted twice. The PreInits of a loop transformation are still emitted directly if its generated loop(s) are not associated with another loop-associated directive. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D102180
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions