diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-04-22 11:15:40 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-04-22 11:15:40 +0000 |
commit | 98eb6e3d41afa29e490d06b15de1213bf5a6947c (patch) | |
tree | 116aae3cebd4a17a3c6d770d0c4fa8d197beaa3c /llvm/lib/Support/Locale.cpp | |
parent | e7508c9fc78fc6cf83ddc2bb6061b173b8c000fd (diff) | |
download | bcm5719-llvm-98eb6e3d41afa29e490d06b15de1213bf5a6947c.tar.gz bcm5719-llvm-98eb6e3d41afa29e490d06b15de1213bf5a6947c.zip |
[OPENMP] Codegen for 'ordered' directive.
Add codegen for 'ordered' directive:
__kmpc_ordered(ident_t *, gtid);
<associated statement>;
__kmpc_end_ordered(ident_t *, gtid);
Also for 'for' directives with the dynamic scheduling and an 'ordered' clause added a call to '__kmpc_dispatch_fini_(4|8)[u]()' function after increment expression for loop control variable:
while(__kmpc_dispatch_next(&LB, &UB)) {
idx = LB;
while (idx <= UB) { BODY; ++idx;
__kmpc_dispatch_fini_(4|8)[u](); // For ordered loops only.
} // inner loop
}
Differential Revision: http://reviews.llvm.org/D9070
llvm-svn: 235496
Diffstat (limited to 'llvm/lib/Support/Locale.cpp')
0 files changed, 0 insertions, 0 deletions