Install Perl 5.8.8
[msysgit.git] / mingw / html / ext / B / B / Bblock.html
blob0b68bc8e07b83a2608e2353f43ce89a429fc7ca3
1 <?xml version="1.0" ?>
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">
4 <head>
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:" />
8 </head>
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">&nbsp;B::Bblock - Walk basic blocks</span></strong></big>
14 </td></tr>
15 </table>
17 <p><a name="__index__"></a></p>
18 <!-- INDEX BEGIN -->
20 <ul>
22 <li><a href="#name">NAME</a></li>
23 <li><a href="#synopsis">SYNOPSIS</a></li>
24 <li><a href="#description">DESCRIPTION</a></li>
25 <ul>
27 <li><a href="#functions">Functions</a></li>
28 </ul>
30 <li><a href="#author">AUTHOR</a></li>
31 </ul>
32 <!-- INDEX END -->
34 <hr />
35 <p>
36 </p>
37 <h1><a name="name">NAME</a></h1>
38 <p>B::Bblock - Walk basic blocks</p>
39 <p>
40 </p>
41 <hr />
42 <h1><a name="synopsis">SYNOPSIS</a></h1>
43 <pre>
44 # External interface
45 perl -MO=Bblock[,OPTIONS] foo.pl</pre>
46 <pre>
47 # Programmatic API
48 use B::Bblock qw(find_leaders);
49 my $leaders = find_leaders($root_op, $start_op);</pre>
50 <p>
51 </p>
52 <hr />
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>
58 <p>
59 </p>
60 <h2><a name="functions">Functions</a></h2>
61 <dl>
62 <dt><strong><a name="item_find_leaders"><strong>find_leaders</strong></a></strong>
64 <dd>
65 <pre>
66 my $leaders = find_leaders($root_op, $start_op);</pre>
67 </dd>
68 <dd>
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
71 start a block.</p>
72 </dd>
73 <p>The values of %$leaders are the op objects themselves. Keys are $$op
74 addresses.</p>
75 </dl>
76 <p>
77 </p>
78 <hr />
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">&nbsp;B::Bblock - Walk basic blocks</span></strong></big>
84 </td></tr>
85 </table>
87 </body>
89 </html>