aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/clang
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2013-09-05 20:18:59 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2013-09-05 20:18:59 +0000
commitd1d015864103b253b3fcb2f72a0da5b0cfeb31b6 (patch)
tree22b131dceb13c3df96da594fbaadb693504797c7 /usr.bin/clang
parent12d4083451fc39b3e831d4ea0bfa67d3b32cfb54 (diff)
parentb6f49c23a36f329cbf1e7f28078e17fd87f0e245 (diff)
downloadsrc-d1d015864103b253b3fcb2f72a0da5b0cfeb31b6.tar.gz
src-d1d015864103b253b3fcb2f72a0da5b0cfeb31b6.zip
Merge from head
Notes
Notes: svn path=/projects/bmake/; revision=255263
Diffstat (limited to 'usr.bin/clang')
-rw-r--r--usr.bin/clang/bugpoint/Makefile7
-rw-r--r--usr.bin/clang/bugpoint/bugpoint.138
-rw-r--r--usr.bin/clang/clang-tblgen/Makefile2
-rw-r--r--usr.bin/clang/clang/Makefile17
-rw-r--r--usr.bin/clang/clang/clang.112
-rw-r--r--usr.bin/clang/llc/Makefile14
-rw-r--r--usr.bin/clang/llc/llc.1217
-rw-r--r--usr.bin/clang/lli/Makefile8
-rw-r--r--usr.bin/clang/lli/lli.130
-rw-r--r--usr.bin/clang/llvm-ar/Makefile1
-rw-r--r--usr.bin/clang/llvm-ar/llvm-ar.14
-rw-r--r--usr.bin/clang/llvm-as/Makefile1
-rw-r--r--usr.bin/clang/llvm-as/llvm-as.14
-rw-r--r--usr.bin/clang/llvm-bcanalyzer/Makefile1
-rw-r--r--usr.bin/clang/llvm-bcanalyzer/llvm-bcanalyzer.1117
-rw-r--r--usr.bin/clang/llvm-diff/Makefile3
-rw-r--r--usr.bin/clang/llvm-diff/llvm-diff.14
-rw-r--r--usr.bin/clang/llvm-dis/Makefile1
-rw-r--r--usr.bin/clang/llvm-dis/llvm-dis.14
-rw-r--r--usr.bin/clang/llvm-extract/Makefile4
-rw-r--r--usr.bin/clang/llvm-extract/llvm-extract.14
-rw-r--r--usr.bin/clang/llvm-link/Makefile6
-rw-r--r--usr.bin/clang/llvm-link/llvm-link.186
-rw-r--r--usr.bin/clang/llvm-mc/Makefile11
-rw-r--r--usr.bin/clang/llvm-nm/llvm-nm.14
-rw-r--r--usr.bin/clang/llvm-objdump/Makefile17
-rw-r--r--usr.bin/clang/llvm-prof/llvm-prof.14
-rw-r--r--usr.bin/clang/llvm-ranlib/Makefile1
-rw-r--r--usr.bin/clang/llvm-ranlib/llvm-ranlib.14
-rw-r--r--usr.bin/clang/llvm-rtdyld/Makefile16
-rw-r--r--usr.bin/clang/opt/Makefile12
-rw-r--r--usr.bin/clang/opt/opt.1197
-rw-r--r--usr.bin/clang/tblgen/Makefile4
-rw-r--r--usr.bin/clang/tblgen/tblgen.1176
34 files changed, 486 insertions, 545 deletions
diff --git a/usr.bin/clang/bugpoint/Makefile b/usr.bin/clang/bugpoint/Makefile
index a40d1e6d8fdf..6599b03b9c9c 100644
--- a/usr.bin/clang/bugpoint/Makefile
+++ b/usr.bin/clang/bugpoint/Makefile
@@ -16,11 +16,12 @@ SRCS= BugDriver.cpp \
bugpoint.cpp
TGHDRS= Intrinsics
-LIBDEPS=llvmbitwriter \
- llvmlinker \
- llvmarchive \
+LIBDEPS=llvmirreader \
+ llvmbitwriter \
llvmbitreader \
+ llvmlinker \
llvmipo \
+ llvmobjcarcopts \
llvmvectorize \
llvmscalaropts \
llvminstcombine \
diff --git a/usr.bin/clang/bugpoint/bugpoint.1 b/usr.bin/clang/bugpoint/bugpoint.1
index 0e119a4de82f..4a180f42d1a3 100644
--- a/usr.bin/clang/bugpoint/bugpoint.1
+++ b/usr.bin/clang/bugpoint/bugpoint.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "BUGPOINT" "1" "2012-08-16" "3.2" "LLVM"
+.TH "BUGPOINT" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
bugpoint \- automatic test case reduction tool
.
@@ -66,37 +66,45 @@ code is considered a test failure. Defaults to false.
\fB\-\-args\fP \fIprogram args\fP
.INDENT 0.0
.INDENT 3.5
-Pass all arguments specified after \-args to the test program whenever it runs.
-Note that if any of the \fIprogram args\fP start with a \(aq\-\(aq, you should use:
+Pass all arguments specified after \fB\-\-args\fP to the test program whenever it runs.
+Note that if any of the \fIprogram args\fP start with a "\fB\-\fP", you should use:
+.INDENT 0.0
+.INDENT 3.5
.sp
.nf
.ft C
bugpoint [bugpoint args] \-\-args \-\- [program args]
.ft P
.fi
+.UNINDENT
+.UNINDENT
.sp
-The "\-\-" right after the \fB\-\-args\fP option tells \fBbugpoint\fP to consider any
-options starting with \fB\-\fP to be part of the \fB\-\-args\fP option, not as options to
-\fBbugpoint\fP itself.
+The "\fB\-\-\fP" right after the \fB\-\-args\fP option tells \fBbugpoint\fP to consider
+any options starting with "\fB\-\fP" to be part of the \fB\-\-args\fP option, not as
+options to \fBbugpoint\fP itself.
.UNINDENT
.UNINDENT
.sp
\fB\-\-tool\-args\fP \fItool args\fP
.INDENT 0.0
.INDENT 3.5
-Pass all arguments specified after \-\-tool\-args to the LLVM tool under test
+Pass all arguments specified after \fB\-\-tool\-args\fP to the LLVM tool under test
(\fBllc\fP, \fBlli\fP, etc.) whenever it runs. You should use this option in the
following way:
+.INDENT 0.0
+.INDENT 3.5
.sp
.nf
.ft C
bugpoint [bugpoint args] \-\-tool\-args \-\- [tool args]
.ft P
.fi
+.UNINDENT
+.UNINDENT
.sp
-The "\-\-" right after the \fB\-\-tool\-args\fP option tells \fBbugpoint\fP to consider any
-options starting with \fB\-\fP to be part of the \fB\-\-tool\-args\fP option, not as
-options to \fBbugpoint\fP itself. (See \fB\-\-args\fP, above.)
+The "\fB\-\-\fP" right after the \fB\-\-tool\-args\fP option tells \fBbugpoint\fP to
+consider any options starting with "\fB\-\fP" to be part of the \fB\-\-tool\-args\fP
+option, not as options to \fBbugpoint\fP itself. (See \fB\-\-args\fP, above.)
.UNINDENT
.UNINDENT
.sp
@@ -172,6 +180,8 @@ Load the dynamic object \fIplugin\fP into \fBbugpoint\fP itself. This object sh
register new optimization passes. Once loaded, the object will add new command
line options to enable various optimizations. To see the new complete list of
optimizations, use the \fB\-help\fP and \fB\-\-load\fP options together; for example:
+.INDENT 0.0
+.INDENT 3.5
.sp
.nf
.ft C
@@ -180,6 +190,8 @@ bugpoint \-\-load myNewPass.so \-help
.fi
.UNINDENT
.UNINDENT
+.UNINDENT
+.UNINDENT
.sp
\fB\-\-mlimit\fP \fImegabytes\fP
.INDENT 0.0
@@ -247,6 +259,8 @@ option to compile the bitcode testcase. This can be useful for
testing compiler output without running any link or execute stages. To
generate a reduced unit test, you may add CHECK directives to the
testcase and pass the name of an executable compile\-command script in this form:
+.INDENT 0.0
+.INDENT 3.5
.sp
.nf
.ft C
@@ -255,6 +269,8 @@ llc "$@"
not FileCheck [bugpoint input file].ll < bugpoint\-test\-program.s
.ft P
.fi
+.UNINDENT
+.UNINDENT
.sp
This script will "fail" as long as FileCheck passes. So the result
will be the minimum bitcode that passes FileCheck.
@@ -279,6 +295,6 @@ opt|opt
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/clang-tblgen/Makefile b/usr.bin/clang/clang-tblgen/Makefile
index b777f0731f23..5cfa83d3f00a 100644
--- a/usr.bin/clang/clang-tblgen/Makefile
+++ b/usr.bin/clang/clang-tblgen/Makefile
@@ -9,13 +9,13 @@ SRCDIR= tools/clang/utils/TableGen
SRCS= ClangASTNodesEmitter.cpp \
ClangAttrEmitter.cpp \
ClangCommentCommandInfoEmitter.cpp \
+ ClangCommentHTMLNamedCharacterReferenceEmitter.cpp \
ClangCommentHTMLTagsEmitter.cpp \
ClangDiagnosticsEmitter.cpp \
ClangSACheckersEmitter.cpp \
NeonEmitter.cpp \
OptParserEmitter.cpp \
TableGen.cpp
-LLVM_REQUIRES_EH=
LIBDEPS=llvmtablegen \
llvmsupport
diff --git a/usr.bin/clang/clang/Makefile b/usr.bin/clang/clang/Makefile
index 18a768be849e..27c2cf197639 100644
--- a/usr.bin/clang/clang/Makefile
+++ b/usr.bin/clang/clang/Makefile
@@ -56,15 +56,15 @@ LIBDEPS=clangfrontendtool \
clangparse \
clangsema \
${_clangstaticanalyzer} \
- clanganalysis \
${_clangarcmigrate} \
${_clangrewriter} \
+ clanganalysis \
clangedit \
clangast \
- clanglex \
clangbasic \
+ clanglex \
llvmlinker \
- llvmarchive \
+ llvmirreader \
llvmipo \
llvmvectorize \
llvminstrumentation \
@@ -72,33 +72,34 @@ LIBDEPS=clangfrontendtool \
llvmbitreader \
llvmasmparser \
llvmarmdisassembler \
- llvmarmasmparser \
llvmarmcodegen \
+ llvmarmasmparser \
llvmarmdesc \
llvmarminfo \
llvmarminstprinter \
- llvmmipsasmparser \
+ llvmmipsdisassembler \
llvmmipscodegen \
+ llvmmipsasmparser \
llvmmipsdesc \
- llvmmipsinstprinter \
- llvmmipsdisassembler \
llvmmipsinfo \
+ llvmmipsinstprinter \
llvmpowerpccodegen \
llvmpowerpcdesc \
llvmpowerpcinfo \
llvmpowerpcinstprinter \
+ llvmx86disassembler \
llvmx86asmparser \
llvmx86codegen \
llvmselectiondag \
llvmasmprinter \
llvmmcparser \
llvmcodegen \
+ llvmobjcarcopts \
llvmscalaropts \
llvminstcombine \
llvmtransformutils \
llvmipa \
llvmanalysis \
- llvmx86disassembler \
llvmx86desc \
llvmx86info \
llvmtarget \
diff --git a/usr.bin/clang/clang/clang.1 b/usr.bin/clang/clang/clang.1
index 1a37c6dfe226..3f0689f29af0 100644
--- a/usr.bin/clang/clang/clang.1
+++ b/usr.bin/clang/clang/clang.1
@@ -125,7 +125,7 @@
.\" ========================================================================
.\"
.IX Title "CLANG 1"
-.TH CLANG 1 "2012-12-21" "clang 3.2" "Clang Tools Documentation"
+.TH CLANG 1 "2013-06-10" "clang 3.3" "Clang Tools Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
@@ -135,7 +135,7 @@ clang \- the Clang C, C++, and Objective\-C compiler
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
\&\fBclang\fR [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] \fB\-std=\fR\fIstandard\fR \fB\-g\fR
- [\fB\-O0\fR|\fB\-O1\fR|\fB\-O2\fR|\fB\-Os\fR|\fB\-Oz\fR|\fB\-O3\fR|\fB\-O4\fR]
+ [\fB\-O0\fR|\fB\-O1\fR|\fB\-O2\fR|\fB\-Os\fR|\fB\-Oz\fR|\fB\-O3\fR|\fB\-Ofast\fR|\fB\-O4\fR]
\fB\-W\fR\fIwarnings...\fR \fB\-pedantic\fR
\fB\-I\fR\fIdir...\fR \fB\-L\fR\fIdir...\fR
\fB\-D\fR\fImacro[=defn]\fR
@@ -325,15 +325,17 @@ generate instructions that are valid on i486 and later processors, but which
may not exist on earlier ones.
.SS "Code Generation Options"
.IX Subsection "Code Generation Options"
-.IP "\fB\-O0\fR \fB\-O1\fR \fB\-O2\fR \fB\-Os\fR \fB\-Oz\fR \fB\-O3\fR \fB\-O4\fR" 4
-.IX Item "-O0 -O1 -O2 -Os -Oz -O3 -O4"
+.IP "\fB\-O0\fR \fB\-O1\fR \fB\-O2\fR \fB\-Os\fR \fB\-Oz\fR \fB\-O3\fR \fB\-Ofast\fR \fB\-O4\fR" 4
+.IX Item "-O0 -O1 -O2 -Os -Oz -O3 -Ofast -O4"
Specify which optimization level to use. \fB\-O0\fR means \*(L"no optimization\*(R": this
level compiles the fastest and generates the most debuggable code. \fB\-O2\fR is a
moderate level of optimization which enables most optimizations. \fB\-Os\fR is like
\&\fB\-O2\fR with extra optimizations to reduce code size. \fB\-Oz\fR is like \fB\-Os\fR
(and thus \fB\-O2\fR), but reduces code size further. \fB\-O3\fR is like \fB\-O2\fR,
except that it enables optimizations that take longer to perform or that may
-generate larger code (in an attempt to make the program run faster). On
+generate larger code (in an attempt to make the program run faster).
+\&\fB\-Ofast\fR enables all the optimizations from \fB\-O3\fR along with other aggressive
+optimizations that may violate strict compliance with language standards. On
supported platforms, \fB\-O4\fR enables link-time optimization; object files are
stored in the \s-1LLVM\s0 bitcode file format and whole program optimization is done at
link time. \fB\-O1\fR is somewhere between \fB\-O0\fR and \fB\-O2\fR.
diff --git a/usr.bin/clang/llc/Makefile b/usr.bin/clang/llc/Makefile
index 7be4309c29b6..e75dd816e886 100644
--- a/usr.bin/clang/llc/Makefile
+++ b/usr.bin/clang/llc/Makefile
@@ -7,36 +7,38 @@ PROG_CXX=llc
SRCDIR= tools/llc
SRCS= llc.cpp
-LIBDEPS=llvmasmparser \
+LIBDEPS=llvmirreader \
+ llvmasmparser \
llvmbitreader \
llvmarmdisassembler \
- llvmarmasmparser \
llvmarmcodegen \
+ llvmarmasmparser \
llvmarmdesc \
llvmarminfo \
llvmarminstprinter \
- llvmmipsasmparser \
+ llvmmipsdisassembler \
llvmmipscodegen \
+ llvmmipsasmparser \
llvmmipsdesc \
- llvmmipsinstprinter \
- llvmmipsdisassembler \
llvmmipsinfo \
+ llvmmipsinstprinter \
llvmpowerpccodegen \
llvmpowerpcdesc \
llvmpowerpcinfo \
llvmpowerpcinstprinter \
+ llvmx86disassembler \
llvmx86asmparser \
llvmx86codegen \
llvmselectiondag \
llvmasmprinter \
llvmmcparser \
llvmcodegen \
+ llvmobjcarcopts \
llvmscalaropts \
llvminstcombine \
llvmtransformutils \
llvmipa \
llvmanalysis \
- llvmx86disassembler \
llvmx86desc \
llvmx86info \
llvmtarget \
diff --git a/usr.bin/clang/llc/llc.1 b/usr.bin/clang/llc/llc.1
index b7862dbcaa9d..e231f218687c 100644
--- a/usr.bin/clang/llc/llc.1
+++ b/usr.bin/clang/llc/llc.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "LLC" "1" "2012-08-16" "3.2" "LLVM"
+.TH "LLC" "1" "2013-06-10" "3.3" "LLVM"
.SH NAME
llc \- LLVM static compiler
.
@@ -36,241 +36,230 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
\fBllc\fP [\fIoptions\fP] [\fIfilename\fP]
.SH DESCRIPTION
.sp
-The \fBllc\fP command compiles LLVM source inputs into assembly language for a
-specified architecture. The assembly language output can then be passed through
-a native assembler and linker to generate a native executable.
+The \fBllc\fP command compiles LLVM source inputs into assembly language
+for a specified architecture. The assembly language output can then be passed
+through a native assembler and linker to generate a native executable.
.sp
The choice of architecture for the output assembly code is automatically
-determined from the input file, unless the \fB\-march\fP option is used to override
-the default.
+determined from the input file, unless the \fI\%-march\fP option is used to
+override the default.
.SH OPTIONS
.sp
-If \fIfilename\fP is \- or omitted, \fBllc\fP reads from standard input. Otherwise, it
-will from \fIfilename\fP. Inputs can be in either the LLVM assembly language
-format (.ll) or the LLVM bitcode format (.bc).
+If \fBfilename\fP is "\fB\-\fP" or omitted, \fBllc\fP reads from standard input.
+Otherwise, it will from \fBfilename\fP. Inputs can be in either the LLVM assembly
+language format (\fB.ll\fP) or the LLVM bitcode format (\fB.bc\fP).
.sp
-If the \fB\-o\fP option is omitted, then \fBllc\fP will send its output to standard
-output if the input is from standard input. If the \fB\-o\fP option specifies \-,
-then the output will also be sent to standard output.
+If the \fI\-o\fP option is omitted, then \fBllc\fP will send its output
+to standard output if the input is from standard input. If the \fI\-o\fP
+option specifies "\fB\-\fP", then the output will also be sent to standard output.
.sp
-If no \fB\-o\fP option is specified and an input file other than \- is specified,
-then \fBllc\fP creates the output filename by taking the input filename,
-removing any existing \fI.bc\fP extension, and adding a \fI.s\fP suffix.
+If no \fI\-o\fP option is specified and an input file other than "\fB\-\fP" is
+specified, then \fBllc\fP creates the output filename by taking the input
+filename, removing any existing \fB.bc\fP extension, and adding a \fB.s\fP suffix.
.sp
-Other \fBllc\fP options are as follows:
+Other \fBllc\fP options are described below.
.SS End\-user Options
-.sp
-\fB\-help\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-help
Print a summary of command line options.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-O\fP=\fIuint\fP
.INDENT 0.0
-.INDENT 3.5
-Generate code at different optimization levels. These correspond to the \fI\-O0\fP,
-\fI\-O1\fP, \fI\-O2\fP, and \fI\-O3\fP optimization levels used by \fBllvm\-gcc\fP and
-\fBclang\fP.
+.TP
+.B \-O=uint
+Generate code at different optimization levels. These correspond to the
+\fB\-O0\fP, \fB\-O1\fP, \fB\-O2\fP, and \fB\-O3\fP optimization levels used by
+\fBllvm\-gcc\fP and \fBclang\fP.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-mtriple\fP=\fItarget triple\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-mtriple=<target triple>
Override the target triple specified in the input file with the specified
string.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-march\fP=\fIarch\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-march=<arch>
Specify the architecture for which to generate assembly, overriding the target
encoded in the input file. See the output of \fBllc \-help\fP for a list of
valid architectures. By default this is inferred from the target triple or
autodetected to the current architecture.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-mcpu\fP=\fIcpuname\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-mcpu=<cpuname>
Specify a specific chip in the current architecture to generate code for.
By default this is inferred from the target triple and autodetected to
the current architecture. For a list of available CPUs, use:
-\fBllvm\-as < /dev/null | llc \-march=xyz \-mcpu=help\fP
+.INDENT 7.0
+.INDENT 3.5
+.sp
+.nf
+.ft C
+llvm\-as < /dev/null | llc \-march=xyz \-mcpu=help
+.ft P
+.fi
+.UNINDENT
.UNINDENT
.UNINDENT
+.INDENT 0.0
+.TP
+.B \-filetype=<output file type>
+Specify what kind of output \fBllc\fP should generated. Options are: \fBasm\fP
+for textual assembly ( \fB\(aq.s\(aq\fP), \fBobj\fP for native object files (\fB\(aq.o\(aq\fP)
+and \fBnull\fP for not emitting anything (for performance testing).
.sp
-\fB\-mattr\fP=\fIa1,+a2,\-a3,...\fP
+Note that not all targets support all options.
+.UNINDENT
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-mattr=a1,+a2,\-a3,...
Override or control specific attributes of the target, such as whether SIMD
operations are enabled or not. The default set of attributes is set by the
current CPU. For a list of available attributes, use:
-\fBllvm\-as < /dev/null | llc \-march=xyz \-mattr=help\fP
+.INDENT 7.0
+.INDENT 3.5
+.sp
+.nf
+.ft C
+llvm\-as < /dev/null | llc \-march=xyz \-mattr=help
+.ft P
+.fi
+.UNINDENT
.UNINDENT
.UNINDENT
-.sp
-\fB\-\-disable\-fp\-elim\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-\-disable\-fp\-elim
Disable frame pointer elimination optimization.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-\-disable\-excess\-fp\-precision\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-\-disable\-excess\-fp\-precision
Disable optimizations that may produce excess precision for floating point.
Note that this option can dramatically slow down code on some systems
(e.g. X86).
.UNINDENT
-.UNINDENT
-.sp
-\fB\-\-enable\-no\-infs\-fp\-math\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-\-enable\-no\-infs\-fp\-math
Enable optimizations that assume no Inf values.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-\-enable\-no\-nans\-fp\-math\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-\-enable\-no\-nans\-fp\-math
Enable optimizations that assume no NAN values.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-\-enable\-unsafe\-fp\-math\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-\-enable\-unsafe\-fp\-math
Enable optimizations that make unsafe assumptions about IEEE math (e.g. that
addition is associative) or may not work for all input ranges. These
optimizations allow the code generator to make use of some instructions which
-would otherwise not be usable (such as fsin on X86).
+would otherwise not be usable (such as \fBfsin\fP on X86).
.UNINDENT
-.UNINDENT
-.sp
-\fB\-\-enable\-correct\-eh\-support\fP
.INDENT 0.0
-.INDENT 3.5
-Instruct the \fBlowerinvoke\fP pass to insert code for correct exception handling
-support. This is expensive and is by default omitted for efficiency.
-.UNINDENT
+.TP
+.B \-\-enable\-correct\-eh\-support
+Instruct the \fBlowerinvoke\fP pass to insert code for correct exception
+handling support. This is expensive and is by default omitted for efficiency.
.UNINDENT
-.sp
-\fB\-\-stats\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-\-stats
Print statistics recorded by code\-generation passes.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-\-time\-passes\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-\-time\-passes
Record the amount of time needed for each pass and print a report to standard
error.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-\-load\fP=\fIdso_path\fP
.INDENT 0.0
-.INDENT 3.5
-Dynamically load \fIdso_path\fP (a path to a dynamically shared object) that
-implements an LLVM target. This will permit the target name to be used with the
-\fB\-march\fP option so that code can be generated for that target.
-.UNINDENT
+.TP
+.B \-\-load=<dso_path>
+Dynamically load \fBdso_path\fP (a path to a dynamically shared object) that
+implements an LLVM target. This will permit the target name to be used with
+the \fI\%-march\fP option so that code can be generated for that target.
.UNINDENT
.SS Tuning/Configuration Options
-.sp
-\fB\-\-print\-machineinstrs\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-\-print\-machineinstrs
Print generated machine code between compilation phases (useful for debugging).
.UNINDENT
-.UNINDENT
-.sp
-\fB\-\-regalloc\fP=\fIallocator\fP
.INDENT 0.0
-.INDENT 3.5
-Specify the register allocator to use. The default \fIallocator\fP is \fIlocal\fP.
+.TP
+.B \-\-regalloc=<allocator>
+Specify the register allocator to use. The default \fBallocator\fP is \fIlocal\fP.
Valid register allocators are:
.sp
\fIsimple\fP
-.INDENT 0.0
+.INDENT 7.0
.INDENT 3.5
Very simple "always spill" register allocator
.UNINDENT
.UNINDENT
.sp
\fIlocal\fP
-.INDENT 0.0
+.INDENT 7.0
.INDENT 3.5
Local register allocator
.UNINDENT
.UNINDENT
.sp
\fIlinearscan\fP
-.INDENT 0.0
+.INDENT 7.0
.INDENT 3.5
Linear scan global register allocator
.UNINDENT
.UNINDENT
.sp
\fIiterativescan\fP
-.INDENT 0.0
+.INDENT 7.0
.INDENT 3.5
Iterative scan global register allocator
.UNINDENT
.UNINDENT
.UNINDENT
-.UNINDENT
-.sp
-\fB\-\-spiller\fP=\fIspiller\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-\-spiller=<spiller>
Specify the spiller to use for register allocators that support it. Currently
-this option is used only by the linear scan register allocator. The default
-\fIspiller\fP is \fIlocal\fP. Valid spillers are:
+this option is used only by the linear scan register allocator. The default
+\fBspiller\fP is \fIlocal\fP. Valid spillers are:
.sp
\fIsimple\fP
-.INDENT 0.0
+.INDENT 7.0
.INDENT 3.5
Simple spiller
.UNINDENT
.UNINDENT
.sp
\fIlocal\fP
-.INDENT 0.0
+.INDENT 7.0
.INDENT 3.5
Local spiller
.UNINDENT
.UNINDENT
.UNINDENT
-.UNINDENT
.SS Intel IA\-32\-specific Options
-.sp
-\fB\-\-x86\-asm\-syntax=att|intel\fP
.INDENT 0.0
-.INDENT 3.5
-Specify whether to emit assembly code in AT&T syntax (the default) or intel
+.TP
+.B \-\-x86\-asm\-syntax=[att|intel]
+Specify whether to emit assembly code in AT&T syntax (the default) or Intel
syntax.
.UNINDENT
-.UNINDENT
.SH EXIT STATUS
.sp
-If \fBllc\fP succeeds, it will exit with 0. Otherwise, if an error occurs,
-it will exit with a non\-zero value.
+If \fBllc\fP succeeds, it will exit with 0. Otherwise, if an error
+occurs, it will exit with a non\-zero value.
.SH SEE ALSO
.sp
-lli|lli
+lli
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/lli/Makefile b/usr.bin/clang/lli/Makefile
index 4c56961ba5d2..1916fb0ace65 100644
--- a/usr.bin/clang/lli/Makefile
+++ b/usr.bin/clang/lli/Makefile
@@ -9,8 +9,9 @@ SRCS= lli.cpp \
RecordingMemoryManager.cpp \
RemoteTarget.cpp
-LIBDEPS=llvmx86asmparser \
- llvmx86disassembler \
+LIBDEPS=llvmx86disassembler \
+ llvmx86asmparser \
+ llvmirreader \
llvmasmparser \
llvmbitreader \
llvmx86codegen \
@@ -22,14 +23,15 @@ LIBDEPS=llvmx86asmparser \
llvmasmprinter \
llvmmcparser \
llvminterpreter \
+ llvmmcjit \
llvmjit \
llvmcodegen \
+ llvmobjcarcopts \
llvmscalaropts \
llvminstcombine \
llvmtransformutils \
llvmipa \
llvmanalysis \
- llvmmcjit \
llvmruntimedyld \
llvmexecutionengine \
llvmtarget \
diff --git a/usr.bin/clang/lli/lli.1 b/usr.bin/clang/lli/lli.1
index e018a9581e53..16b8374f9158 100644
--- a/usr.bin/clang/lli/lli.1
+++ b/usr.bin/clang/lli/lli.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "LLI" "1" "2012-08-16" "3.2" "LLVM"
+.TH "LLI" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
lli \- directly execute programs from LLVM bitcode
.
@@ -71,7 +71,7 @@ Print a summary of command line options.
.UNINDENT
.UNINDENT
.sp
-\fB\-load\fP=\fIpuginfilename\fP
+\fB\-load\fP=\fIpluginfilename\fP
.INDENT 0.0
.INDENT 3.5
Causes \fBlli\fP to load the plugin (shared object) named \fIpluginfilename\fP and use
@@ -185,6 +185,8 @@ equivalent hardware instructions.
.INDENT 0.0
.INDENT 3.5
Choose the code model from:
+.INDENT 0.0
+.INDENT 3.5
.sp
.nf
.ft C
@@ -197,6 +199,8 @@ large: Large code model
.fi
.UNINDENT
.UNINDENT
+.UNINDENT
+.UNINDENT
.sp
\fB\-disable\-post\-RA\-scheduler\fP
.INDENT 0.0
@@ -239,6 +243,8 @@ Coalesce copies (default=true).
.INDENT 0.0
.INDENT 3.5
Instruction schedulers available (before register allocation):
+.INDENT 0.0
+.INDENT 3.5
.sp
.nf
.ft C
@@ -253,11 +259,15 @@ Instruction schedulers available (before register allocation):
.fi
.UNINDENT
.UNINDENT
+.UNINDENT
+.UNINDENT
.sp
\fB\-regalloc\fP=\fIallocator\fP
.INDENT 0.0
.INDENT 3.5
Register allocator to use (default=linearscan)
+.INDENT 0.0
+.INDENT 3.5
.sp
.nf
.ft C
@@ -268,11 +278,15 @@ Register allocator to use (default=linearscan)
.fi
.UNINDENT
.UNINDENT
+.UNINDENT
+.UNINDENT
.sp
\fB\-relocation\-model\fP=\fImodel\fP
.INDENT 0.0
.INDENT 3.5
Choose relocation model from:
+.INDENT 0.0
+.INDENT 3.5
.sp
.nf
.ft C
@@ -283,11 +297,15 @@ Choose relocation model from:
.fi
.UNINDENT
.UNINDENT
+.UNINDENT
+.UNINDENT
.sp
\fB\-spiller\fP
.INDENT 0.0
.INDENT 3.5
Spiller to use (default=local)
+.INDENT 0.0
+.INDENT 3.5
.sp
.nf
.ft C
@@ -297,11 +315,15 @@ Spiller to use (default=local)
.fi
.UNINDENT
.UNINDENT
+.UNINDENT
+.UNINDENT
.sp
\fB\-x86\-asm\-syntax\fP=\fIsyntax\fP
.INDENT 0.0
.INDENT 3.5
Choose style of code to emit from X86 backend:
+.INDENT 0.0
+.INDENT 3.5
.sp
.nf
.ft C
@@ -311,6 +333,8 @@ Choose style of code to emit from X86 backend:
.fi
.UNINDENT
.UNINDENT
+.UNINDENT
+.UNINDENT
.SH EXIT STATUS
.sp
If \fBlli\fP fails to load the program, it will exit with an exit code of 1.
@@ -321,6 +345,6 @@ llc|llc
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/llvm-ar/Makefile b/usr.bin/clang/llvm-ar/Makefile
index b7a4a130482e..592be461d9f5 100644
--- a/usr.bin/clang/llvm-ar/Makefile
+++ b/usr.bin/clang/llvm-ar/Makefile
@@ -6,7 +6,6 @@ PROG_CXX=llvm-ar
SRCDIR= tools/llvm-ar
SRCS= llvm-ar.cpp
-LLVM_REQUIRES_EH=
LIBDEPS=llvmarchive \
llvmbitreader \
diff --git a/usr.bin/clang/llvm-ar/llvm-ar.1 b/usr.bin/clang/llvm-ar/llvm-ar.1
index 84a978f766c9..b920cf5da349 100644
--- a/usr.bin/clang/llvm-ar/llvm-ar.1
+++ b/usr.bin/clang/llvm-ar/llvm-ar.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "LLVM-AR" "1" "2012-08-16" "3.2" "LLVM"
+.TH "LLVM-AR" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
llvm-ar \- LLVM archiver
.
@@ -479,6 +479,6 @@ llvm\-ranlib|llvm\-ranlib, ar(1)
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/llvm-as/Makefile b/usr.bin/clang/llvm-as/Makefile
index 6d3fd8e60a51..d3d07327e80c 100644
--- a/usr.bin/clang/llvm-as/Makefile
+++ b/usr.bin/clang/llvm-as/Makefile
@@ -6,7 +6,6 @@ PROG_CXX=llvm-as
SRCDIR= tools/llvm-as
SRCS= llvm-as.cpp
-LLVM_REQUIRES_EH=
LIBDEPS=llvmbitwriter \
llvmasmparser \
diff --git a/usr.bin/clang/llvm-as/llvm-as.1 b/usr.bin/clang/llvm-as/llvm-as.1
index 82e13bc70a97..79e6e398066c 100644
--- a/usr.bin/clang/llvm-as/llvm-as.1
+++ b/usr.bin/clang/llvm-as/llvm-as.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "LLVM-AS" "1" "2012-08-16" "3.2" "LLVM"
+.TH "LLVM-AS" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
llvm-as \- LLVM assembler
.
@@ -82,6 +82,6 @@ llvm\-dis|llvm\-dis, gccas|gccas
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/llvm-bcanalyzer/Makefile b/usr.bin/clang/llvm-bcanalyzer/Makefile
index 88032cf16960..54446dcb1cdf 100644
--- a/usr.bin/clang/llvm-bcanalyzer/Makefile
+++ b/usr.bin/clang/llvm-bcanalyzer/Makefile
@@ -6,7 +6,6 @@ PROG_CXX=llvm-bcanalyzer
SRCDIR= tools/llvm-bcanalyzer
SRCS= llvm-bcanalyzer.cpp
-LLVM_REQUIRES_EH=
LIBDEPS=llvmbitreader \
llvmcore \
diff --git a/usr.bin/clang/llvm-bcanalyzer/llvm-bcanalyzer.1 b/usr.bin/clang/llvm-bcanalyzer/llvm-bcanalyzer.1
index 8611eec2cd69..572d91b6efa9 100644
--- a/usr.bin/clang/llvm-bcanalyzer/llvm-bcanalyzer.1
+++ b/usr.bin/clang/llvm-bcanalyzer/llvm-bcanalyzer.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "LLVM-BCANALYZER" "1" "2012-08-16" "3.2" "LLVM"
+.TH "LLVM-BCANALYZER" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
llvm-bcanalyzer \- LLVM bitcode analyzer
.
@@ -36,58 +36,51 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
\fBllvm\-bcanalyzer\fP [\fIoptions\fP] [\fIfilename\fP]
.SH DESCRIPTION
.sp
-The \fBllvm\-bcanalyzer\fP command is a small utility for analyzing bitcode files.
-The tool reads a bitcode file (such as generated with the \fBllvm\-as\fP tool) and
-produces a statistical report on the contents of the bitcode file. The tool
-can also dump a low level but human readable version of the bitcode file.
-This tool is probably not of much interest or utility except for those working
-directly with the bitcode file format. Most LLVM users can just ignore
-this tool.
-.sp
-If \fIfilename\fP is omitted or is \fB\-\fP, then \fBllvm\-bcanalyzer\fP reads its input
-from standard input. This is useful for combining the tool into a pipeline.
-Output is written to the standard output.
+The \fBllvm\-bcanalyzer\fP command is a small utility for analyzing bitcode
+files. The tool reads a bitcode file (such as generated with the
+\fBllvm\-as\fP tool) and produces a statistical report on the contents of
+the bitcode file. The tool can also dump a low level but human readable
+version of the bitcode file. This tool is probably not of much interest or
+utility except for those working directly with the bitcode file format. Most
+LLVM users can just ignore this tool.
+.sp
+If \fIfilename\fP is omitted or is \fB\-\fP, then \fBllvm\-bcanalyzer\fP reads its
+input from standard input. This is useful for combining the tool into a
+pipeline. Output is written to the standard output.
.SH OPTIONS
-.sp
-\fB\-nodetails\fP
.INDENT 0.0
-.INDENT 3.5
-Causes \fBllvm\-bcanalyzer\fP to abbreviate its output by writing out only a module
-level summary. The details for individual functions are not displayed.
-.UNINDENT
+.TP
+.B \-nodetails
+Causes \fBllvm\-bcanalyzer\fP to abbreviate its output by writing out only
+a module level summary. The details for individual functions are not
+displayed.
.UNINDENT
-.sp
-\fB\-dump\fP
.INDENT 0.0
-.INDENT 3.5
-Causes \fBllvm\-bcanalyzer\fP to dump the bitcode in a human readable format. This
-format is significantly different from LLVM assembly and provides details about
-the encoding of the bitcode file.
-.UNINDENT
+.TP
+.B \-dump
+Causes \fBllvm\-bcanalyzer\fP to dump the bitcode in a human readable
+format. This format is significantly different from LLVM assembly and
+provides details about the encoding of the bitcode file.
.UNINDENT
-.sp
-\fB\-verify\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-verify
Causes \fBllvm\-bcanalyzer\fP to verify the module produced by reading the
-bitcode. This ensures that the statistics generated are based on a consistent
+bitcode. This ensures that the statistics generated are based on a consistent
module.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-help\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-help
Print a summary of command line options.
.UNINDENT
-.UNINDENT
.SH EXIT STATUS
.sp
-If \fBllvm\-bcanalyzer\fP succeeds, it will exit with 0. Otherwise, if an error
-occurs, it will exit with a non\-zero value, usually 1.
+If \fBllvm\-bcanalyzer\fP succeeds, it will exit with 0. Otherwise, if an
+error occurs, it will exit with a non\-zero value, usually 1.
.SH SUMMARY OUTPUT DEFINITIONS
.sp
-The following items are always printed by llvm\-bcanalyzer. They comprize the
+The following items are always printed by llvm\-bcanalyzer. They comprize the
summary output.
.sp
\fBBitcode Analysis Of Module\fP
@@ -115,14 +108,14 @@ The size, in bytes, of the entire bitcode file.
\fBModule Bytes\fP
.INDENT 0.0
.INDENT 3.5
-The size, in bytes, of the module block. Percentage is relative to File Size.
+The size, in bytes, of the module block. Percentage is relative to File Size.
.UNINDENT
.UNINDENT
.sp
\fBFunction Bytes\fP
.INDENT 0.0
.INDENT 3.5
-The size, in bytes, of all the function blocks. Percentage is relative to File
+The size, in bytes, of all the function blocks. Percentage is relative to File
Size.
.UNINDENT
.UNINDENT
@@ -130,8 +123,8 @@ Size.
\fBGlobal Types Bytes\fP
.INDENT 0.0
.INDENT 3.5
-The size, in bytes, of the Global Types Pool. Percentage is relative to File
-Size. This is the size of the definitions of all types in the bitcode file.
+The size, in bytes, of the Global Types Pool. Percentage is relative to File
+Size. This is the size of the definitions of all types in the bitcode file.
.UNINDENT
.UNINDENT
.sp
@@ -155,7 +148,7 @@ Percentage is relative to File Size.
.INDENT 0.0
.INDENT 3.5
The size, in bytes, of all the instruction lists in all the functions.
-Percentage is relative to File Size. Note that this value is also included in
+Percentage is relative to File Size. Note that this value is also included in
the Function Bytes.
.UNINDENT
.UNINDENT
@@ -164,7 +157,7 @@ the Function Bytes.
.INDENT 0.0
.INDENT 3.5
The size, in bytes, of all the compaction tables in all the functions.
-Percentage is relative to File Size. Note that this value is also included in
+Percentage is relative to File Size. Note that this value is also included in
the Function Bytes.
.UNINDENT
.UNINDENT
@@ -172,8 +165,8 @@ the Function Bytes.
\fBSymbol Table Bytes\fP
.INDENT 0.0
.INDENT 3.5
-The size, in bytes, of all the symbol tables in all the functions. Percentage is
-relative to File Size. Note that this value is also included in the Function
+The size, in bytes, of all the symbol tables in all the functions. Percentage is
+relative to File Size. Note that this value is also included in the Function
Bytes.
.UNINDENT
.UNINDENT
@@ -181,8 +174,8 @@ Bytes.
\fBDependent Libraries Bytes\fP
.INDENT 0.0
.INDENT 3.5
-The size, in bytes, of the list of dependent libraries in the module. Percentage
-is relative to File Size. Note that this value is also included in the Module
+The size, in bytes, of the list of dependent libraries in the module. Percentage
+is relative to File Size. Note that this value is also included in the Module
Global Bytes.
.UNINDENT
.UNINDENT
@@ -233,7 +226,7 @@ The total number of instructions defined in all functions in the bitcode file.
.INDENT 0.0
.INDENT 3.5
The total number of long instructions defined in all functions in the bitcode
-file. Long instructions are those taking greater than 4 bytes. Typically long
+file. Long instructions are those taking greater than 4 bytes. Typically long
instructions are GetElementPtr with several indices, PHI nodes, and calls to
functions with large numbers of arguments.
.UNINDENT
@@ -278,7 +271,7 @@ The total size of the instructions in all functions in the bitcode file.
.INDENT 0.0
.INDENT 3.5
The average number of bytes per instruction across all functions in the bitcode
-file. This value is computed by dividing Total Instruction Size by Number Of
+file. This value is computed by dividing Total Instruction Size by Number Of
Instructions.
.UNINDENT
.UNINDENT
@@ -286,7 +279,7 @@ Instructions.
\fBMaximum Type Slot Number\fP
.INDENT 0.0
.INDENT 3.5
-The maximum value used for a type\(aqs slot number. Larger slot number values take
+The maximum value used for a type\(aqs slot number. Larger slot number values take
more bytes to encode.
.UNINDENT
.UNINDENT
@@ -294,7 +287,7 @@ more bytes to encode.
\fBMaximum Value Slot Number\fP
.INDENT 0.0
.INDENT 3.5
-The maximum value used for a value\(aqs slot number. Larger slot number values take
+The maximum value used for a value\(aqs slot number. Larger slot number values take
more bytes to encode.
.UNINDENT
.UNINDENT
@@ -302,7 +295,7 @@ more bytes to encode.
\fBBytes Per Value\fP
.INDENT 0.0
.INDENT 3.5
-The average size of a Value definition (of any type). This is computed by
+The average size of a Value definition (of any type). This is computed by
dividing File Size by the total number of values of any type.
.UNINDENT
.UNINDENT
@@ -317,7 +310,7 @@ The average size of a global definition (constants and global variables).
\fBBytes Per Function\fP
.INDENT 0.0
.INDENT 3.5
-The average number of bytes per function definition. This is computed by
+The average number of bytes per function definition. This is computed by
dividing Function Bytes by Number Of Functions.
.UNINDENT
.UNINDENT
@@ -419,18 +412,18 @@ The number of bytes consumed by instructions in the function.
\fBAverage Instruction Size\fP
.INDENT 0.0
.INDENT 3.5
-The average number of bytes consumed by the instructions in the function. This
-value is computed by dividing Instruction Size by Instructions.
+The average number of bytes consumed by the instructions in the function.
+This value is computed by dividing Instruction Size by Instructions.
.UNINDENT
.UNINDENT
.sp
\fBBytes Per Instruction\fP
.INDENT 0.0
.INDENT 3.5
-The average number of bytes used by the function per instruction. This value is
-computed by dividing Byte Size by Instructions. Note that this is not the same
-as Average Instruction Size. It computes a number relative to the total function
-size not just the size of the instruction list.
+The average number of bytes used by the function per instruction. This value
+is computed by dividing Byte Size by Instructions. Note that this is not the
+same as Average Instruction Size. It computes a number relative to the total
+function size not just the size of the instruction list.
.UNINDENT
.UNINDENT
.sp
@@ -469,15 +462,15 @@ Bit Rate encoding scheme.
.INDENT 0.0
.INDENT 3.5
The total number of bytes saved in this function by using the Variable Bit
-Rate encoding scheme. The percentage is relative to # of VBR Expanded Bytes.
+Rate encoding scheme. The percentage is relative to # of VBR Expanded Bytes.
.UNINDENT
.UNINDENT
.SH SEE ALSO
.sp
-llvm\-dis|llvm\-dis, \fI\%http://llvm.org/docs/BitCodeFormat.html\fP
+\fB/CommandGuide/llvm\-dis\fP, \fB/BitCodeFormat\fP
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/llvm-diff/Makefile b/usr.bin/clang/llvm-diff/Makefile
index 1a130fbdaa00..527daa22908f 100644
--- a/usr.bin/clang/llvm-diff/Makefile
+++ b/usr.bin/clang/llvm-diff/Makefile
@@ -10,7 +10,8 @@ SRCS= llvm-diff.cpp \
DiffLog.cpp \
DifferenceEngine.cpp
-LIBDEPS=llvmbitreader \
+LIBDEPS=llvmirreader \
+ llvmbitreader \
llvmasmparser \
llvmcore \
llvmsupport
diff --git a/usr.bin/clang/llvm-diff/llvm-diff.1 b/usr.bin/clang/llvm-diff/llvm-diff.1
index 21586ef957b4..9d4446edb6a1 100644
--- a/usr.bin/clang/llvm-diff/llvm-diff.1
+++ b/usr.bin/clang/llvm-diff/llvm-diff.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "LLVM-DIFF" "1" "2012-08-16" "3.2" "LLVM"
+.TH "LLVM-DIFF" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
llvm-diff \- LLVM structural 'diff'
.
@@ -72,6 +72,6 @@ massive detected differences in blocks.
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/llvm-dis/Makefile b/usr.bin/clang/llvm-dis/Makefile
index 75a57383d7e6..3fe3f78f52d0 100644
--- a/usr.bin/clang/llvm-dis/Makefile
+++ b/usr.bin/clang/llvm-dis/Makefile
@@ -6,7 +6,6 @@ PROG_CXX=llvm-dis
SRCDIR= tools/llvm-dis
SRCS= llvm-dis.cpp
-LLVM_REQUIRES_EH=
TGHDRS= Intrinsics
LIBDEPS=llvmanalysis \
diff --git a/usr.bin/clang/llvm-dis/llvm-dis.1 b/usr.bin/clang/llvm-dis/llvm-dis.1
index 28363b7601e8..fa3c012ceb75 100644
--- a/usr.bin/clang/llvm-dis/llvm-dis.1
+++ b/usr.bin/clang/llvm-dis/llvm-dis.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "LLVM-DIS" "1" "2012-08-16" "3.2" "LLVM"
+.TH "LLVM-DIS" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
llvm-dis \- LLVM disassembler
.
@@ -83,6 +83,6 @@ llvm\-as|llvm\-as
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/llvm-extract/Makefile b/usr.bin/clang/llvm-extract/Makefile
index 8aac1ab7f3d6..007c9c7a88b6 100644
--- a/usr.bin/clang/llvm-extract/Makefile
+++ b/usr.bin/clang/llvm-extract/Makefile
@@ -7,10 +7,12 @@ PROG_CXX=llvm-extract
SRCDIR= tools/llvm-extract
SRCS= llvm-extract.cpp
-LIBDEPS=llvmasmparser \
+LIBDEPS=llvmirreader \
+ llvmasmparser \
llvmbitwriter \
llvmbitreader \
llvmipo \
+ llvmobjcarcopts \
llvmvectorize \
llvmscalaropts \
llvminstcombine \
diff --git a/usr.bin/clang/llvm-extract/llvm-extract.1 b/usr.bin/clang/llvm-extract/llvm-extract.1
index fec5f071ac4b..68711244ebd8 100644
--- a/usr.bin/clang/llvm-extract/llvm-extract.1
+++ b/usr.bin/clang/llvm-extract/llvm-extract.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "LLVM-EXTRACT" "1" "2012-08-16" "3.2" "LLVM"
+.TH "LLVM-EXTRACT" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
llvm-extract \- extract a function from an LLVM module
.
@@ -123,6 +123,6 @@ bugpoint|bugpoint
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/llvm-link/Makefile b/usr.bin/clang/llvm-link/Makefile
index b76c5f4d512f..12591aeb722b 100644
--- a/usr.bin/clang/llvm-link/Makefile
+++ b/usr.bin/clang/llvm-link/Makefile
@@ -7,8 +7,10 @@ PROG_CXX=llvm-link
SRCDIR= tools/llvm-link
SRCS= llvm-link.cpp
-LIBDEPS=llvmasmparser \
+LIBDEPS=llvmirreader \
+ llvmasmparser \
llvmbitwriter \
+ llvmbitreader \
llvmlinker \
llvmtransformutils \
llvmipa \
@@ -16,8 +18,6 @@ LIBDEPS=llvmasmparser \
llvmtarget \
llvmmc \
llvmobject \
- llvmarchive \
- llvmbitreader \
llvmcore \
llvmsupport
diff --git a/usr.bin/clang/llvm-link/llvm-link.1 b/usr.bin/clang/llvm-link/llvm-link.1
index 67e4cb751dd9..46f24ee2b03f 100644
--- a/usr.bin/clang/llvm-link/llvm-link.1
+++ b/usr.bin/clang/llvm-link/llvm-link.1
@@ -1,7 +1,7 @@
.\" $FreeBSD$
-.TH "LLVM-LINK" "1" "2012-08-16" "3.2" "LLVM"
+.TH "LLVM-LINK" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
-llvm-link \- LLVM linker
+llvm-link \- LLVM bitcode linker
.
.nr rst2man-indent-level 0
.
@@ -36,84 +36,54 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
\fBllvm\-link\fP [\fIoptions\fP] \fIfilename ...\fP
.SH DESCRIPTION
.sp
-\fBllvm\-link\fP takes several LLVM bitcode files and links them together into a
-single LLVM bitcode file. It writes the output file to standard output, unless
-the \fB\-o\fP option is used to specify a filename.
-.sp
-\fBllvm\-link\fP attempts to load the input files from the current directory. If
-that fails, it looks for each file in each of the directories specified by the
-\fB\-L\fP options on the command line. The library search paths are global; each
-one is searched for every input file if necessary. The directories are searched
-in the order they were specified on the command line.
+\fBllvm\-link\fP takes several LLVM bitcode files and links them together
+into a single LLVM bitcode file. It writes the output file to standard output,
+unless the \fI\-o\fP option is used to specify a filename.
.SH OPTIONS
-.sp
-\fB\-L\fP \fIdirectory\fP
.INDENT 0.0
-.INDENT 3.5
-Add the specified \fIdirectory\fP to the library search path. When looking for
-libraries, \fBllvm\-link\fP will look in path name for libraries. This option can be
-specified multiple times; \fBllvm\-link\fP will search inside these directories in
-the order in which they were specified on the command line.
-.UNINDENT
+.TP
+.B \-f
+Enable binary output on terminals. Normally, \fBllvm\-link\fP will refuse
+to write raw bitcode output if the output stream is a terminal. With this
+option, \fBllvm\-link\fP will write raw bitcode regardless of the output
+device.
.UNINDENT
-.sp
-\fB\-f\fP
.INDENT 0.0
-.INDENT 3.5
-Enable binary output on terminals. Normally, \fBllvm\-link\fP will refuse to
-write raw bitcode output if the output stream is a terminal. With this option,
-\fBllvm\-link\fP will write raw bitcode regardless of the output device.
-.UNINDENT
-.UNINDENT
-.sp
-\fB\-o\fP \fIfilename\fP
-.INDENT 0.0
-.INDENT 3.5
-Specify the output file name. If \fIfilename\fP is \fB\-\fP, then \fBllvm\-link\fP will
-write its output to standard output.
-.UNINDENT
+.TP
+.B \-o filename
+Specify the output file name. If \fBfilename\fP is "\fB\-\fP", then
+\fBllvm\-link\fP will write its output to standard output.
.UNINDENT
-.sp
-\fB\-S\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-S
Write output in LLVM intermediate language (instead of bitcode).
.UNINDENT
-.UNINDENT
-.sp
-\fB\-d\fP
.INDENT 0.0
-.INDENT 3.5
-If specified, \fBllvm\-link\fP prints a human\-readable version of the output
-bitcode file to standard error.
+.TP
+.B \-d
+If specified, \fBllvm\-link\fP prints a human\-readable version of the
+output bitcode file to standard error.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-help\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-help
Print a summary of command line options.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-v\fP
.INDENT 0.0
-.INDENT 3.5
-Verbose mode. Print information about what \fBllvm\-link\fP is doing. This
-typically includes a message for each bitcode file linked in and for each
+.TP
+.B \-v
+Verbose mode. Print information about what \fBllvm\-link\fP is doing.
+This typically includes a message for each bitcode file linked in and for each
library found.
.UNINDENT
-.UNINDENT
.SH EXIT STATUS
.sp
If \fBllvm\-link\fP succeeds, it will exit with 0. Otherwise, if an error
occurs, it will exit with a non\-zero value.
-.SH SEE ALSO
-.sp
-gccld|gccld
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/llvm-mc/Makefile b/usr.bin/clang/llvm-mc/Makefile
index c3821c41e1bf..55a702b2850e 100644
--- a/usr.bin/clang/llvm-mc/Makefile
+++ b/usr.bin/clang/llvm-mc/Makefile
@@ -11,33 +11,34 @@ SRCS= llvm-mc.cpp \
LIBDEPS=llvmmcdisassembler \
llvmarmdisassembler \
- llvmarmasmparser \
llvmarmcodegen \
+ llvmarmasmparser \
llvmarmdesc \
llvmarminfo \
llvmarminstprinter \
- llvmmipsasmparser \
+ llvmmipsdisassembler \
llvmmipscodegen \
+ llvmmipsasmparser \
llvmmipsdesc \
- llvmmipsinstprinter \
- llvmmipsdisassembler \
llvmmipsinfo \
+ llvmmipsinstprinter \
llvmpowerpccodegen \
llvmpowerpcdesc \
llvmpowerpcinfo \
llvmpowerpcinstprinter \
+ llvmx86disassembler \
llvmx86asmparser \
llvmx86codegen \
llvmselectiondag \
llvmasmprinter \
llvmmcparser \
llvmcodegen \
+ llvmobjcarcopts \
llvmscalaropts \
llvminstcombine \
llvmtransformutils \
llvmipa \
llvmanalysis \
- llvmx86disassembler \
llvmx86desc \
llvmx86info \
llvmtarget \
diff --git a/usr.bin/clang/llvm-nm/llvm-nm.1 b/usr.bin/clang/llvm-nm/llvm-nm.1
index 8df8f3f2ef22..ddfabadffcfb 100644
--- a/usr.bin/clang/llvm-nm/llvm-nm.1
+++ b/usr.bin/clang/llvm-nm/llvm-nm.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "LLVM-NM" "1" "2012-08-16" "3.2" "LLVM"
+.TH "LLVM-NM" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
llvm-nm \- list LLVM bitcode and object file's symbol table
.
@@ -208,6 +208,6 @@ llvm\-dis|llvm\-dis, ar(1), nm(1)
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/llvm-objdump/Makefile b/usr.bin/clang/llvm-objdump/Makefile
index b7e5031b7e6a..9e215a1ea528 100644
--- a/usr.bin/clang/llvm-objdump/Makefile
+++ b/usr.bin/clang/llvm-objdump/Makefile
@@ -4,42 +4,47 @@ NO_MAN=
.include <bsd.own.mk>
PROG_CXX=llvm-objdump
+DPADD= ${LIBZ}
+LDADD= -lz
SRCDIR= tools/llvm-objdump
SRCS= llvm-objdump.cpp \
+ COFFDump.cpp \
+ ELFDump.cpp \
MachODump.cpp \
- MCFunction.cpp \
+ MCFunction.cpp
LIBDEPS=llvmmcdisassembler \
llvmdebuginfo \
llvmarmdisassembler \
- llvmarmasmparser \
llvmarmcodegen \
+ llvmarmasmparser \
llvmarmdesc \
llvmarminfo \
llvmarminstprinter \
- llvmmipsasmparser \
+ llvmmipsdisassembler \
llvmmipscodegen \
+ llvmmipsasmparser \
llvmmipsdesc \
- llvmmipsinstprinter \
- llvmmipsdisassembler \
llvmmipsinfo \
+ llvmmipsinstprinter \
llvmpowerpccodegen \
llvmpowerpcdesc \
llvmpowerpcinfo \
llvmpowerpcinstprinter \
+ llvmx86disassembler \
llvmx86asmparser \
llvmx86codegen \
llvmselectiondag \
llvmasmprinter \
llvmmcparser \
llvmcodegen \
+ llvmobjcarcopts \
llvmscalaropts \
llvminstcombine \
llvmtransformutils \
llvmipa \
llvmanalysis \
- llvmx86disassembler \
llvmx86desc \
llvmx86info \
llvmtarget \
diff --git a/usr.bin/clang/llvm-prof/llvm-prof.1 b/usr.bin/clang/llvm-prof/llvm-prof.1
index fd34cd7ecd4a..ab5b60386a06 100644
--- a/usr.bin/clang/llvm-prof/llvm-prof.1
+++ b/usr.bin/clang/llvm-prof/llvm-prof.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "LLVM-PROF" "1" "2012-08-16" "3.2" "LLVM"
+.TH "LLVM-PROF" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
llvm-prof \- print execution profile of LLVM program
.
@@ -81,6 +81,6 @@ information. Otherwise, it exits with zero.
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/llvm-ranlib/Makefile b/usr.bin/clang/llvm-ranlib/Makefile
index 108ca7848f32..2414e1fed6c6 100644
--- a/usr.bin/clang/llvm-ranlib/Makefile
+++ b/usr.bin/clang/llvm-ranlib/Makefile
@@ -6,7 +6,6 @@ PROG_CXX=llvm-ranlib
SRCDIR= tools/llvm-ranlib
SRCS= llvm-ranlib.cpp
-LLVM_REQUIRES_EH=
LIBDEPS=llvmarchive \
llvmbitreader \
diff --git a/usr.bin/clang/llvm-ranlib/llvm-ranlib.1 b/usr.bin/clang/llvm-ranlib/llvm-ranlib.1
index 60ada0217a0d..ead004aac056 100644
--- a/usr.bin/clang/llvm-ranlib/llvm-ranlib.1
+++ b/usr.bin/clang/llvm-ranlib/llvm-ranlib.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "LLVM-RANLIB" "1" "2012-08-16" "3.2" "LLVM"
+.TH "LLVM-RANLIB" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
llvm-ranlib \- Generate index for LLVM archive
.
@@ -75,6 +75,6 @@ llvm\-ar|llvm\-ar, ranlib(1)
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/llvm-rtdyld/Makefile b/usr.bin/clang/llvm-rtdyld/Makefile
index b9b49ce5c99d..aae366a9baa7 100644
--- a/usr.bin/clang/llvm-rtdyld/Makefile
+++ b/usr.bin/clang/llvm-rtdyld/Makefile
@@ -4,41 +4,45 @@ NO_MAN=
.include <bsd.own.mk>
PROG_CXX=llvm-rtdyld
+DPADD= ${LIBZ}
+LDADD= -lz
SRCDIR= tools/llvm-rtdyld
SRCS= llvm-rtdyld.cpp
-LIBDEPS=llvmjit \
+LIBDEPS=llvmdebuginfo \
+ llvmjit \
llvmexecutionengine \
llvmruntimedyld \
llvmarmdisassembler \
- llvmarmasmparser \
llvmarmcodegen \
+ llvmarmasmparser \
llvmarmdesc \
llvmarminfo \
llvmarminstprinter \
- llvmmipsasmparser \
+ llvmmipsdisassembler \
llvmmipscodegen \
+ llvmmipsasmparser \
llvmmipsdesc \
- llvmmipsinstprinter \
- llvmmipsdisassembler \
llvmmipsinfo \
+ llvmmipsinstprinter \
llvmpowerpccodegen \
llvmpowerpcdesc \
llvmpowerpcinfo \
llvmpowerpcinstprinter \
+ llvmx86disassembler \
llvmx86asmparser \
llvmx86codegen \
llvmselectiondag \
llvmasmprinter \
llvmmcparser \
llvmcodegen \
+ llvmobjcarcopts \
llvmscalaropts \
llvminstcombine \
llvmtransformutils \
llvmipa \
llvmanalysis \
- llvmx86disassembler \
llvmx86desc \
llvmx86info \
llvmtarget \
diff --git a/usr.bin/clang/opt/Makefile b/usr.bin/clang/opt/Makefile
index 3af07d43c4a0..e881329538d5 100644
--- a/usr.bin/clang/opt/Makefile
+++ b/usr.bin/clang/opt/Makefile
@@ -12,34 +12,35 @@ SRCS= AnalysisWrappers.cpp \
TGHDRS= Intrinsics
LIBDEPS=llvmarmdisassembler \
- llvmarmasmparser \
llvmarmcodegen \
+ llvmarmasmparser \
llvmarmdesc \
llvmarminfo \
llvmarminstprinter \
- llvmmipsasmparser \
+ llvmmipsdisassembler \
llvmmipscodegen \
+ llvmmipsasmparser \
llvmmipsdesc \
- llvmmipsinstprinter \
- llvmmipsdisassembler \
llvmmipsinfo \
+ llvmmipsinstprinter \
llvmpowerpccodegen \
llvmpowerpcdesc \
llvmpowerpcinfo \
llvmpowerpcinstprinter \
+ llvmx86disassembler \
llvmx86asmparser \
llvmx86codegen \
llvmselectiondag \
llvmasmprinter \
llvmmcparser \
llvmcodegen \
- llvmx86disassembler \
llvmx86desc \
llvmx86info \
llvmx86instprinter \
llvmx86utils \
llvmipo \
llvmvectorize \
+ llvmobjcarcopts \
llvmscalaropts \
llvminstcombine \
llvminstrumentation \
@@ -49,6 +50,7 @@ LIBDEPS=llvmarmdisassembler \
llvmtarget \
llvmmc \
llvmobject \
+ llvmirreader \
llvmasmparser \
llvmbitwriter \
llvmbitreader \
diff --git a/usr.bin/clang/opt/opt.1 b/usr.bin/clang/opt/opt.1
index a69bb65aa8e3..4ac0caa796d6 100644
--- a/usr.bin/clang/opt/opt.1
+++ b/usr.bin/clang/opt/opt.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "OPT" "1" "2012-08-16" "3.2" "LLVM"
+.TH "OPT" "1" "2013-06-10" "3.3" "LLVM"
.SH NAME
opt \- LLVM optimizer
.
@@ -36,78 +36,70 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
\fBopt\fP [\fIoptions\fP] [\fIfilename\fP]
.SH DESCRIPTION
.sp
-The \fBopt\fP command is the modular LLVM optimizer and analyzer. It takes LLVM
-source files as input, runs the specified optimizations or analyses on it, and then
-outputs the optimized file or the analysis results. The function of
-\fBopt\fP depends on whether the \fB\-analyze\fP option is given.
+The \fBopt\fP command is the modular LLVM optimizer and analyzer. It
+takes LLVM source files as input, runs the specified optimizations or analyses
+on it, and then outputs the optimized file or the analysis results. The
+function of \fBopt\fP depends on whether the \fI\-analyze\fP option is
+given.
.sp
-When \fB\-analyze\fP is specified, \fBopt\fP performs various analyses of the input
-source. It will usually print the results on standard output, but in a few
-cases, it will print output to standard error or generate a file with the
-analysis output, which is usually done when the output is meant for another
+When \fI\-analyze\fP is specified, \fBopt\fP performs various analyses
+of the input source. It will usually print the results on standard output, but
+in a few cases, it will print output to standard error or generate a file with
+the analysis output, which is usually done when the output is meant for another
program.
.sp
-While \fB\-analyze\fP is \fInot\fP given, \fBopt\fP attempts to produce an optimized
-output file. The optimizations available via \fBopt\fP depend upon what
-libraries were linked into it as well as any additional libraries that have
-been loaded with the \fB\-load\fP option. Use the \fB\-help\fP option to determine
-what optimizations you can use.
+While \fI\-analyze\fP is \fInot\fP given, \fBopt\fP attempts to produce an
+optimized output file. The optimizations available via \fBopt\fP depend
+upon what libraries were linked into it as well as any additional libraries
+that have been loaded with the \fI\%-load\fP option. Use the \fI\%-help\fP
+option to determine what optimizations you can use.
.sp
-If \fIfilename\fP is omitted from the command line or is \fI\-\fP, \fBopt\fP reads its
-input from standard input. Inputs can be in either the LLVM assembly language
-format (.ll) or the LLVM bitcode format (.bc).
+If \fBfilename\fP is omitted from the command line or is "\fB\-\fP", \fBopt\fP
+reads its input from standard input. Inputs can be in either the LLVM assembly
+language format (\fB.ll\fP) or the LLVM bitcode format (\fB.bc\fP).
.sp
-If an output filename is not specified with the \fB\-o\fP option, \fBopt\fP
-writes its output to the standard output.
+If an output filename is not specified with the \fI\%-o\fP option,
+\fBopt\fP writes its output to the standard output.
.SH OPTIONS
-.sp
-\fB\-f\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-f
Enable binary output on terminals. Normally, \fBopt\fP will refuse to
-write raw bitcode output if the output stream is a terminal. With this option,
+write raw bitcode output if the output stream is a terminal. With this option,
\fBopt\fP will write raw bitcode regardless of the output device.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-help\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-help
Print a summary of command line options.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-o\fP \fIfilename\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-o <filename>
Specify the output filename.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-S\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-S
Write output in LLVM intermediate language (instead of bitcode).
.UNINDENT
-.UNINDENT
-.sp
-\fB\-{passname}\fP
.INDENT 0.0
-.INDENT 3.5
-\fBopt\fP provides the ability to run any of LLVM\(aqs optimization or analysis passes
-in any order. The \fB\-help\fP option lists all the passes available. The order in
-which the options occur on the command line are the order in which they are
-executed (within pass constraints).
-.UNINDENT
+.TP
+.B \-{passname}
+\fBopt\fP provides the ability to run any of LLVM\(aqs optimization or
+analysis passes in any order. The \fI\%-help\fP option lists all the passes
+available. The order in which the options occur on the command line are the
+order in which they are executed (within pass constraints).
.UNINDENT
-.sp
-\fB\-std\-compile\-opts\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-std\-compile\-opts
This is short hand for a standard list of \fIcompile time optimization\fP passes.
-This is typically used to optimize the output from the llvm\-gcc front end. It
-might be useful for other front end compilers as well. To discover the full set
-of options available, use the following command:
+This is typically used to optimize the output from the llvm\-gcc front end. It
+might be useful for other front end compilers as well. To discover the full
+set of options available, use the following command:
+.INDENT 7.0
+.INDENT 3.5
.sp
.nf
.ft C
@@ -116,82 +108,70 @@ llvm\-as < /dev/null | opt \-std\-compile\-opts \-disable\-output \-debug\-pass=
.fi
.UNINDENT
.UNINDENT
-.sp
-\fB\-disable\-inlining\fP
-.INDENT 0.0
-.INDENT 3.5
-This option is only meaningful when \fB\-std\-compile\-opts\fP is given. It simply
-removes the inlining pass from the standard list.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-disable\-opt\fP
.INDENT 0.0
-.INDENT 3.5
-This option is only meaningful when \fB\-std\-compile\-opts\fP is given. It disables
-most, but not all, of the \fB\-std\-compile\-opts\fP. The ones that remain are
-\fB\-verify\fP, \fB\-lower\-setjmp\fP, and \fB\-funcresolve\fP.
+.TP
+.B \-disable\-inlining
+This option is only meaningful when \fI\%-std-compile-opts\fP is given. It
+simply removes the inlining pass from the standard list.
.UNINDENT
+.INDENT 0.0
+.TP
+.B \-disable\-opt
+This option is only meaningful when \fI\%-std-compile-opts\fP is given. It
+disables most, but not all, of the \fI\%-std-compile-opts\fP. The ones that
+remain are \fI\-verify\fP, \fI\-lower\-setjmp\fP, and
+\fI\-funcresolve\fP.
.UNINDENT
-.sp
-\fB\-strip\-debug\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-strip\-debug
This option causes opt to strip debug information from the module before
-applying other optimizations. It is essentially the same as \fB\-strip\fP but it
-ensures that stripping of debug information is done first.
+applying other optimizations. It is essentially the same as \fI\-strip\fP
+but it ensures that stripping of debug information is done first.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-verify\-each\fP
.INDENT 0.0
-.INDENT 3.5
-This option causes opt to add a verify pass after every pass otherwise specified
-on the command line (including \fB\-verify\fP). This is useful for cases where it
-is suspected that a pass is creating an invalid module but it is not clear which
-pass is doing it. The combination of \fB\-std\-compile\-opts\fP and \fB\-verify\-each\fP
-can quickly track down this kind of problem.
+.TP
+.B \-verify\-each
+This option causes opt to add a verify pass after every pass otherwise
+specified on the command line (including \fI\-verify\fP). This is useful
+for cases where it is suspected that a pass is creating an invalid module but
+it is not clear which pass is doing it. The combination of
+\fI\%-std-compile-opts\fP and \fI\%-verify-each\fP can quickly track down
+this kind of problem.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-profile\-info\-file\fP \fIfilename\fP
.INDENT 0.0
-.INDENT 3.5
-Specify the name of the file loaded by the \-profile\-loader option.
+.TP
+.B \-profile\-info\-file <filename>
+Specify the name of the file loaded by the \fB\-profile\-loader\fP option.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-stats\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-stats
Print statistics.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-time\-passes\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-time\-passes
Record the amount of time needed for each pass and print it to standard
error.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-debug\fP
.INDENT 0.0
-.INDENT 3.5
-If this is a debug build, this option will enable debug printouts
-from passes which use the \fIDEBUG()\fP macro. See the \fBLLVM Programmer\(aqs
-Manual\fP, section \fI#DEBUG\fP for more information.
+.TP
+.B \-debug
+If this is a debug build, this option will enable debug printouts from passes
+which use the \fBDEBUG()\fP macro. See the \fI\%LLVM Programmer's Manual\fP, section \fB#DEBUG\fP for more information.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-load\fP=\fIplugin\fP
.INDENT 0.0
+.TP
+.B \-load=<plugin>
+Load the dynamic object \fBplugin\fP. This object should register new
+optimization or analysis passes. Once loaded, the object will add new command
+line options to enable various optimizations or analyses. To see the new
+complete list of optimizations, use the \fI\%-help\fP and \fI\%-load\fP
+options together. For example:
+.INDENT 7.0
.INDENT 3.5
-Load the dynamic object \fIplugin\fP. This object should register new optimization
-or analysis passes. Once loaded, the object will add new command line options to
-enable various optimizations or analyses. To see the new complete list of
-optimizations, use the \fB\-help\fP and \fB\-load\fP options together. For example:
.sp
.nf
.ft C
@@ -200,13 +180,12 @@ opt \-load=plugin.so \-help
.fi
.UNINDENT
.UNINDENT
-.sp
-\fB\-p\fP
+.UNINDENT
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-p
Print module after each transformation.
.UNINDENT
-.UNINDENT
.SH EXIT STATUS
.sp
If \fBopt\fP succeeds, it will exit with 0. Otherwise, if an error
@@ -214,6 +193,6 @@ occurs, it will exit with a non\-zero value.
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.
diff --git a/usr.bin/clang/tblgen/Makefile b/usr.bin/clang/tblgen/Makefile
index 7cae5da9950d..f06150e90562 100644
--- a/usr.bin/clang/tblgen/Makefile
+++ b/usr.bin/clang/tblgen/Makefile
@@ -8,6 +8,7 @@ SRCDIR= utils/TableGen
SRCS= AsmMatcherEmitter.cpp \
AsmWriterEmitter.cpp \
AsmWriterInst.cpp \
+ CTagsEmitter.cpp \
CallingConvEmitter.cpp \
CodeEmitterGen.cpp \
CodeGenDAGPatterns.cpp \
@@ -23,11 +24,11 @@ SRCS= AsmMatcherEmitter.cpp \
DAGISelMatcherOpt.cpp \
DFAPacketizerEmitter.cpp \
DisassemblerEmitter.cpp \
- EDEmitter.cpp \
FastISelEmitter.cpp \
FixedLenDecoderEmitter.cpp \
InstrInfoEmitter.cpp \
IntrinsicEmitter.cpp \
+ OptParserEmitter.cpp \
PseudoLoweringEmitter.cpp \
RegisterInfoEmitter.cpp \
SetTheory.cpp \
@@ -37,7 +38,6 @@ SRCS= AsmMatcherEmitter.cpp \
X86DisassemblerTables.cpp \
X86ModRMFilters.cpp \
X86RecognizableInstr.cpp
-LLVM_REQUIRES_EH=
LIBDEPS=llvmtablegen \
llvmsupport
diff --git a/usr.bin/clang/tblgen/tblgen.1 b/usr.bin/clang/tblgen/tblgen.1
index d6d127e58f93..b0d0697e7bb5 100644
--- a/usr.bin/clang/tblgen/tblgen.1
+++ b/usr.bin/clang/tblgen/tblgen.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.TH "TBLGEN" "1" "2012-08-16" "3.2" "LLVM"
+.TH "TBLGEN" "1" "2013-04-11" "3.3" "LLVM"
.SH NAME
tblgen \- Target Description To C++ Code Generator
.
@@ -36,188 +36,140 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
\fBtblgen\fP [\fIoptions\fP] [\fIfilename\fP]
.SH DESCRIPTION
.sp
-\fBtblgen\fP translates from target description (.td) files into C++ code that can
-be included in the definition of an LLVM target library. Most users of LLVM will
-not need to use this program. It is only for assisting with writing an LLVM
-target backend.
+\fBtblgen\fP translates from target description (\fB.td\fP) files into C++
+code that can be included in the definition of an LLVM target library. Most
+users of LLVM will not need to use this program. It is only for assisting with
+writing an LLVM target backend.
.sp
The input and output of \fBtblgen\fP is beyond the scope of this short
-introduction. Please see the \fICodeGeneration\fP page in the LLVM documentation.
+introduction. Please see \fB../TableGenFundamentals\fP.
.sp
-The \fIfilename\fP argument specifies the name of a Target Description (.td) file
-to read as input.
+The \fIfilename\fP argument specifies the name of a Target Description (\fB.td\fP)
+file to read as input.
.SH OPTIONS
-.sp
-\fB\-help\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-help
Print a summary of command line options.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-o\fP \fIfilename\fP
.INDENT 0.0
-.INDENT 3.5
-Specify the output file name. If \fIfilename\fP is \fB\-\fP, then \fBtblgen\fP
-sends its output to standard output.
+.TP
+.B \-o filename
+Specify the output file name. If \fBfilename\fP is \fB\-\fP, then
+\fBtblgen\fP sends its output to standard output.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-I\fP \fIdirectory\fP
.INDENT 0.0
-.INDENT 3.5
-Specify where to find other target description files for inclusion. The
-\fIdirectory\fP value should be a full or partial path to a directory that contains
-target description files.
-.UNINDENT
+.TP
+.B \-I directory
+Specify where to find other target description files for inclusion. The
+\fBdirectory\fP value should be a full or partial path to a directory that
+contains target description files.
.UNINDENT
-.sp
-\fB\-asmparsernum\fP \fIN\fP
.INDENT 0.0
-.INDENT 3.5
-Make \-gen\-asm\-parser emit assembly writer number \fIN\fP.
-.UNINDENT
+.TP
+.B \-asmparsernum N
+Make \-gen\-asm\-parser emit assembly writer number \fBN\fP.
.UNINDENT
-.sp
-\fB\-asmwriternum\fP \fIN\fP
.INDENT 0.0
-.INDENT 3.5
-Make \-gen\-asm\-writer emit assembly writer number \fIN\fP.
+.TP
+.B \-asmwriternum N
+Make \-gen\-asm\-writer emit assembly writer number \fBN\fP.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-class\fP \fIclass Name\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-class className
Print the enumeration list for this class.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-print\-records\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-print\-records
Print all records to standard output (default).
.UNINDENT
-.UNINDENT
-.sp
-\fB\-print\-enums\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-print\-enums
Print enumeration values for a class.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-print\-sets\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-print\-sets
Print expanded sets for testing DAG exprs.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-emitter\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-emitter
Generate machine code emitter.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-register\-info\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-register\-info
Generate registers and register classes info.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-instr\-info\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-instr\-info
Generate instruction descriptions.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-asm\-writer\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-asm\-writer
Generate the assembly writer.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-disassembler\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-disassembler
Generate disassembler.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-pseudo\-lowering\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-pseudo\-lowering
Generate pseudo instruction lowering.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-dag\-isel\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-dag\-isel
Generate a DAG (Directed Acycle Graph) instruction selector.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-asm\-matcher\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-asm\-matcher
Generate assembly instruction matcher.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-dfa\-packetizer\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-dfa\-packetizer
Generate DFA Packetizer for VLIW targets.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-fast\-isel\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-fast\-isel
Generate a "fast" instruction selector.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-subtarget\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-subtarget
Generate subtarget enumerations.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-intrinsic\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-intrinsic
Generate intrinsic information.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-tgt\-intrinsic\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-tgt\-intrinsic
Generate target intrinsic information.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-gen\-enhanced\-disassembly\-info\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-gen\-enhanced\-disassembly\-info
Generate enhanced disassembly info.
.UNINDENT
-.UNINDENT
-.sp
-\fB\-version\fP
.INDENT 0.0
-.INDENT 3.5
+.TP
+.B \-version
Show the version number of this program.
.UNINDENT
-.UNINDENT
.SH EXIT STATUS
.sp
If \fBtblgen\fP succeeds, it will exit with 0. Otherwise, if an error
@@ -225,6 +177,6 @@ occurs, it will exit with a non\-zero value.
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
-2012, LLVM Project
+2003-2013, LLVM Project
.\" Generated by docutils manpage writer.
.