public class Block extends PropObject implements IVarContainer
Modifier and Type | Field and Description |
---|---|
protected static int |
BlockCounter
the nubmer of gnerated block.
|
id
Constructor and Description |
---|
Block(Block b)
constructor to make a copy of block b
|
Block(Xcode code,
BasicBlock bblock) |
Block(Xcode code,
BasicBlock bblock,
java.lang.String constructName)
contructor for simple block whick contains a basic block
|
Modifier and Type | Method and Description |
---|---|
Block |
add(BasicBlock bb) |
Block |
add(Block s)
add Block s
|
Block |
add(Xobject s) |
Block |
copy()
copy this block
|
Ident |
findCommonIdent(java.lang.String name) |
Block |
findParentBlockStmt() |
Ident |
findVarIdent(java.lang.String name) |
Ident |
findVarIdent(java.lang.String name,
BlockList start_bl) |
CompoundBlock |
findVarIdentBlock(java.lang.String name) |
CompoundBlock |
findVarIdentBlock(java.lang.String name,
BlockList start_bl) |
XMPobject |
findXMPobject(java.lang.String name) |
BasicBlock |
getBasicBlock()
get the BasicBlock
|
BlockList |
getBody()
get the body
|
BasicBlock |
getCondBBlock()
get BasicBlock in cond part
|
XobjString |
getConstructNameObj()
get the construct name for Fortran
|
BlockList |
getElseBody()
get the BlockList of "else" part
|
Xobject |
getInfoExpr()
get optional information expression.
|
BasicBlock |
getInitBBlock()
get loop initialization expression block.
|
BasicBlock |
getIterBBlock()
get loop iteration expression block.
|
Xobject |
getLabel()
get label name.
|
LineNo |
getLineNo()
get the line number information
|
Block |
getNext()
get the next block of this block
|
BlockList |
getParent()
get the parent BlockList which this block belongs to.
|
Block |
getParentBlock()
get the parent Block with which this block belongs to.
|
Block |
getPrev()
get the previous block
|
BlockList |
getThenBody()
get the BlockList of "then" part
|
XMPobject |
getXMPobject(java.lang.String name) |
XMPsymbolTable |
getXMPsymbolTable() |
Block |
insert(BasicBlock bb) |
Block |
insert(Block s) |
Block |
insert(Xobject s) |
static int |
numberOfBasicBlock() |
static int |
numberOfBlock() |
Xcode |
Opcode()
get Opcode for this block
|
Block |
remove() |
java.lang.Boolean |
removeVarIdent(java.lang.String name) |
void |
replace(Block b) |
void |
setBody(BlockList s)
set the body
|
void |
setElseBody(BlockList s)
set the BlockList of "else" part
|
void |
setInitBBlock(BasicBlock s)
set loop initialization expression block.
|
void |
setIterBBlock(BasicBlock s)
set loop iteration expression block.
|
void |
setLabel(Xobject x)
set label name.
|
void |
setLineNo(LineNo ln)
set the line number information
|
void |
setParent(BlockList parent) |
void |
setThenBody(BlockList s)
set the BlockList of "then" part
|
java.lang.String |
toString()
convert to the printable string
|
Xobject |
toXobject()
convert to Xobject
|
void |
visitBasicBlock(BasicBlockVisitor v)
apply BasicBlockVisitor v
|
void |
visitBody(BasicBlockVisitor v)
apply BasicBlockVisitor for the body
|
getProp, getProperties, Id, remProp, remProperties, setId, setProp, setProperties
public Block(Xcode code, BasicBlock bblock, java.lang.String constructName)
public Block(Xcode code, BasicBlock bblock)
public Block(Block b)
public Block copy()
public Xcode Opcode()
public BasicBlock getBasicBlock()
public Block getNext()
public Block getPrev()
public BlockList getParent()
public void setParent(BlockList parent)
public Block getParentBlock()
public void setLineNo(LineNo ln)
public LineNo getLineNo()
public XobjString getConstructNameObj()
public java.lang.String toString()
toString
in class java.lang.Object
public void visitBasicBlock(BasicBlockVisitor v)
public void visitBody(BasicBlockVisitor v)
public Xobject toXobject()
public BlockList getBody()
public void setBody(BlockList s)
public BasicBlock getCondBBlock()
public BlockList getThenBody()
public BlockList getElseBody()
public void setThenBody(BlockList s)
public void setElseBody(BlockList s)
public BasicBlock getInitBBlock()
public void setInitBBlock(BasicBlock s)
public BasicBlock getIterBBlock()
public void setIterBBlock(BasicBlock s)
public Xobject getLabel()
public void setLabel(Xobject x)
public Xobject getInfoExpr()
public Block add(BasicBlock bb)
public Block insert(BasicBlock bb)
public void replace(Block b)
public Block remove()
public Ident findVarIdent(java.lang.String name)
findVarIdent
in interface IVarContainer
public CompoundBlock findVarIdentBlock(java.lang.String name)
public CompoundBlock findVarIdentBlock(java.lang.String name, BlockList start_bl)
public Block findParentBlockStmt()
public Ident findCommonIdent(java.lang.String name)
findCommonIdent
in interface IVarContainer
public java.lang.Boolean removeVarIdent(java.lang.String name)
public static final int numberOfBlock()
public static final int numberOfBasicBlock()
public XMPsymbolTable getXMPsymbolTable()
public XMPobject getXMPobject(java.lang.String name)
public XMPobject findXMPobject(java.lang.String name)