2 .TH "LLVM-EXTRACT" "1" "2013-04-11" "3.3" "LLVM"
4 llvm-extract \- extract a function from an LLVM module
6 .nr rst2man-indent-level 0
10 level \\n[rst2man-indent-level]
11 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
18 .\" .rstReportMargin pre:
20 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
21 . nr rst2man-indent-level +1
22 .\" .rstReportMargin post:
26 .\" indent \\n[an-margin]
27 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
28 .nr rst2man-indent-level -1
29 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
30 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
32 .\" Man page generated from reStructuredText.
36 \fBllvm\-extract\fP [\fIoptions\fP] \fB\-\-func\fP \fIfunction\-name\fP [\fIfilename\fP]
39 The \fBllvm\-extract\fP command takes the name of a function and extracts it from
40 the specified LLVM bitcode file. It is primarily used as a debugging tool to
41 reduce test cases from larger programs that are triggering a bug.
43 In addition to extracting the bitcode of the specified function,
44 \fBllvm\-extract\fP will also remove unreachable global variables, prototypes, and
47 The \fBllvm\-extract\fP command reads its input from standard input if filename is
48 omitted or if filename is \-. The output is always written to standard output,
49 unless the \fB\-o\fP option is specified (see below).
55 Enable binary output on terminals. Normally, \fBllvm\-extract\fP will refuse to
56 write raw bitcode output if the output stream is a terminal. With this option,
57 \fBllvm\-extract\fP will write raw bitcode regardless of the output device.
61 \fB\-\-func\fP \fIfunction\-name\fP
64 Extract the function named \fIfunction\-name\fP from the LLVM bitcode. May be
65 specified multiple times to extract multiple functions at once.
69 \fB\-\-rfunc\fP \fIfunction\-regular\-expr\fP
72 Extract the function(s) matching \fIfunction\-regular\-expr\fP from the LLVM bitcode.
73 All functions matching the regular expression will be extracted. May be
74 specified multiple times.
78 \fB\-\-glob\fP \fIglobal\-name\fP
81 Extract the global variable named \fIglobal\-name\fP from the LLVM bitcode. May be
82 specified multiple times to extract multiple global variables at once.
86 \fB\-\-rglob\fP \fIglob\-regular\-expr\fP
89 Extract the global variable(s) matching \fIglobal\-regular\-expr\fP from the LLVM
90 bitcode. All global variables matching the regular expression will be extracted.
91 May be specified multiple times.
98 Print a summary of command line options.
102 \fB\-o\fP \fIfilename\fP
105 Specify the output filename. If filename is "\-" (the default), then
106 \fBllvm\-extract\fP sends its output to standard output.
113 Write output in LLVM intermediate language (instead of bitcode).
118 If \fBllvm\-extract\fP succeeds, it will exit with 0. Otherwise, if an error
119 occurs, it will exit with a non\-zero value.
124 Maintained by The LLVM Team (http://llvm.org/).
126 2003-2013, LLVM Project
127 .\" Generated by docutils manpage writer.