public class NestedDoStatement
extends java.lang.Object
| Constructor and Description |
|---|
NestedDoStatement(java.util.List<DimensionDefinition> dimensions,
XcodeProgram xcodeml)
Constructs a group of nested do statements from a list of dimension
objects.
|
NestedDoStatement(Xnode outerDoStatement)
Constructs a group of nested do statements from the outer statement.
|
NestedDoStatement(Xnode outerDoStatement,
int nb)
Constructs a group of nested do statements from the outer statement with
maximum Nb do statements.
|
| Modifier and Type | Method and Description |
|---|---|
NestedDoStatement |
cloneNestedGroup()
Clone current nested group with all its elements.
|
int |
computeSwappingIndices(java.util.List<java.lang.String> newInductionVarOrder)
Compute the swapping indices for the new ordering.
|
Xnode |
get(int i)
Get statement at level i
|
java.util.List<java.lang.String> |
getInductionVariables()
Get all the induction variable in the nested do statement group.
|
Xnode |
getInnerStatement()
Get the inner do statements.
|
Xnode |
getOuterStatement()
Get the outer do statements.
|
int |
size()
Get the size of the group of nested do statements.
|
public NestedDoStatement(Xnode outerDoStatement)
outerDoStatement - Do statement on the outer level.public NestedDoStatement(Xnode outerDoStatement, int nb)
outerDoStatement - Do statement node to start the nested group.nb - Number of do statements. If nb ≤ 0 match all
possible nested do statement.public NestedDoStatement(java.util.List<DimensionDefinition> dimensions, XcodeProgram xcodeml)
dimensions - A list of dimension objects.xcodeml - The current XcodeML program unit in which the elements
will be created.public Xnode getOuterStatement()
public Xnode get(int i)
i - Level index starts at 0 for outer do statement.public java.util.List<java.lang.String> getInductionVariables()
public int computeSwappingIndices(java.util.List<java.lang.String> newInductionVarOrder)
newInductionVarOrder - List of induction variable in their new order.public Xnode getInnerStatement()
public int size()
public NestedDoStatement cloneNestedGroup()