public class LoopInterchange extends ClawTransformation
_claw| Constructor and Description |
|---|
LoopInterchange(ClawPragma directive)
Constructs a new LoopInterchange triggered from a specific pragma.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
analyze(XcodeProgram xcodeml,
Translator translator)
Loop fusion analysis:
- Find the different do statement that will be reordered.
|
boolean |
canBeTransformedWith(XcodeProgram xcodeml,
Transformation transformation)
Check whether the current transformation can be transformed together with
the given transformation.
|
void |
transform(XcodeProgram xcodeml,
Translator translator,
Transformation transformation)
Apply the transformation.
|
getLanguageInfo, removePragmaabortOnFailedAnalysis, getDirective, getStartLine, isTransformed, setStartLine, transformedpublic LoopInterchange(ClawPragma directive)
directive - The directive that triggered the loop interchange
transformation.public void transform(XcodeProgram xcodeml, Translator translator, Transformation transformation) throws IllegalTransformationException
transform in class Transformationxcodeml - The XcodeML on which the transformations are applied.translator - The translator used to applied the transformations.transformation - Only for dependent transformation. The other
transformation part of the transformation.IllegalTransformationException - if the transformation cannot be
applied.public boolean analyze(XcodeProgram xcodeml, Translator translator)
analyze in class Transformationxcodeml - The XcodeML on which the transformations are applied.translator - The translator used to applied the transformations.public boolean canBeTransformedWith(XcodeProgram xcodeml, Transformation transformation)
TransformationcanBeTransformedWith in class Transformationxcodeml - The XcodeML on which the transformations are applied.transformation - The other transformation part of the dependent transformation.Transformation.canBeTransformedWith(XcodeProgram, Transformation)