Go to the first, previous, next, last section, table of contents.
A simple FOR loop corresponding to the for
structure in C and the
do
structure in FORTRAN can be constructed using the builder.
The builder's FOR()
function gets translated to a SUIF FOR
tree node.
for(int i=0; i<=10; i++) .... can be generated using builder by: block i(block::new_sym(cst_int, i)); block code(block::FOR(i, block(0), block(10), block(...)));
The fields of the builder FOR()
function are
bop_leq
(<=).
Go to the first, previous, next, last section, table of contents.