public class LoopExtraction extends ClawTransformation
_claw| Constructor and Description |
|---|
LoopExtraction(ClawPragma directive)
Constructs a new LoopExtraction triggered from a specific pragma.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
analyze(XcodeProgram xcodeml,
Translator translator)
Check whether the transformation can be applied.
|
boolean |
canBeTransformedWith(XcodeProgram xcodeml,
Transformation other)
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 LoopExtraction(ClawPragma directive) throws IllegalDirectiveException
directive - The directive that triggered the loop extraction
transformation.IllegalDirectiveException - if something is wrong in the directive's
optionspublic 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 void transform(XcodeProgram xcodeml, Translator translator, Transformation transformation) throws java.lang.Exception
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.java.lang.Exceptionpublic boolean canBeTransformedWith(XcodeProgram xcodeml, Transformation other)
TransformationcanBeTransformedWith in class Transformationxcodeml - The XcodeML on which the transformations are applied.other - The other transformation part of the dependent transformation.Transformation.canBeTransformedWith(XcodeProgram, Transformation)