public class CforBlock extends CondBlock implements ForBlock
BlockCounter
id
Constructor and Description |
---|
CforBlock(BasicBlock init,
BasicBlock cond,
BasicBlock iter,
BlockList body,
java.lang.String construct_name) |
CforBlock(CforBlock forBlock) |
Modifier and Type | Method and Description |
---|---|
void |
Canonicalize()
canonicalize loop expressions
|
Block |
copy()
copy this block
|
Xcode |
getCheckOpcode()
get opcode of condition expression
|
Xobject |
getInductionVar()
get induction variable
|
BasicBlock |
getInitBBlock()
get loop initialization expression block.
|
BasicBlock |
getIterBBlock()
get loop iteration expression block.
|
Xobject |
getLoopVar()
Deprecated.
|
Xobject |
getLowerBound()
get lower bound
|
Xobject |
getMinUpperBound() |
Xobject |
getStep()
get step
|
Xobject |
getUpperBound()
get upper bound
|
boolean |
isCanonical()
whether or not canonicalized
|
void |
setInitBlock(BasicBlock s) |
void |
setIterBlock(BasicBlock s) |
void |
setLowerBound(Xobject x)
set lower bound
|
void |
setStep(Xobject x)
set step
|
void |
setUpperBound(Xobject x)
set upper bound
|
Xobject |
toXobject()
convert to Xobject
|
void |
visitBasicBlock(BasicBlockVisitor v)
apply BasicBlockVisitor v
|
getBody, getCondBBlock, setBody, setCondBBlock, toString
add, add, add, findCommonIdent, findParentBlockStmt, findVarIdent, findVarIdent, findVarIdentBlock, findVarIdentBlock, findXMPobject, getBasicBlock, getConstructNameObj, getElseBody, getInfoExpr, getLabel, getLineNo, getNext, getParent, getParentBlock, getPrev, getThenBody, getXMPobject, getXMPsymbolTable, insert, insert, insert, numberOfBasicBlock, numberOfBlock, Opcode, remove, removeVarIdent, replace, setElseBody, setInitBBlock, setIterBBlock, setLabel, setLineNo, setParent, setThenBody, visitBody
getProp, getProperties, Id, remProp, remProperties, setId, setProp, setProperties
public CforBlock(BasicBlock init, BasicBlock cond, BasicBlock iter, BlockList body, java.lang.String construct_name)
public CforBlock(CforBlock forBlock)
public BasicBlock getInitBBlock()
Block
getInitBBlock
in interface ForBlock
getInitBBlock
in class Block
public BasicBlock getIterBBlock()
Block
getIterBBlock
in class Block
public void setInitBlock(BasicBlock s)
public void setIterBlock(BasicBlock s)
public void visitBasicBlock(BasicBlockVisitor v)
Block
visitBasicBlock
in class Block
public void Canonicalize()
ForBlock
Canonicalize
in interface ForBlock
public boolean isCanonical()
ForBlock
isCanonical
in interface ForBlock
public Xobject getInductionVar()
ForBlock
getInductionVar
in interface ForBlock
@Deprecated public Xobject getLoopVar()
public Xobject getLowerBound()
ForBlock
getLowerBound
in interface ForBlock
public Xobject getUpperBound()
ForBlock
getUpperBound
in interface ForBlock
public Xobject getMinUpperBound()
public Xcode getCheckOpcode()
ForBlock
getCheckOpcode
in interface ForBlock
public void setLowerBound(Xobject x)
ForBlock
setLowerBound
in interface ForBlock
public void setUpperBound(Xobject x)
ForBlock
setUpperBound
in interface ForBlock