blob: fccd6f7d51ed84959d692791066e9b4bb9405e64 [file] [log] [blame]
Mikhail Glushenkova606d1f2008-11-25 21:38:38 +00001=pod
2
3=head1 NAME
4
5llvmc - The LLVM Compiler Driver (WIP)
6
7=head1 SYNOPSIS
8
9B<llvmc> [I<options>] I<filenames...>
10
11=head1 DESCRIPTION
12
13B<llvmc> is a configurable driver for invoking other LLVM (and non-LLVM) tools
14in order to compile, optimize and link software for multiple languages. For
15those familiar with FSF's B<gcc> tool, it is very similar. Please note that
16B<llvmc> is considered an experimental tool.
17
18=head1 OPTIONS
19
20=over
21
22=item B<--help>
23
24Print a summary of command line options.
25
26=item B<-o> I<filename>
27
28Specify the output file to be I<filename>.
29
30=item B<-I> I<directory>
31
32Add a directory to the header file search path. This option can be
33repeated.
34
35=item B<-L> I<directory>
36
37Add I<directory> to the library search path. This option can be
38repeated.
39
40=item B<-l>I<name>
41
42Link in the library libI<name>.[bc | a | so]. This library should
43be a bitcode library.
44
45=item B<-emit-llvm>
46
47Make the output be LLVM bitcode (with B<-c>) or assembly (with B<-s>) instead
48of native object (or assembly). If B<-emit-llvm> is given without either B<-c>
49or B<-S> it has no effect.
50
51=back
52
53=head1 EXIT STATUS
54
55If B<llvmc> succeeds, it will exit with 0. Otherwise, if an error
56occurs, it will exit with a non-zero value. If one of the compilation
57tools returns a non-zero status, pending actions will be discarded and
58B<llvmc> will return the same result code as the failing compilation
59tool.
60
61=head1 SEE ALSO
62
63L<llvm-gcc|llvmgcc>, L<llvm-g++|llvmgxx>, L<llvm-as|llvm-as>,
64L<llvm-dis|llvm-dis>, L<llc|llc>, L<llvm-link|llvm-link>
65
66=head1 AUTHORS
67
68Maintained by the LLVM Team (L<http://llvm.org>).
69
70=cut