2003-09-17 14:11:24 +00:00
|
|
|
<html>
|
|
|
|
<title>
|
2003-09-25 19:50:05 +00:00
|
|
|
LLVM: extract tool
|
2003-09-17 14:11:24 +00:00
|
|
|
</title>
|
|
|
|
|
2003-10-07 20:12:05 +00:00
|
|
|
<body bgcolor=white>
|
2003-09-17 14:11:24 +00:00
|
|
|
|
|
|
|
<center>
|
2003-10-07 19:48:25 +00:00
|
|
|
<h1>LLVM: <tt>extract</tt> tool</h1>
|
2003-09-17 14:11:24 +00:00
|
|
|
</center>
|
|
|
|
<HR>
|
|
|
|
|
2003-10-07 19:48:25 +00:00
|
|
|
<h3>NAME</h3>
|
|
|
|
<tt>extract</tt>
|
2003-09-17 14:11:24 +00:00
|
|
|
|
|
|
|
<h3>
|
|
|
|
SYNOPSIS
|
|
|
|
</h3>
|
|
|
|
|
2003-10-07 19:48:25 +00:00
|
|
|
<tt>extract [options] [filename]</tt>
|
2003-09-17 14:11:24 +00:00
|
|
|
<h3>
|
|
|
|
DESCRIPTION
|
|
|
|
</h3>
|
|
|
|
|
2003-10-07 19:48:25 +00:00
|
|
|
The <tt>extract</tt> command takes the name of a function and extracts it from
|
|
|
|
the specified LLVM bytecode file. It is primarily used as a debugging tool to
|
2003-09-17 14:11:24 +00:00
|
|
|
reduce test cases from larger programs that are triggering a bug.
|
2003-09-30 22:55:44 +00:00
|
|
|
<p>
|
|
|
|
|
2003-10-07 19:48:25 +00:00
|
|
|
In addition to extracting the bytecode of the specified function,
|
|
|
|
<tt>extract</tt> will also remove unreachable global variables, prototypes, and
|
|
|
|
unused types.
|
2003-09-30 22:55:44 +00:00
|
|
|
<p>
|
|
|
|
|
2003-10-07 19:48:25 +00:00
|
|
|
The <tt>extract</tt> command reads its input from standard input if filename is
|
2003-09-30 22:55:44 +00:00
|
|
|
omitted or if filename is -. The output is always written to standard output.
|
2003-09-17 14:11:24 +00:00
|
|
|
|
2004-02-18 16:55:29 +00:00
|
|
|
<h3>OPTIONS</h3>
|
2003-09-17 14:11:24 +00:00
|
|
|
|
|
|
|
<ul>
|
2004-02-18 16:55:29 +00:00
|
|
|
<ul>
|
|
|
|
<li> -f
|
|
|
|
<br>
|
|
|
|
Force overwrite. Normally, <tt>extract</tt> will refuse to overwrite an
|
|
|
|
output file that already exists. With this option, <tt>extract</tt>
|
|
|
|
will overwrite the output file and replace it with new bytecode.
|
|
|
|
<p>
|
|
|
|
|
2003-09-17 14:11:24 +00:00
|
|
|
<li>-func <function>
|
|
|
|
<br>
|
2003-10-07 19:48:25 +00:00
|
|
|
Extract the specified function from the LLVM bytecode.
|
2003-09-17 14:11:24 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<li> -help
|
|
|
|
<br>
|
|
|
|
Print a summary of command line options.
|
|
|
|
<p>
|
2004-02-18 16:55:29 +00:00
|
|
|
|
|
|
|
<li> -o <filename>
|
|
|
|
<br>
|
|
|
|
Specify the output filename. If filename is "-" (the default), then
|
|
|
|
<tt>extract</tt> sends its output to standard output.
|
|
|
|
<p>
|
2003-09-17 14:11:24 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>
|
|
|
|
EXIT STATUS
|
|
|
|
</h3>
|
|
|
|
|
2003-10-07 19:48:25 +00:00
|
|
|
If <tt>extract</tt> succeeds, it will exit with 0. Otherwise, if an error
|
|
|
|
occurs, it will exit with a non-zero value.
|
2003-09-17 14:11:24 +00:00
|
|
|
|
|
|
|
<h3>
|
|
|
|
SEE ALSO
|
|
|
|
</h3>
|
2003-10-07 19:48:25 +00:00
|
|
|
<a href="bugpoint.html"><tt>bugpoint</tt></a>
|
2003-09-17 14:11:24 +00:00
|
|
|
|
|
|
|
<HR>
|
2003-10-07 20:12:05 +00:00
|
|
|
Maintained by the <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>.
|
2003-09-17 14:11:24 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|