2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml">
5 <title>B::Bblock - Walk basic blocks
</title>
6 <meta http-equiv=
"content-type" content=
"text/html; charset=utf-8" />
7 <link rev=
"made" href=
"mailto:" />
10 <body style=
"background-color: white">
11 <table border=
"0" width=
"100%" cellspacing=
"0" cellpadding=
"3">
12 <tr><td class=
"block" style=
"background-color: #cccccc" valign=
"middle">
13 <big><strong><span class=
"block"> B::Bblock - Walk basic blocks
</span></strong></big>
17 <p><a name=
"__index__"></a></p>
22 <li><a href=
"#name">NAME
</a></li>
23 <li><a href=
"#synopsis">SYNOPSIS
</a></li>
24 <li><a href=
"#description">DESCRIPTION
</a></li>
27 <li><a href=
"#functions">Functions
</a></li>
30 <li><a href=
"#author">AUTHOR
</a></li>
37 <h1><a name=
"name">NAME
</a></h1>
38 <p>B::Bblock - Walk basic blocks
</p>
42 <h1><a name=
"synopsis">SYNOPSIS
</a></h1>
45 perl -MO=Bblock[,OPTIONS] foo.pl
</pre>
48 use B::Bblock qw(find_leaders);
49 my $leaders = find_leaders($root_op, $start_op);
</pre>
53 <h1><a name=
"description">DESCRIPTION
</a></h1>
54 <p>This module is used by the B::CC back end. It walks ``basic blocks''.
55 A basic block is a series of operations which is known to execute from
56 start to finish, with no possibility of branching or halting.
</p>
57 <p>It can be used either stand alone or from inside another program.
</p>
60 <h2><a name=
"functions">Functions
</a></h2>
62 <dt><strong><a name=
"item_find_leaders"><strong>find_leaders
</strong></a></strong>
66 my $leaders = find_leaders($root_op, $start_op);
</pre>
69 <p>Given the root of the op tree and an op from which to start
70 processing, it will return a hash ref representing all the ops which
73 <p>The values of %$leaders are the op objects themselves. Keys are $$op
79 <h1><a name=
"author">AUTHOR
</a></h1>
80 <p>Malcolm Beattie,
<code>mbeattie@sable.ox.ac.uk
</code></p>
81 <table border=
"0" width=
"100%" cellspacing=
"0" cellpadding=
"3">
82 <tr><td class=
"block" style=
"background-color: #cccccc" valign=
"middle">
83 <big><strong><span class=
"block"> B::Bblock - Walk basic blocks
</span></strong></big>