public class Bcons
extends java.lang.Object
Constructor and Description |
---|
Bcons() |
Modifier and Type | Method and Description |
---|---|
static Block |
BasicBlock(BasicBlock bb)
creates SimpleBlock with BasicBlock bb.
|
static BlockList |
blockList(Block... blocks)
create block list by specified blocks
|
static Block |
BREAK()
create 'break' statement block
|
static Block |
buildBlock(Xobject v)
create block for Xobject
|
static FunctionBlock |
buildFunctionBlock(XobjectDef d)
create FuctionBlock for XobjectDef
|
static Block |
CASE(Xobject value)
create C case label block
|
static Block |
COMPOUND(BlockList b_list)
create compound statement (or statement list) block
|
static Block |
COMPOUND(BlockList b_list,
Xcode code)
create compound statement (or statement list, block statement) block
|
static Block |
Cond(Xobject x)
create SimpleBlock for condition
|
static Block |
CONTINUE()
create 'continue' statement block
|
static Block |
DEFAULT_LABEL()
create C default case label block
|
static Block |
DO(BlockList body,
BasicBlock cond)
create C 'do' statement block
|
static Block |
DO(BlockList body,
BasicBlock cond,
java.lang.String construct_name)
create C 'do' statement block
|
static Block |
DO(Block body,
Xobject cond)
create C 'do' statement block
|
static Block |
emptyBlock()
create empty block
|
static BlockList |
emptyBody()
create empty block list
|
static BlockList |
emptyBody(Xobject id_list,
Xobject decls)
create empty block list with specified ids and decls
|
static Block |
FcaseLabel(XobjList values,
BlockList body,
java.lang.String construct_name)
create Fortran case label block
|
static Block |
Fcycle()
create Fortran 'cycle' statement block
|
static Block |
Fdo_while(BasicBlock cond,
BlockList body)
create 'while' statement block
|
static Block |
Fdo_while(Xobject cond,
Block body)
create 'while' statement block
|
static Block |
Fdo(Xobject fdo_stmt)
create Fortran 'do' statement block from Xobject
|
static Block |
Fdo(Xobject var,
Xobject idx_range,
BlockList body,
java.lang.String construct_name)
create Fortran 'do' statement block
|
static Block |
FforAll(Xobject v)
create 'forall' statement block
|
static Block |
FOR(BasicBlock init,
BasicBlock cond,
BasicBlock iter,
BlockList body)
create 'for' statement block
|
static Block |
FOR(BasicBlock init,
BasicBlock cond,
BasicBlock iter,
BlockList body,
java.lang.String construct_name)
create 'for' statement block
|
static Block |
FOR(Xobject init,
Xobject cond,
Xobject iter,
Block body)
create 'for' statement block
|
static Block |
FOR(Xobject init,
Xobject cond,
Xobject iter,
Block body,
java.lang.String construct_name)
create 'for' statement block
|
static Block |
FORall(Xobject ind_var,
Xobject lb,
Xobject ub,
Xobject step,
Xcode checkOp,
BlockList body)
create 'for' statement block
|
static Block |
FselectCase(Xobject cond,
BlockList body,
java.lang.String construct_name)
create Fortran 'select case' statement block
|
static Block |
Fwhere(BasicBlock cond,
BlockList then_part,
BlockList else_part,
java.lang.String construct_name)
create Fortran 'where' statement block
|
static Block |
GOTO(Xobject label)
create 'goto' statement block
|
static Block |
GOTO(Xobject label,
Xobject value,
Xobject params)
create 'goto' statement block
|
static Block |
IF(BasicBlock cond,
BlockList then_part,
BlockList else_part)
create 'if' statement block
|
static Block |
IF(Xcode code,
BasicBlock cond,
BlockList then_part,
BlockList else_part,
java.lang.String construct_name)
create 'if' statement block
|
static Block |
IF(Xobject cond,
Block then_part,
Block else_part)
create if statement block
|
static Block |
IF(Xobject cond,
Xobject then_part,
Xobject else_part)
create 'if' statement block
|
static Block |
LABEL(Xobject label)
create statement label block
|
static Block |
PRAGMA(Xcode code,
java.lang.String pragma,
Xobject args,
BlockList body)
create 'pragma' statement block
|
static Block |
RETURN()
create 'return' statement block
|
static Block |
RETURN(BasicBlock ret)
create 'return' statement block
|
static Block |
RETURN(Xobject ret)
create 'return' statement block
|
static Block |
Statement(Xobject x)
create SimpleBlock for Statement x.
|
static Block |
SWITCH(BasicBlock cond,
BlockList body)
create 'switch' statement block
|
static Block |
SWITCH(Xobject cond,
Block body)
create 'switch' statement block
|
static Block |
WHILE(BasicBlock cond,
BlockList body)
create 'do while' statement block
|
static Block |
WHILE(Xcode code,
BasicBlock cond,
BlockList body,
java.lang.String constructName)
create 'while' statement block
|
static Block |
WHILE(Xobject cond,
Block body)
create 'do while' statement block
|
public static Block BasicBlock(BasicBlock bb)
public static Block emptyBlock()
public static BlockList emptyBody()
public static BlockList emptyBody(Xobject id_list, Xobject decls)
public static Block COMPOUND(BlockList b_list)
public static Block COMPOUND(BlockList b_list, Xcode code)
public static Block PRAGMA(Xcode code, java.lang.String pragma, Xobject args, BlockList body)
public static Block IF(Xcode code, BasicBlock cond, BlockList then_part, BlockList else_part, java.lang.String construct_name)
public static Block IF(BasicBlock cond, BlockList then_part, BlockList else_part)
public static Block IF(Xobject cond, Xobject then_part, Xobject else_part)
public static Block Fwhere(BasicBlock cond, BlockList then_part, BlockList else_part, java.lang.String construct_name)
public static Block FOR(BasicBlock init, BasicBlock cond, BasicBlock iter, BlockList body, java.lang.String construct_name)
public static Block FOR(BasicBlock init, BasicBlock cond, BasicBlock iter, BlockList body)
public static Block FOR(Xobject init, Xobject cond, Xobject iter, Block body, java.lang.String construct_name)
public static Block FOR(Xobject init, Xobject cond, Xobject iter, Block body)
public static Block FORall(Xobject ind_var, Xobject lb, Xobject ub, Xobject step, Xcode checkOp, BlockList body)
public static Block Fdo(Xobject var, Xobject idx_range, BlockList body, java.lang.String construct_name)
public static Block WHILE(Xcode code, BasicBlock cond, BlockList body, java.lang.String constructName)
public static Block WHILE(BasicBlock cond, BlockList body)
public static Block Fdo_while(BasicBlock cond, BlockList body)
public static Block DO(BlockList body, BasicBlock cond, java.lang.String construct_name)
public static Block DO(BlockList body, BasicBlock cond)
public static Block SWITCH(BasicBlock cond, BlockList body)
public static Block FselectCase(Xobject cond, BlockList body, java.lang.String construct_name)
public static Block BREAK()
public static Block CONTINUE()
public static Block Fcycle()
public static Block GOTO(Xobject label, Xobject value, Xobject params)
public static Block FcaseLabel(XobjList values, BlockList body, java.lang.String construct_name)
public static Block DEFAULT_LABEL()
public static Block RETURN()
public static Block RETURN(BasicBlock ret)
public static FunctionBlock buildFunctionBlock(XobjectDef d)