HomePhabricator

First patch with codegen of the 'omp for' directive. It implements

Description

First patch with codegen of the 'omp for' directive. It implements
the simplest case, which is used when no chunk_size is specified in
the schedule(static) or no 'schedule' clause is specified - the
iteration space is divided by the library into chunks that are
approximately equal in size, and at most one chunk is distributed
to each thread. In this case, we do not need an outer loop in each
thread - each thread requests once which iterations range it should
handle (using __kmpc_for_static_init runtime call) and then runs the
inner loop on this range.

Differential Revision: http://reviews.llvm.org/D5865

Details

Committed
amusmanDec 14 2014, 11:07 PM
Differential Revision
D5865: [OPENMP] Codegen for the 'omp for' with static schedule (non-chunked).
Parents
rL224232: Parse: Don't reorder tokens using ConsumeToken
Branches
Unknown
Tags
Unknown