public class ReductionTransform extends TransformPass
Reduction. The recognition algorithm is
lenient enough to allow arbitrary types of expressions in the reduction
items, but appropriate code generation is required to produce a code that is
accepted by the backend (OpenMP) compiler. The transformation assumes that
the loop-parallelization pass does not allow nested parallelism.
The command-line option -reduction=N affects the behavior of this
transformation as follows:
| Constructor and Description |
|---|
ReductionTransform(Program program)
Constructs a new reduction transformation pass.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPassName()
Returns the pass name.
|
void |
start()
Starts the transformation.
|
runpublic ReductionTransform(Program program)
program - the input program.public void start()
start in class TransformPasspublic java.lang.String getPassName()
getPassName in class TransformPass