oota-llvm.git
10 years ago[cleanup] Fix a typo in the path.
Chandler Carruth [Tue, 4 Mar 2014 12:33:40 +0000 (12:33 +0000)]
[cleanup] Fix a typo in the path.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202840 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move the PassNameParser to the IR library as it deals in the
Chandler Carruth [Tue, 4 Mar 2014 12:32:42 +0000 (12:32 +0000)]
[Modules] Move the PassNameParser to the IR library as it deals in the
PassInfo structures of the legacy pass manager. Also give it the Legacy
prefix as it is not a particularly widely used header.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202839 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move the ConstantRange class into the IR library. This is
Chandler Carruth [Tue, 4 Mar 2014 12:24:34 +0000 (12:24 +0000)]
[Modules] Move the ConstantRange class into the IR library. This is
a bit surprising, as the class is almost entirely abstracted away from
any particular IR, however it encodes the comparsion predicates which
mutate ranges as ICmp predicate codes. This is reasonable as they're
used for both instructions and constants. Thus, it belongs in the IR
library with instructions and constants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202838 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Stop including CFG.h from GenericDomTree.h. This used to be
Chandler Carruth [Tue, 4 Mar 2014 12:11:55 +0000 (12:11 +0000)]
[Modules] Stop including CFG.h from GenericDomTree.h. This used to be
necessary, but is no longer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202836 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move the PredIteratorCache into the IR library -- it is
Chandler Carruth [Tue, 4 Mar 2014 12:09:19 +0000 (12:09 +0000)]
[Modules] Move the PredIteratorCache into the IR library -- it is
hardcoded to use IR BasicBlocks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202835 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move the NoFolder into the IR library as it creates
Chandler Carruth [Tue, 4 Mar 2014 12:05:47 +0000 (12:05 +0000)]
[Modules] Move the NoFolder into the IR library as it creates
instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202834 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move the ConstantFolder into the IR library where it can
Chandler Carruth [Tue, 4 Mar 2014 12:02:47 +0000 (12:02 +0000)]
[Modules] Move the ConstantFolder into the IR library where it can
reference the ConstantExpr implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202833 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move the TargetFolder into the Analysis library. Historically,
Chandler Carruth [Tue, 4 Mar 2014 11:59:06 +0000 (11:59 +0000)]
[Modules] Move the TargetFolder into the Analysis library. Historically,
this would have been required because of the use of DataLayout, but that
has moved into the IR proper. It is still required because this folder
uses the constant folding in the analysis library (which uses the
datalayout) as the more aggressive basis of its folder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202832 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move CFG.h to the IR library as it defines graph traits over
Chandler Carruth [Tue, 4 Mar 2014 11:45:46 +0000 (11:45 +0000)]
[Modules] Move CFG.h to the IR library as it defines graph traits over
IR types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202827 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Delete DataFlow.h rather than move it to the IR library. No
Chandler Carruth [Tue, 4 Mar 2014 11:33:42 +0000 (11:33 +0000)]
[Modules] Delete DataFlow.h rather than move it to the IR library. No
one in the tree (or in Polly) is using this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202825 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move ValueMap to the IR library. While this class does not
Chandler Carruth [Tue, 4 Mar 2014 11:26:31 +0000 (11:26 +0000)]
[Modules] Move ValueMap to the IR library. While this class does not
directly care about the Value class (it is templated so that the key can
be any arbitrary Value subclass), it is in fact concretely tied to the
Value class through the ValueHandle's CallbackVH interface which relies
on the key type being some Value subclass to establish the value handle
chain.

Ironically, the unittest is already in the right library.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202824 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move ValueHandle into the IR library where Value itself lives.
Chandler Carruth [Tue, 4 Mar 2014 11:17:44 +0000 (11:17 +0000)]
[Modules] Move ValueHandle into the IR library where Value itself lives.

Move the test for this class into the IR unittests as well.

This uncovers that ValueMap too is in the IR library. Ironically, the
unittest for ValueMap is useless in the Support library (honestly, so
was the ValueHandle test) and so it already lives in the IR unittests.
Mmmm, tasty layering.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202821 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move the LLVM IR pattern match header into the IR library, it
Chandler Carruth [Tue, 4 Mar 2014 11:08:18 +0000 (11:08 +0000)]
[Modules] Move the LLVM IR pattern match header into the IR library, it
obviously is coupled to the IR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202818 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move CallSite into the IR library where it belogs. It is
Chandler Carruth [Tue, 4 Mar 2014 11:01:28 +0000 (11:01 +0000)]
[Modules] Move CallSite into the IR library where it belogs. It is
abstracting between a CallInst and an InvokeInst, both of which are IR
concepts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202816 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move GetElementPtrTypeIterator into the IR library. As its
Chandler Carruth [Tue, 4 Mar 2014 10:40:04 +0000 (10:40 +0000)]
[Modules] Move GetElementPtrTypeIterator into the IR library. As its
name might indicate, it is an iterator over the types in an instruction
in the IR.... You see where this is going.

Another step of modularizing the support library.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202815 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Modules] Move InstIterator out of the Support library, where it had no
Chandler Carruth [Tue, 4 Mar 2014 10:30:26 +0000 (10:30 +0000)]
[Modules] Move InstIterator out of the Support library, where it had no
business.

This header includes Function and BasicBlock and directly uses the
interfaces of both classes. It has to do with the IR, it even has that
in the name. =] Put it in the library it belongs to.

This is one step toward making LLVM's Support library survive a C++
modules bootstrap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202814 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[cleanup] Re-sort all the includes with utils/sort_includes.py.
Chandler Carruth [Tue, 4 Mar 2014 10:07:28 +0000 (10:07 +0000)]
[cleanup] Re-sort all the includes with utils/sort_includes.py.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202811 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemove unused typedef
Timur Iskhodzhanov [Tue, 4 Mar 2014 09:57:00 +0000 (09:57 +0000)]
Remove unused typedef

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202808 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoThis patch implements .set mips32r2 directive and sets appropriate feature bits....
Vladimir Medic [Tue, 4 Mar 2014 09:54:09 +0000 (09:54 +0000)]
This patch implements .set mips32r2 directive and sets appropriate feature bits. It also introduces helper functions that are used to set and clear feature bits as necessary. This directive is a counterpart of -mips32r2 command line options with the exception that it does not influence elf header flags. The usage example is gives in test file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202807 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoCleaning up a bunch of pre-Visual C++ 2012 build hacks.
Yaron Keren [Tue, 4 Mar 2014 09:23:33 +0000 (09:23 +0000)]
Cleaning up a bunch of pre-Visual C++ 2012 build hacks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202806 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[cleanup] Add a getOperandNo method to the Use class and implement it
Chandler Carruth [Tue, 4 Mar 2014 09:19:43 +0000 (09:19 +0000)]
[cleanup] Add a getOperandNo method to the Use class and implement it
out-of-line so that it can refer to the methods on User. As
a consequence, this removes the need to define one template method if
value_use_iterator in the extremely strange User.h header (!!!).

This makse Use.h slightly less peculiar. The only remaining real
peculiarity is the definition of Use::set in Value.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202805 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[cleanup] Use early exit and simpler temporary variables to clarify the
Chandler Carruth [Tue, 4 Mar 2014 09:00:15 +0000 (09:00 +0000)]
[cleanup] Use early exit and simpler temporary variables to clarify the
swap implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202802 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix gcc -Wunused-but-set-variable warning.
Patrik Hagglund [Tue, 4 Mar 2014 08:55:18 +0000 (08:55 +0000)]
Fix gcc -Wunused-but-set-variable warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202800 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[cleanup] Run clang-format over the Use code. It was *really*
Chandler Carruth [Tue, 4 Mar 2014 08:53:41 +0000 (08:53 +0000)]
[cleanup] Run clang-format over the Use code. It was *really*
inconsistent both with itself and with LLVM at large with formatting.
The *s were on the wrong side, the indent was off, etc etc. This is much
cleaner.

Also, go clang-format laying out the array of tags in nice columns.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202799 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[cleanup] Tidy up and modernize comments and the definition order for
Chandler Carruth [Tue, 4 Mar 2014 08:51:00 +0000 (08:51 +0000)]
[cleanup] Tidy up and modernize comments and the definition order for
the Use class.

More cleanups to come here. This class just needs some TLC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202798 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoPBQP/Graph.h: Prune @return in setNodeCosts, possibly copypasto. [-Wdocumentation]
NAKAMURA Takumi [Tue, 4 Mar 2014 07:27:08 +0000 (07:27 +0000)]
PBQP/Graph.h: Prune @return in setNodeCosts, possibly copypasto. [-Wdocumentation]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202795 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoPBQP/Graph.h: s/os/OS/ in @param. [-Wdocumentation]
NAKAMURA Takumi [Tue, 4 Mar 2014 07:26:55 +0000 (07:26 +0000)]
PBQP/Graph.h: s/os/OS/ in @param. [-Wdocumentation]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202794 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C+11] Add 'override' keyword to methods in the support library.
Craig Topper [Tue, 4 Mar 2014 06:24:11 +0000 (06:24 +0000)]
[C+11] Add 'override' keyword to methods in the support library.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202791 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix typo.
Rui Ueyama [Tue, 4 Mar 2014 04:22:41 +0000 (04:22 +0000)]
Fix typo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202787 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUse auto for readability.
Rui Ueyama [Tue, 4 Mar 2014 04:15:59 +0000 (04:15 +0000)]
Use auto for readability.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202786 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-objdump: Print x64 unwind info in executable.
Rui Ueyama [Tue, 4 Mar 2014 04:00:55 +0000 (04:00 +0000)]
llvm-objdump: Print x64 unwind info in executable.

The original code does not work correctly on executable files because the
code is written in such a way that only object files are assumed to be given
to llvm-objdump.

Contents of RuntimeFunction are different between executables and objects. In
executables, fields in RuntimeFunction have actual addresses to unwind info
structures. On the other hand, in object files, the fields have zero value,
but instead there are relocations pointing to the fields, so that Linker will
fill them at link-time.

So, when we are reading an object file, we need to use relocation info to
find the location of unwind info. When executable, we should just look at the
values in RuntimeFunction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202785 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMake a test for llvm-objdump a little bit more readable.
Rui Ueyama [Tue, 4 Mar 2014 03:23:19 +0000 (03:23 +0000)]
Make a test for llvm-objdump a little bit more readable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202783 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-objdump: Split printRuntimeFunction to two small functions.
Rui Ueyama [Tue, 4 Mar 2014 03:08:45 +0000 (03:08 +0000)]
llvm-objdump: Split printRuntimeFunction to two small functions.

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202781 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64]Fix improper diagnostics about offset range of load/store instructions.
Kevin Qin [Tue, 4 Mar 2014 02:05:13 +0000 (02:05 +0000)]
[AArch64]Fix improper diagnostics about offset range of load/store instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202775 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMC: Fix Intel assembly parser for [global + offset]
Reid Kleckner [Tue, 4 Mar 2014 00:33:17 +0000 (00:33 +0000)]
MC: Fix Intel assembly parser for [global + offset]

We were dropping the displacement on the floor if we also had some
immediate offset.

Should fix PR19033.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202774 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRevert "[AArch64] This is a work in progress to provide a machine description"
Chad Rosier [Tue, 4 Mar 2014 00:32:07 +0000 (00:32 +0000)]
Revert "[AArch64] This is a work in progress to provide a machine description"

This reverts commit ff717c8fc786a0cfa1602982b91895fa09e514fc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202773 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-objdump: Split printCOFFUnwindInfo into small functions.
Rui Ueyama [Tue, 4 Mar 2014 00:31:48 +0000 (00:31 +0000)]
llvm-objdump: Split printCOFFUnwindInfo into small functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202772 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-objdump: Use range-based-for loop and fix format.
Rui Ueyama [Tue, 4 Mar 2014 00:03:09 +0000 (00:03 +0000)]
llvm-objdump: Use range-based-for loop and fix format.

This is a small cleanup before making a bit larger change to this function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202770 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64] This is a work in progress to provide a machine description
Chad Rosier [Mon, 3 Mar 2014 23:32:47 +0000 (23:32 +0000)]
[AArch64] This is a work in progress to provide a machine description
for the Cortex-A53 subtarget in the AArch64 backend.

This patch lays the ground work to annotate each AArch64 instruction
(no NEON yet) with a list of SchedReadWrite types. The patch also
provides the Cortex-A53 processor resources, maps those the the default
SchedReadWrites, and provides basic latency. NEON support will be added
in a subsequent patch with proper forwarding logic.

Verification was done by setting the pre-RA scheduler to linearize to
better gauge the effect of the MIScheduler. Even without modeling the
forward logic, the results show a modest improvement for Cortex-A53.

Reviewers: apazos, mcrosier, atrick
Patch by Dave Estes <cestes@codeaurora.org>!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202767 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdding support for MSVC debugger visualization of the Optional datatype.
Aaron Ballman [Mon, 3 Mar 2014 21:15:07 +0000 (21:15 +0000)]
Adding support for MSVC debugger visualization of the Optional datatype.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202760 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAvoid std::function until PR19030 is fixed
Reid Kleckner [Mon, 3 Mar 2014 21:12:13 +0000 (21:12 +0000)]
Avoid std::function until PR19030 is fixed

We'd like to keep the clang-cl self-host working until we implement
MSVC-compatible RTTI.

Differential Revision: http://llvm-reviews.chandlerc.com/D2930

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202758 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd missing include.
Benjamin Kramer [Mon, 3 Mar 2014 20:06:13 +0000 (20:06 +0000)]
Add missing include.

libstdc++ and libc++ pulled this in transitively so I didn't notice.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202753 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoPass to emit DWARF path discriminators.
Diego Novillo [Mon, 3 Mar 2014 20:06:11 +0000 (20:06 +0000)]
Pass to emit DWARF path discriminators.

DWARF discriminators are used to distinguish multiple control flow paths
on the same source location. When this happens, instructions across
basic block boundaries will share the same debug location.

This pass detects this situation and creates a new lexical scope to one
of the two instructions. This lexical scope is a child scope of the
original and contains a new discriminator value. This discriminator is
then picked up from MCObjectStreamer::EmitDwarfLocDirective to be
written on the object file.

This fixes http://llvm.org/bugs/show_bug.cgi?id=18270.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202752 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Use std::tie to simplify compare operators.
Benjamin Kramer [Mon, 3 Mar 2014 19:58:30 +0000 (19:58 +0000)]
[C++11] Use std::tie to simplify compare operators.

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202751 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDocument that std::initializer_list is not always available.
Peter Collingbourne [Mon, 3 Mar 2014 19:54:42 +0000 (19:54 +0000)]
Document that std::initializer_list is not always available.

Differential Revision: http://llvm-reviews.chandlerc.com/D2923

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202750 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Remove a leftover std::function instance.
Benjamin Kramer [Mon, 3 Mar 2014 19:49:02 +0000 (19:49 +0000)]
[C++11] Remove a leftover std::function instance.

It's not needed anymore.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202748 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Remove the completely unnecessary requirement on SetVector's
Chandler Carruth [Mon, 3 Mar 2014 19:28:52 +0000 (19:28 +0000)]
[C++11] Remove the completely unnecessary requirement on SetVector's
remove_if that its predicate is adaptable. We don't actually need this,
we can write a generic adapter for any predicate.

This lets us remove some very wrong std::function usages. We should
never be using std::function for predicates to algorithms. This incurs
an *indirect* call overhead for every evaluation of the predicate, and
makes it very hard to inline through.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202742 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd DWARF discriminator support to DILexicalBlocks.
Diego Novillo [Mon, 3 Mar 2014 18:53:17 +0000 (18:53 +0000)]
Add DWARF discriminator support to DILexicalBlocks.

This adds support for emitting discriminators from DILexicalBlocks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202736 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRe-apply r202551, which introduced new PBQP solver.
Lang Hames [Mon, 3 Mar 2014 18:50:05 +0000 (18:50 +0000)]
Re-apply r202551, which introduced new PBQP solver.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202735 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRevert "[C++11] Replace LLVM atomics with std::atomic."
Benjamin Kramer [Mon, 3 Mar 2014 18:02:34 +0000 (18:02 +0000)]
Revert "[C++11] Replace LLVM atomics with std::atomic."

Breaks the MSVC build.
DataStream.cpp(44): error C2552: 'llvm::Statistic::Value' : non-aggregates cannot be initialized with initializer list

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202731 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Replace LLVM atomics with std::atomic.
Benjamin Kramer [Mon, 3 Mar 2014 17:53:30 +0000 (17:53 +0000)]
[C++11] Replace LLVM atomics with std::atomic.

With C++11 we finally have a standardized way to specify atomic operations. Use
them to replace the existing custom implemention. Sadly the translation is not
entirely trivial as std::atomic allows more fine-grained control over the
atomicity. I tried to preserve the old semantics as well as possible.

Differential Revision: http://llvm-reviews.chandlerc.com/D2915

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202730 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoC++11: Beware unnecessary copies with auto
Duncan P. N. Exon Smith [Mon, 3 Mar 2014 16:48:47 +0000 (16:48 +0000)]
C++11: Beware unnecessary copies with auto

It's easy to copy unintentionally when using 'auto', particularly inside
range-based for loops.  Best practise is to use 'const&' unless there's
a good reason not to.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202729 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoClarify struct usage guidelines
Duncan P. N. Exon Smith [Mon, 3 Mar 2014 16:48:44 +0000 (16:48 +0000)]
Clarify struct usage guidelines

The current coding standards restrict the use of struct to PODs, but no
one has been following them.  This patch updates the standards to
clarify when structs are dangerous and describe common practice in LLVM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202728 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd patch level to llvm version in CMake and Autoconf
Tom Stellard [Mon, 3 Mar 2014 15:22:00 +0000 (15:22 +0000)]
Add patch level to llvm version in CMake and Autoconf

The shared library generated by autoconf will now be called
libLLVM-$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)$(VERSION_SUFFIX).so
and a symlink named
libLLVM-$(VERSION_MAJOR).$(VERSION_MINOR)$(VERSION_SUFFIX).so will
also be created in the install directory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202720 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDon't emit a blank line when running llvm-config --system-libs.
Richard Osborne [Mon, 3 Mar 2014 15:06:14 +0000 (15:06 +0000)]
Don't emit a blank line when running llvm-config --system-libs.

Summary:
Previously llvm-config --system-libs would print something like:

$ llvm-config --system-libs

-lz -ltinfo -lrt -ldl -lm

Now we don't emit blank line. Functionality is unchanged otherwise, in
particular llvm-config --libs --system-libs still emits the LLVM libraries
and the system libraries on different lines.

Reviewers: chapuni

Reviewed By: chapuni

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2901

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202719 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[mips] Prevent %lo relocation being used on MSA loads and stores.
Daniel Sanders [Mon, 3 Mar 2014 14:31:21 +0000 (14:31 +0000)]
[mips] Prevent %lo relocation being used on MSA loads and stores.

Summary:
Parts of the compiler still believed MSA load/stores have a 16-bit offset when
it is actually 10-bit. Corrected this, and fixed a closely related issue this
uncovered where load/stores with 10-bit and 12-bit offsets (MSA and microMIPS
respectively) could not load/store using offsets from the stack/frame pointer.
They accepted frameindex+offset, but not frameindex by itself.

Reviewers: jacksprat, matheusalmeida

Reviewed By: jacksprat

Differential Revision: http://llvm-reviews.chandlerc.com/D2888

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202717 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[mips] support FK_Data_2 and FK_Data_8 to fix big-endian debug data
Ed Maste [Mon, 3 Mar 2014 14:27:49 +0000 (14:27 +0000)]
[mips] support FK_Data_2 and FK_Data_8 to fix big-endian debug data

This fixes invalid lengths in .debug_aranges on big-endian mips64
(lengths appear to be left-shifted by 32 bits) and in .debug_loc.

Differential Revision: http://llvm-reviews.chandlerc.com/D2517

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202716 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago Fixing a build failure reported by certain buildbots. This will disable jalx instruc...
Vladimir Medic [Mon, 3 Mar 2014 14:05:14 +0000 (14:05 +0000)]
 Fixing a build failure reported by certain buildbots. This will disable jalx instruction for micromips target.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202715 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUnbreak the C++11 build.
Benjamin Kramer [Mon, 3 Mar 2014 13:59:41 +0000 (13:59 +0000)]
Unbreak the C++11 build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202714 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[msan] Handle X86 SIMD bitshift intrinsics.
Evgeniy Stepanov [Mon, 3 Mar 2014 13:47:42 +0000 (13:47 +0000)]
[msan] Handle X86 SIMD bitshift intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202712 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoThis patch implements jalx instruction for Mips architecture.This instruction execute...
Vladimir Medic [Mon, 3 Mar 2014 13:12:59 +0000 (13:12 +0000)]
This patch implements jalx instruction for Mips architecture.This instruction executes a procedure call within the current 256 MB-aligned region and change the ISA Mode from MIPS32 to microMIPS32 or MIPS16e. Usage samples for assembler and dissasembler are provided as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202706 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Add a basic block range view for RegionInfo
Tobias Grosser [Mon, 3 Mar 2014 13:00:39 +0000 (13:00 +0000)]
[C++11] Add a basic block range view for RegionInfo

This also switches the users in LLVM to ensure this functionality is tested.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202705 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] MSVC 2012 can't handle list-initialization that calls
Chandler Carruth [Mon, 3 Mar 2014 10:59:41 +0000 (10:59 +0000)]
[C++11] MSVC 2012 can't handle list-initialization that calls
a constructor either. Just call the constructor directly. I'll look into
making this work with aggregate initialization some other time (when
I have someone with MSVC 2012 handy to test ideas).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202688 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Add two range adaptor views to User: operands and
Chandler Carruth [Mon, 3 Mar 2014 10:42:58 +0000 (10:42 +0000)]
[C++11] Add two range adaptor views to User: operands and
operand_values. The first provides a range view over operand Use
objects, and the second provides a range view over the Value*s being
used by those operands.

The naming is "STL-style" rather than "LLVM-style" because we have
historically named iterator methods STL-style, and range methods seem to
have far more in common with their iterator counterparts than with
"normal" APIs. Feel free to bikeshed on this one if you want, I'm happy
to change these around if people feel strongly.

I've switched code in SROA and LCG to exercise these mostly to ensure
they work correctly -- we don't really have an easy way to unittest this
and they're trivial.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202687 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Add an iterator_range class template. This is modeled on the
Chandler Carruth [Mon, 3 Mar 2014 10:28:38 +0000 (10:28 +0000)]
[C++11] Add an iterator_range class template. This is modeled on the
proposed std::iterator_pair which was in committee suggested to move
toward std::iterator_range. There isn't a formal paper yet, but there
seems little disagreement within the committee at this point so it seems
fine to provide our own version in the llvm namespace so we can easily
build range adaptors for the numerous iterators in LLVM's interfaces.

Note that I'm not really comfortable advocating a crazed range-based
migration just yet. The range stuff is still in a great deal of flux in
C++ and the committee hasn't entirely made up its mind (afaict) about
how it will work. So I'm mostly trying to provide the minimal
functionality needed to make writing easy and convenient range adaptors
for range based for loops easy and convenient. ;]

Subsequent patches will use this across the fundamental IR types, where
there are iterator views.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202686 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Pass unique_ptr by value instead of &&.
Ahmed Charles [Mon, 3 Mar 2014 07:15:46 +0000 (07:15 +0000)]
[C++11] Pass unique_ptr by value instead of &&.

Suggestion by Richard Smith.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202678 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAsmParser: add missed tests
Saleem Abdulrasool [Mon, 3 Mar 2014 06:35:00 +0000 (06:35 +0000)]
AsmParser: add missed tests

The diagnostics tests were missing from the previous introduction of ifeqs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202674 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Sparc] Add trap on integer condition codes (Ticc) instructions to Sparc backend.
Venkatraman Govindaraju [Sun, 2 Mar 2014 23:39:07 +0000 (23:39 +0000)]
[Sparc] Add trap on integer condition codes (Ticc) instructions to Sparc backend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202670 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Sparc] Add return/rett instruction to Sparc backend.
Venkatraman Govindaraju [Sun, 2 Mar 2014 22:55:53 +0000 (22:55 +0000)]
[Sparc] Add return/rett instruction to Sparc backend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202666 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemove unnecessary copy ctors.
Benjamin Kramer [Sun, 2 Mar 2014 21:24:52 +0000 (21:24 +0000)]
Remove unnecessary copy ctors.

They didn't provide any value over the default ones but blocked move semantics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202664 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Sparc] Add support for decoding jmpl/retl/ret instruction.
Venkatraman Govindaraju [Sun, 2 Mar 2014 21:17:44 +0000 (21:17 +0000)]
[Sparc] Add support for decoding jmpl/retl/ret instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202663 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoGive APInt move semantics.
Benjamin Kramer [Sun, 2 Mar 2014 20:56:28 +0000 (20:56 +0000)]
Give APInt move semantics.

The interaction between defaulted operators and move elision isn't
totally obvious, add a unit test so it doesn't break unintentionally.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202662 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Sparc] Add fcmpe* instructions to Sparc backend.
Venkatraman Govindaraju [Sun, 2 Mar 2014 19:56:19 +0000 (19:56 +0000)]
[Sparc] Add fcmpe* instructions to Sparc backend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202661 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Sparc] Add VIS instructions to sparc backend.
Venkatraman Govindaraju [Sun, 2 Mar 2014 19:31:21 +0000 (19:31 +0000)]
[Sparc] Add VIS instructions to sparc backend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202660 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd a PPC inline asm constraint type for single CR bits
Hal Finkel [Sun, 2 Mar 2014 18:23:39 +0000 (18:23 +0000)]
Add a PPC inline asm constraint type for single CR bits

Now that the PowerPC backend can track individual CR bits as first-class
registers, we should also have a way of allocating them for inline asm
statements. Because these registers are only one bit, if an output variable is
implicitly cast to a larger integer size, we'll get an any_extend to that
larger type (this is part of the existing target-independent logic). As a
result, regardless of the size of the output type, only the first bit is
meaningful.

The constraint identifier "wc" has been chosen for this purpose. Although gcc
does not currently support allocating individual CR bits, this identifier
choice has been coordinated with the gcc PowerPC team, and will be marked as
reserved for this purpose in the gcc constraints.md file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202657 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoEnsure bitcode encoding of instructions and their operands stays stable.
Michael Kuperstein [Sun, 2 Mar 2014 15:26:36 +0000 (15:26 +0000)]
Ensure bitcode encoding of instructions and their operands stays stable.
This includes instructions that relate to memory access (load/store/GEP), comparison instructions and calls.

Work was done by lama.saba@intel.com.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202647 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Replace llvm::tie with std::tie.
Benjamin Kramer [Sun, 2 Mar 2014 13:30:33 +0000 (13:30 +0000)]
[C++11] Replace llvm::tie with std::tie.

The old implementation is no longer needed in C++11.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202644 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Replace LLVM_STATIC_ASSERT with static_assert, we now have
Chandler Carruth [Sun, 2 Mar 2014 13:10:45 +0000 (13:10 +0000)]
[C++11] Replace LLVM_STATIC_ASSERT with static_assert, we now have
access to it on all host toolchains.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202642 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoTest commit.
Ahmed Charles [Sun, 2 Mar 2014 13:08:46 +0000 (13:08 +0000)]
Test commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202641 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Replace llvm::next and llvm::prior with std::next and std::prev.
Benjamin Kramer [Sun, 2 Mar 2014 12:27:27 +0000 (12:27 +0000)]
[C++11] Replace llvm::next and llvm::prior with std::next and std::prev.

Remove the old functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202636 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Clarify in the Compiler.h support macros and comments (and
Chandler Carruth [Sun, 2 Mar 2014 10:07:45 +0000 (10:07 +0000)]
[C++11] Clarify in the Compiler.h support macros and comments (and
assert it with an #error) that we require MSVC 2012; MSVC 2010 will no
longer suffice.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202631 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Remove LLVM_FINAL and LLVM_OVERRIDE macros now that all their uses are gone.
Craig Topper [Sun, 2 Mar 2014 09:54:13 +0000 (09:54 +0000)]
[C++11] Remove LLVM_FINAL and LLVM_OVERRIDE macros now that all their uses are gone.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202629 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[SparcV9] Adds support for branch on integer register instructions (BPr) and conditio...
Venkatraman Govindaraju [Sun, 2 Mar 2014 09:46:56 +0000 (09:46 +0000)]
[SparcV9] Adds support for branch on integer register instructions (BPr) and conditional moves on integer register (MOVr/FMOVr).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202628 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAVX-512: Fixed extract_vector_elt for v8i1 vector
Elena Demikhovsky [Sun, 2 Mar 2014 09:19:44 +0000 (09:19 +0000)]
AVX-512: Fixed extract_vector_elt for v8i1 vector

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202624 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Suggest placing callable arguments as the last argument to
Chandler Carruth [Sun, 2 Mar 2014 09:13:39 +0000 (09:13 +0000)]
[C++11] Suggest placing callable arguments as the last argument to
facilitate the nice formatting of lambdas passed there. Suggested by
Chris during review of my lambda additions, and something I strongly
agree with.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202622 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSwitch all uses of LLVM_OVERRIDE to just use 'override' directly.
Craig Topper [Sun, 2 Mar 2014 09:09:27 +0000 (09:09 +0000)]
Switch all uses of LLVM_OVERRIDE to just use 'override' directly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202621 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Update the coding standards to provide some important guidance
Chandler Carruth [Sun, 2 Mar 2014 08:38:35 +0000 (08:38 +0000)]
[C++11] Update the coding standards to provide some important guidance
about a few constructs in C++11 that are worth starting off in
a consistent manner within the codebase.

This will be matched with a change to clang-format's LLVM style which
will switch the options to support C++11 and use these conventions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202620 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd back LLVM_FINAL macro. lld still needs it.
Craig Topper [Sun, 2 Mar 2014 08:34:05 +0000 (08:34 +0000)]
Add back LLVM_FINAL macro. lld still needs it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202619 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSwitch all uses of LLVM_FINAL to just use 'final', and remove the macro.
Craig Topper [Sun, 2 Mar 2014 08:08:51 +0000 (08:08 +0000)]
Switch all uses of LLVM_FINAL to just use 'final', and remove the macro.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202618 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoremove an old entry whose link is broken anyway
Chris Lattner [Sun, 2 Mar 2014 06:37:03 +0000 (06:37 +0000)]
remove an old entry whose link is broken anyway

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202617 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Sparc] Add support for parsing branches and conditional move instructions with ...
Venkatraman Govindaraju [Sun, 2 Mar 2014 06:28:15 +0000 (06:28 +0000)]
[Sparc] Add support for parsing branches and conditional move instructions with %fcc1-%fcc3 conditional registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202616 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Sparc] Make floating point branch instruction formats to accept %fcc0-%fcc1 conditio...
Venkatraman Govindaraju [Sun, 2 Mar 2014 04:43:45 +0000 (04:43 +0000)]
[Sparc] Make floating point branch instruction formats to accept %fcc0-%fcc1 conditional registers as input.
No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202614 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Switch all uses of the llvm_move macro to use std::move
Chandler Carruth [Sun, 2 Mar 2014 04:08:41 +0000 (04:08 +0000)]
[C++11] Switch all uses of the llvm_move macro to use std::move
directly, and remove the macro.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202612 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Sparc] Add support for parsing fcmp with %fcc registers.
Venkatraman Govindaraju [Sun, 2 Mar 2014 03:39:39 +0000 (03:39 +0000)]
[Sparc] Add support for parsing fcmp with %fcc registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202610 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Add support for OwningPtr<T> to be converted to and from
Chandler Carruth [Sun, 2 Mar 2014 03:38:32 +0000 (03:38 +0000)]
[C++11] Add support for OwningPtr<T> to be converted to and from
std::unique_ptr<T>.

Patch by Ahmed Charles!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202609 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Add unit tests for OwningPtr<T> in preparation for changes to make
Chandler Carruth [Sun, 2 Mar 2014 03:26:39 +0000 (03:26 +0000)]
[C++11] Add unit tests for OwningPtr<T> in preparation for changes to make
it interoperate (minimally) with std::unique_ptr<T>. This is part of my
plan to migrate LLVM to use std::unique_ptr with a minimal impact on
out-of-tree code.

Patch by Ahmed Charles with some minor cleanups (and bool casts) by me.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202608 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[C++11] Expand and eliminate the LLVM_ENUM_INT_TYPE() macro
Alp Toker [Sun, 2 Mar 2014 03:20:38 +0000 (03:20 +0000)]
[C++11] Expand and eliminate the LLVM_ENUM_INT_TYPE() macro

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202607 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Sparc] Add register class for floating point conditional flags (%fcc0 - %fcc3).
Venkatraman Govindaraju [Sun, 2 Mar 2014 02:12:33 +0000 (02:12 +0000)]
[Sparc] Add register class for floating point conditional flags (%fcc0 - %fcc3).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202604 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[docs] Fix some Sphinx warnings.
Sean Silva [Sun, 2 Mar 2014 00:21:42 +0000 (00:21 +0000)]
[docs] Fix some Sphinx warnings.

The docs now build cleanly. Yay!

The following warnings were fixed:

/home/sean/pg/llvm/llvm/docs/HowToReleaseLLVM.rst:364: WARNING: Enumerated list ends without a blank line; unexpected unindent.
/home/sean/pg/llvm/llvm/docs/InAlloca.rst:: WARNING: document isn't included in any toctree

/home/sean/pg/llvm/llvm/docs/CodingStandards.rst:85: WARNING: Title underline too short.

Supported C++11 Language and Library Features
-------------------------------------------
/home/sean/pg/llvm/llvm/docs/CodingStandards.rst:85: WARNING: Title underline too short.

Supported C++11 Language and Library Features
-------------------------------------------
/home/sean/pg/llvm/llvm/docs/GettingStarted.rst:185: WARNING: Explicit markup ends without a blank line; unexpected unindent.
/home/sean/pg/llvm/llvm/docs/GettingStarted.rst:565: WARNING: Explicit markup ends without a blank line; unexpected unindent.
/home/sean/pg/llvm/llvm/docs/GettingStarted.rst:567: WARNING: Block quote ends without a blank line; unexpected unindent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202603 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[SparcV9] Add support for parsing branch instructions with prediction.
Venkatraman Govindaraju [Sat, 1 Mar 2014 22:03:07 +0000 (22:03 +0000)]
[SparcV9] Add support for parsing branch instructions with prediction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202602 91177308-0d34-0410-b5e6-96231b3b80d8