Craig Topper [Sat, 8 Mar 2014 07:02:02 +0000 (07:02 +0000)]
[C++11] Add 'override' keyword to virtual methods that override their base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203340
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sat, 8 Mar 2014 06:31:39 +0000 (06:31 +0000)]
[C++11] Add 'override' keyword to virtual methods that override their base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203339
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Sat, 8 Mar 2014 02:45:53 +0000 (02:45 +0000)]
DebugInfo: further improvements to test following up on r203329
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203337
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Sat, 8 Mar 2014 01:32:51 +0000 (01:32 +0000)]
DebugInfo: Fix test fallout from r203323
Will fix this harder in a moment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203329
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Sat, 8 Mar 2014 00:58:20 +0000 (00:58 +0000)]
DebugInfo: Use DW_FORM_data4 for DW_AT_high_pc in DW_TAG_lexical_blocks
Suggested by Adrian Prantl in code review for r203187
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203323
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sat, 8 Mar 2014 00:29:41 +0000 (00:29 +0000)]
Add support for hashing location information for CU level hashes.
Add a testcase based on sret.cpp where we can now hash the entire
compile unit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203319
91177308-0d34-0410-b5e6-
96231b3b80d8
Adam Nemet [Fri, 7 Mar 2014 23:56:30 +0000 (23:56 +0000)]
[DAGCombiner] Distribute TRUNC through AND in rotation amount
This is already done for shifts. Allow it for rotations as well. E.g.:
(rotl:i32 x, (trunc (and y, 31))) -> (rotl:i32 x, (and (trunc y), 31))
Use the newly factored-out distributeTruncateThroughAnd.
With this patch and some X86.td tweaks we should be able to remove redundant
masking of the rotation amount like in the example above. HW implicitly
performs this masking.
The testcase will be added as part of the X86 patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203316
91177308-0d34-0410-b5e6-
96231b3b80d8
Adam Nemet [Fri, 7 Mar 2014 23:56:28 +0000 (23:56 +0000)]
[DAGCombiner] Recognize another rotation idiom
This is the new idiom:
x<<(y&31) | x>>((0-y)&31)
which is recognized as:
x ROTL (y&31)
The change refines matchRotateSub. In
Neg & (OpSize - 1) == (OpSize - Pos) & (OpSize - 1), if Pos is
Pos' & (OpSize - 1) we can just use Pos' instead of Pos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203315
91177308-0d34-0410-b5e6-
96231b3b80d8
Adam Nemet [Fri, 7 Mar 2014 23:56:24 +0000 (23:56 +0000)]
[DAGCombiner] Slightly improve readability of matchRotateSub
Slightly change the wording in the function comment. Originally, it can be
misunderstood as we turned the input into two subsequent rotates.
Better connect the comment which talks about Mask and the code which used
LoBits. Renamed variable to MaskLoBits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203314
91177308-0d34-0410-b5e6-
96231b3b80d8
Arnold Schwaighofer [Fri, 7 Mar 2014 23:25:55 +0000 (23:25 +0000)]
ISel: Make VSELECT selection terminate in cases where the condition type has to
be split and the result type widened.
When the condition of a vselect has to be split it makes no sense widening the
vselect and thereby widening the condition. We end up in an endless loop of
widening (vselect result type) and splitting (condition mask type) doing this.
Instead, split both the condition and the vselect and widen the result.
I ran this over the test suite with i686 and mattr=+sse and saw no regressions.
Fixes PR18036.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203311
91177308-0d34-0410-b5e6-
96231b3b80d8
Adrian Prantl [Fri, 7 Mar 2014 23:07:21 +0000 (23:07 +0000)]
Remove unnecessary test for Darwin and update testcase to be a little less
horrible/fragile.
rdar://problem/
16264854
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203309
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 7 Mar 2014 22:53:36 +0000 (22:53 +0000)]
Add a virtual destructor to quiet a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203307
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 7 Mar 2014 22:48:22 +0000 (22:48 +0000)]
Range-ify some for loops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203306
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 7 Mar 2014 22:43:09 +0000 (22:43 +0000)]
Actually add the header file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203305
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 7 Mar 2014 22:40:37 +0000 (22:40 +0000)]
Two part patch:
First: refactor out the emission of entries into the .debug_loc section
into its own routine.
Second: add a new class ByteStreamer that can be used to either emit
using an AsmPrinter or hash using DIEHash the series of bytes that
would be emitted. Use this in all of the location emission routines
for the .debug_loc section.
No functional change intended outside of a few additional comments
in verbose assembly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203304
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 7 Mar 2014 22:40:30 +0000 (22:40 +0000)]
Add include guards and make public a few routines that add values
to the hash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203303
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Bendersky [Fri, 7 Mar 2014 22:19:10 +0000 (22:19 +0000)]
Remove unused method declaration
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203301
91177308-0d34-0410-b5e6-
96231b3b80d8
Adrian Prantl [Fri, 7 Mar 2014 22:18:23 +0000 (22:18 +0000)]
Revert "Remove unnecessary check for Darwin. rdar://problem/
16264854"
This breaks linux buildbots. Go figure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203300
91177308-0d34-0410-b5e6-
96231b3b80d8
Sasa Stankovic [Fri, 7 Mar 2014 22:08:46 +0000 (22:08 +0000)]
Moved test file from test/MC/Mips to test/CodeGen/Mips.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203298
91177308-0d34-0410-b5e6-
96231b3b80d8
Adrian Prantl [Fri, 7 Mar 2014 22:04:42 +0000 (22:04 +0000)]
Remove unnecessary check for Darwin. rdar://problem/
16264854
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203297
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 7 Mar 2014 22:00:56 +0000 (22:00 +0000)]
DebugInfo: Use DW_FORM_data4 for DW_AT_high_pc in inlined functions
Suggested by Adrian Prantl in code review for r203187.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203296
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 7 Mar 2014 22:00:49 +0000 (22:00 +0000)]
DebugInfo: Update test to cover linux (with a FIXME...) too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203295
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 7 Mar 2014 21:52:38 +0000 (21:52 +0000)]
[C++11] Revert uses of lambdas with array_pod_sort.
Looks like GCC implements the lambda->function pointer conversion differently.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203294
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 7 Mar 2014 21:35:39 +0000 (21:35 +0000)]
[C++11] Convert sort predicates into lambdas.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203288
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 7 Mar 2014 21:30:49 +0000 (21:30 +0000)]
Actually include the ArrayRef header rather than rely on the forward
declaration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203287
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 7 Mar 2014 21:27:42 +0000 (21:27 +0000)]
Fix up formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203286
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Bendersky [Fri, 7 Mar 2014 21:04:24 +0000 (21:04 +0000)]
Fix EXPECT_* to not produce a compile warning.
EXPECT_TRUE/FALSE is also more idiomatic for booleans than EXPECT_EQ
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203284
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Fri, 7 Mar 2014 20:12:39 +0000 (20:12 +0000)]
R600/SI: Using SGPRs is illegal for instructions that read carry-out from VCC
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203281
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Fri, 7 Mar 2014 20:12:33 +0000 (20:12 +0000)]
R600/SI: Custom lower i1 stores
These are sometimes created by the shrink to boolean optimization in the
globalopt pass.
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203280
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 7 Mar 2014 19:41:22 +0000 (19:41 +0000)]
[C++11] DwarfDebug: Turn single-use functors into lambdas.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203276
91177308-0d34-0410-b5e6-
96231b3b80d8
Jordan Rose [Fri, 7 Mar 2014 19:19:56 +0000 (19:19 +0000)]
[ADT] Update PointerIntPair to handle pointer types with more than 31 bits free.
Previously, the assertions in PointerIntPair would try to calculate the value
(1 << NumLowBitsAvailable); the inferred type here is 'int', so if there were
more than 31 bits available we'd get a shift overflow.
Also, add a rudimentary unit test file for PointerIntPair.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203273
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Gottesman [Fri, 7 Mar 2014 19:19:28 +0000 (19:19 +0000)]
[docs] Teach CMake docs build how to generate Qt Creator help/documentation files.
Patch by Konrad Kleine.
Differential Revision: http://llvm-reviews.chandlerc.com/D2967
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203272
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 7 Mar 2014 19:09:39 +0000 (19:09 +0000)]
[C++11] DwarfDebug: Use range-based for loops.
It has a lot of them with complex types. C++11 really shines here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203270
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 7 Mar 2014 19:04:12 +0000 (19:04 +0000)]
Don't avoid cfi instructions on the bg/p.
The integrated assembler now works for ppc. Since this was the last use of the
bg/p predicate and Hal says that it is now dead, drop the predicate too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203269
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 7 Mar 2014 18:54:08 +0000 (18:54 +0000)]
Remove dead 'break' (dominated by 'return').
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203267
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 7 Mar 2014 18:51:16 +0000 (18:51 +0000)]
Remove dead 'return'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203265
91177308-0d34-0410-b5e6-
96231b3b80d8
David Majnemer [Fri, 7 Mar 2014 18:49:54 +0000 (18:49 +0000)]
MC: Use MachO::SectionType for MCSectionMachO::getType's return type
This is a straightfoward replacement, it makes debugging a little
easier.
This has no functional impact.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203264
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 7 Mar 2014 18:49:45 +0000 (18:49 +0000)]
DebugInfo: Refactor high_pc/low_pc construction into reusable function
For incoming improvements to inlined functions and lexical blocks
suggested by Adrian Prantl in review of r203187.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203263
91177308-0d34-0410-b5e6-
96231b3b80d8
Nico Weber [Fri, 7 Mar 2014 18:08:54 +0000 (18:08 +0000)]
"Mac OS/X" -> "Mac OS X" spelling fixes for llvm.
Patch from Sean McBride <sean@rogue-research.com>!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203258
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan P. N. Exon Smith [Fri, 7 Mar 2014 18:06:15 +0000 (18:06 +0000)]
C++11: Remove const from in auto guidelines
Using const is orthogonal to guidelines on using auto& and auto*.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203257
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 7 Mar 2014 18:04:24 +0000 (18:04 +0000)]
DebugInfo: Restrict DW_AT_high_pc encoding as data4 offset to DWARF 4 as per spec
Code review feedback to r203187 from Oliver Stannard. Thanks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203256
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan P. N. Exon Smith [Fri, 7 Mar 2014 17:23:29 +0000 (17:23 +0000)]
C++11: Copy pointers with const auto *
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203254
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan P. N. Exon Smith [Fri, 7 Mar 2014 16:16:52 +0000 (16:16 +0000)]
ARM: Make .unreq directives case-insensitive
Be case-insensitive when processing .unreq directives.
Patch by Lin Zuojian!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203251
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 7 Mar 2014 15:54:23 +0000 (15:54 +0000)]
[C++11] Now that the users are gone, rip out the duplicated traits from type_traits.h
Simplify the remaining ones a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203249
91177308-0d34-0410-b5e6-
96231b3b80d8
Dmitri Gribenko [Fri, 7 Mar 2014 14:55:30 +0000 (14:55 +0000)]
Add missing std:: qualifiers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203246
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 7 Mar 2014 14:43:48 +0000 (14:43 +0000)]
Make header standalone for libstdc++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203243
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 7 Mar 2014 14:42:25 +0000 (14:42 +0000)]
[C++11] Replace LLVM-style type traits with C++11 standard ones.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203242
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Fri, 7 Mar 2014 11:34:35 +0000 (11:34 +0000)]
[SystemZ] Move sign_extend optimization to PerformDAGCombine
The target was marking SIGN_EXTEND as Custom because it wanted to optimize
certain sign-extended shifts. In all other respects the extension is Legal,
so it'd be better to do the optimization in PerformDAGCombine instead.
No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203234
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Fri, 7 Mar 2014 11:04:30 +0000 (11:04 +0000)]
CodeGenPrep: sink extends of illegal types into use block.
This helps the instruction selector to lower an i64 * i64 -> i128
multiplication into a single instruction on targets which support it.
Patch by Manuel Jacob.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203230
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Fri, 7 Mar 2014 10:24:44 +0000 (10:24 +0000)]
InstCombine: form shuffles from wider range of insert/extractelements
Sequences of insertelement/extractelements are sometimes used to build
vectorsr; this code tries to put them back together into shuffles, but
could only produce a completely uniform shuffle types (<N x T> from two
<N x T> sources).
This should allow shuffles with different numbers of elements on the
input and output sides as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203229
91177308-0d34-0410-b5e6-
96231b3b80d8
Ahmed Charles [Fri, 7 Mar 2014 09:38:02 +0000 (09:38 +0000)]
Change MCDisassembler::setSymbolizer to take unique_ptr by value.
This changes the interface to be more explicit that ownership is being
transferred.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203223
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Fri, 7 Mar 2014 09:26:53 +0000 (09:26 +0000)]
Remove unused method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203221
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Fri, 7 Mar 2014 09:26:03 +0000 (09:26 +0000)]
[C++11] Add 'override' keyword to virtual methods that override their base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203220
91177308-0d34-0410-b5e6-
96231b3b80d8
Alexey Volkov [Fri, 7 Mar 2014 09:03:49 +0000 (09:03 +0000)]
Enable FeatureFastUAMem for Silvermont processor
Differential Revision: http://llvm-reviews.chandlerc.com/D2982
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203218
91177308-0d34-0410-b5e6-
96231b3b80d8
Alexey Volkov [Fri, 7 Mar 2014 08:28:44 +0000 (08:28 +0000)]
Test commit
Removed whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203216
91177308-0d34-0410-b5e6-
96231b3b80d8
David Majnemer [Fri, 7 Mar 2014 07:36:05 +0000 (07:36 +0000)]
MC: Remove superfluous section attribute flag definitions
Summary:
llvm/MC/MCSectionMachO.h and llvm/Support/MachO.h both had the same
definitions for the section flags. Instead, grab the definitions out of
support.
No functionality change.
Reviewers: grosbach, Bigcheese, rafael
Reviewed By: rafael
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2998
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203211
91177308-0d34-0410-b5e6-
96231b3b80d8
Ahmed Charles [Fri, 7 Mar 2014 06:24:30 +0000 (06:24 +0000)]
[Typo] Fix sentence in CMake documentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203206
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 7 Mar 2014 06:08:31 +0000 (06:08 +0000)]
Replace PROLOG_LABEL with a new CFI_INSTRUCTION.
The old system was fairly convoluted:
* A temporary label was created.
* A single PROLOG_LABEL was created with it.
* A few MCCFIInstructions were created with the same label.
The semantics were that the cfi instructions were mapped to the PROLOG_LABEL
via the temporary label. The output position was that of the PROLOG_LABEL.
The temporary label itself was used only for doing the mapping.
The new CFI_INSTRUCTION has a 1:1 mapping to MCCFIInstructions and points to
one by holding an index into the CFI instructions of this function.
I did consider removing MMI.getFrameInstructions completelly and having
CFI_INSTRUCTION own a MCCFIInstruction, but MCCFIInstructions have non
trivial constructors and destructors and are somewhat big, so the this setup
is probably better.
The net result is that we don't create temporary labels that are never used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203204
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 7 Mar 2014 05:32:03 +0000 (05:32 +0000)]
clang-format a bit of code to make the next patch easier to read.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203203
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 7 Mar 2014 04:58:32 +0000 (04:58 +0000)]
Simplify. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203202
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 7 Mar 2014 04:45:03 +0000 (04:45 +0000)]
Simplify. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203199
91177308-0d34-0410-b5e6-
96231b3b80d8
Karthik Bhat [Fri, 7 Mar 2014 04:36:21 +0000 (04:36 +0000)]
Allow constant folding of round function whenever feasible
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203198
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 7 Mar 2014 04:28:28 +0000 (04:28 +0000)]
Add missing "[unnamed_addr]" to LangRef.rst#functions.
Patch by Manuel Jacob.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203197
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 7 Mar 2014 02:19:41 +0000 (02:19 +0000)]
DebugInfo: Limit r203187 to non-darwin as lldb can't handle this yet
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203192
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 7 Mar 2014 01:44:14 +0000 (01:44 +0000)]
Move some dwarf emission routines to AsmPrinterDwarf.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203191
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 7 Mar 2014 01:44:12 +0000 (01:44 +0000)]
80-column fixups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203190
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 7 Mar 2014 01:30:55 +0000 (01:30 +0000)]
DebugInfo: Emit DW_TAG_subprogram's DW_AT_high_pc as an offset from the low_pc
This removes a relocation from each subprogram, reducing link times,
etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203187
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 7 Mar 2014 01:19:31 +0000 (01:19 +0000)]
DebugInfo: Refactor test to not rely on fixed DIE offsets
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203186
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 7 Mar 2014 00:23:38 +0000 (00:23 +0000)]
DebugInfo: Improve test to not depend on the specific naming of temporary symbols
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203184
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 7 Mar 2014 00:08:57 +0000 (00:08 +0000)]
Add iterator_range support for MachineInstr's operand and memoperand iterators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203181
91177308-0d34-0410-b5e6-
96231b3b80d8
Saleem Abdulrasool [Thu, 6 Mar 2014 23:02:15 +0000 (23:02 +0000)]
Reapply "MC: simplify object file selection for Windows"
That was overly aggressive in assuming that we could always assume COFF. Some
of the tests assume that they will get ELF rather than COFF even on Windows
where the default is COFF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203176
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 6 Mar 2014 22:47:08 +0000 (22:47 +0000)]
Remove shouldEmitUsedDirectiveFor.
Clang now uses llvm.compiler.used for these cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203174
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 6 Mar 2014 22:21:43 +0000 (22:21 +0000)]
Convert test to FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203173
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 6 Mar 2014 22:13:17 +0000 (22:13 +0000)]
Remove unreachable 'return true' always dominated by 'return Error' or 'return false'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203171
91177308-0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Thu, 6 Mar 2014 20:53:58 +0000 (20:53 +0000)]
[Support/LockFileManager] Re-apply r203137 and r203138 but use symbolic links only on unix.
Reid Kleckner pointed out that we can't use symbolic links on Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203162
91177308-0d34-0410-b5e6-
96231b3b80d8
Saleem Abdulrasool [Thu, 6 Mar 2014 20:47:11 +0000 (20:47 +0000)]
Support: split object format out of environment
This is a preliminary setup change to support a renaming of Windows target
triples. Split the object file format information out of the environment into a
separate entity. Unfortunately, file format was previously treated as an
environment with an unknown OS. This is most obvious in the ARM subtarget where
the handling for macho on an arbitrary platform switches to AAPCS rather than
APCS (as per Apple's needs).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203160
91177308-0d34-0410-b5e6-
96231b3b80d8
Saleem Abdulrasool [Thu, 6 Mar 2014 20:47:03 +0000 (20:47 +0000)]
MC: simplify object file selection for Windows
Windows always uses COFF unless Windows ELF is in use. Rather than checking if
Windows, MinGW, or Cygwin is being targeted, just check if the target OS is
windows and that it is not an ELF environment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203159
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrea Di Biagio [Thu, 6 Mar 2014 20:19:52 +0000 (20:19 +0000)]
[X86] Teach the DAGCombiner how to fold a OR of two shufflevector nodes.
This patch teaches the DAGCombiner how to fold a binary OR between two
shufflevector into a single shuffle vector when possible.
The rules are:
1. fold (or (shuf A, V_0, MA), (shuf B, V_0, MB)) -> (shuf A, B, Mask1)
2. fold (or (shuf A, V_0, MA), (shuf B, V_0, MB)) -> (shuf B, A, Mask2)
The DAGCombiner can take advantage of the fact that OR is commutative and
compute two possible shuffle masks (Mask1 and Mask2) for the resulting
shuffle node.
Before folding a dag according to either rule 1 or 2, DAGCombiner verifies
that the resulting shuffle mask is legal for the target.
DAGCombiner would firstly try to fold according to 1.; If not possible
then it will try to fold according to 2.
If both Mask1 and Mask2 are illegal then we conservatively don't fold
the OR instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203156
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 6 Mar 2014 20:16:24 +0000 (20:16 +0000)]
Fix warning about mismatched signs in comparison.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203155
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 6 Mar 2014 20:13:41 +0000 (20:13 +0000)]
Fix the printing of n_type.
Despite the name, n_type contains the type of the symbol, but also if it is
extern or private extern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203154
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 6 Mar 2014 19:58:56 +0000 (19:58 +0000)]
Use the existing N_STAB from the MachO namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203152
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 6 Mar 2014 19:51:16 +0000 (19:51 +0000)]
Constify a few things with DotDebugLocEntry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203150
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Kleckner [Thu, 6 Mar 2014 19:19:12 +0000 (19:19 +0000)]
MS asm: The initial dot in struct access is optional
Fixes PR18994.
Tests, once again, in that other repository. =P
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203146
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Kleckner [Thu, 6 Mar 2014 19:07:35 +0000 (19:07 +0000)]
Revert create_symbolic_link and both depending changes
This reverts commits r203136, r203137, and r203138.
This code doesn't build on Windows. Even on Vista+, Windows requires
elevated privileges to create a symlink. Therefore we can't use
symlinks in the compiler. We'll have to find another approach.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203143
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 6 Mar 2014 18:59:42 +0000 (18:59 +0000)]
Move DIEEntry handling inside the main switch statement.
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203142
91177308-0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Thu, 6 Mar 2014 17:37:10 +0000 (17:37 +0000)]
[Support/LockFileManager] Make the LockFileManager more robust against races.
There was a race where:
- The LockFileManager tries to own the lock file and fails.
- The other owner then releases and removes the lock file.
- The LockFileManager tries to read the owner info from the lock file but fails now.
In such a case have LockFileManager try to get ownership again, instead of error'ing out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203138
91177308-0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Thu, 6 Mar 2014 17:37:04 +0000 (17:37 +0000)]
[Support/LockFileManager] Use symbolic link for the lock file.
Hard links do not work on SMB network directories, and it causes us to fail
to build clang module files if the module cache is in such a directory.
rdar://
15944959
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203137
91177308-0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Thu, 6 Mar 2014 17:36:46 +0000 (17:36 +0000)]
[Support/FileSystem] Introduce llvm::sys::fs::create_symbolic_link().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203136
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Thu, 6 Mar 2014 17:34:12 +0000 (17:34 +0000)]
R600: Fix extloads from i8 / i16 to i64.
This appears to only be working for global loads. Private
and local break for other reasons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203135
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Thu, 6 Mar 2014 17:34:03 +0000 (17:34 +0000)]
R600/SI: Expand selects on vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203134
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Thu, 6 Mar 2014 17:33:58 +0000 (17:33 +0000)]
Fix missing C++ mode comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203133
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Thu, 6 Mar 2014 17:33:55 +0000 (17:33 +0000)]
Teach lint about address spaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203132
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Thu, 6 Mar 2014 16:37:48 +0000 (16:37 +0000)]
[XCore] Add support for the "m" inline asm constraint.
Summary:
This provides support for CP and DP relative global accesses in inline
asm.
Reviewers: robertlytton
Reviewed By: robertlytton
Differential Revision: http://llvm-reviews.chandlerc.com/D2943
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203129
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 6 Mar 2014 16:31:40 +0000 (16:31 +0000)]
Micro optimization: this code only needs to look at eh labels.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203127
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Thu, 6 Mar 2014 16:04:00 +0000 (16:04 +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@203125
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Thu, 6 Mar 2014 12:03:36 +0000 (12:03 +0000)]
[SystemZ] Remove "virtual" from override methods
Also fix a couple of cases where "override" was missing. No behavioural
change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203110
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Thu, 6 Mar 2014 11:22:58 +0000 (11:22 +0000)]
[SystemZ] Use "auto" for cast results
No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203106
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Thu, 6 Mar 2014 11:00:15 +0000 (11:00 +0000)]
[SystemZ] Use "for (auto" a bit
Just the simple cases for now. There were a few knock-on changes of
MachineBasicBlock *s to MachineBasicBlock &s. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203105
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Thu, 6 Mar 2014 10:38:30 +0000 (10:38 +0000)]
[SystemZ] Update namespace formatting to match current guidelines
No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203103
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Thu, 6 Mar 2014 08:45:30 +0000 (08:45 +0000)]
AVX-512: Added rrk, rrkz, rmk, rmkz, rmbk, rmbkz versions of AVX512 FP packed instructions, added encoding tests for them.
By Robert Khazanov.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203098
91177308-0d34-0410-b5e6-
96231b3b80d8