Tom Stellard [Sat, 12 Oct 2013 05:02:51 +0000 (05:02 +0000)]
R600: Store disassembly in a special ELF section when feature +DumpCode is enabled.
Patch by: Jay Cornwall
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192523
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Sat, 12 Oct 2013 04:46:18 +0000 (04:46 +0000)]
Mark some more instructions as CodeGenOnly. Remove filters from the disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192522
91177308-0d34-0410-b5e6-
96231b3b80d8
Reed Kotler [Sat, 12 Oct 2013 02:19:08 +0000 (02:19 +0000)]
For Mips16, start to consolidate all forms of 32 bit literal loading so that
they can be better handled and optimized in the Mips16 constant island code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192520
91177308-0d34-0410-b5e6-
96231b3b80d8
Will Dietz [Sat, 12 Oct 2013 00:55:57 +0000 (00:55 +0000)]
Add missing #include's to cctype when using isdigit/alpha/etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192519
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Fri, 11 Oct 2013 23:58:05 +0000 (23:58 +0000)]
Debug Info: remove form from function addDIEEntry.
The form must be a reference form in addDIEEntry. Which reference form to
use will be decided by the callee.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192517
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Kaylor [Fri, 11 Oct 2013 22:47:10 +0000 (22:47 +0000)]
Fixing problems in lli's RemoteMemoryManager.
This fixes a problem from a previous check-in where a return value was omitted.
Previously the remote/stubs-remote.ll and remote/stubs-sm-pic.ll tests were reporting passes, but they should have been failing. Those tests attempt to link against an external symbol and remote symbol resolution is not supported. The old RemoteMemoryManager implementation resulted in local symbols being used for resolution and the child process crashed but the test didn't notice. With this check-in remote symbol resolution fails, and so the test (correctly) fails.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192514
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Kaylor [Fri, 11 Oct 2013 21:25:48 +0000 (21:25 +0000)]
Adding multiple object support to MCJIT EH frame handling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192504
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Fri, 11 Oct 2013 21:03:41 +0000 (21:03 +0000)]
R600: Add scalar i32 add test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192501
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Fri, 11 Oct 2013 21:03:39 +0000 (21:03 +0000)]
Use CHECK-LABEL
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192500
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Fri, 11 Oct 2013 21:03:36 +0000 (21:03 +0000)]
Fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192499
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 11 Oct 2013 19:49:09 +0000 (19:49 +0000)]
fConversion: Attempt #2 at fixing the MSVC build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192492
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 11 Oct 2013 19:39:48 +0000 (19:39 +0000)]
IfConversion: Try to unbreak the MSVC build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192487
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Fri, 11 Oct 2013 19:05:08 +0000 (19:05 +0000)]
Mips: Disassemble sign-extended 64 bit immediates properly.
This doesn't change the meaning of the output, but makes look right. PR17539.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192483
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Fri, 11 Oct 2013 19:04:37 +0000 (19:04 +0000)]
Remove kill flags after if conversion if necessary
When if converting something like:
true:
... = R0<kill>
false:
... = R0<kill>
then the instructions of the true block must not have a <kill> flag
anymore, as the instruction of the false block follow and do still read
the R0 value.
Specifically this patch determines the set of register live-in in the
false block (possibly after simulating the liveness changes of the
duplicated instructions). Each of these live-in registers mustn't be
killed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192482
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Fri, 11 Oct 2013 19:04:35 +0000 (19:04 +0000)]
Introduce ad hoc liveness tracking utility: LiveRegUnits
Contains a set of live register (units) and code to move forward and
backward in the schedule while updating the live set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192481
91177308-0d34-0410-b5e6-
96231b3b80d8
Quentin Colombet [Fri, 11 Oct 2013 18:54:49 +0000 (18:54 +0000)]
[DAGCombiner] Load slicing test case: attempt to really fix the buildbots (used sse4.2 instead of avx!).
<rdar://problem/
14477220>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192480
91177308-0d34-0410-b5e6-
96231b3b80d8
Renato Golin [Fri, 11 Oct 2013 18:50:22 +0000 (18:50 +0000)]
Add warning about CHECK-DAG with variable definition
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192479
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Fri, 11 Oct 2013 18:50:00 +0000 (18:50 +0000)]
Debug Info Testing Case: check for the name of a structure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192478
91177308-0d34-0410-b5e6-
96231b3b80d8
Stephen Lin [Fri, 11 Oct 2013 18:38:36 +0000 (18:38 +0000)]
Really fix CHECK-LABEL and CHECK-DAG interaction. This actually just restores the initial implementation that was in r186162 but got lost in some subsequent refactoring. More explicit variable names and comments are present now to hopefully prevent repeat regression, as well as another test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192477
91177308-0d34-0410-b5e6-
96231b3b80d8
Quentin Colombet [Fri, 11 Oct 2013 18:29:42 +0000 (18:29 +0000)]
[DAGCombiner] Reapply load slicing (192471) with a test that explicitly set sse4.2 support.
This should fix the buildbots.
Original commit message:
[DAGCombiner] Slice a big load in two loads when the element are next to each
other in memory and the target has paired load and performs post-isel loads
combining.
E.g., this optimization will transform something like this:
a = load i64* addr
b = trunc i64 a to i32
c = lshr i64 a, 32
d = trunc i64 c to i32
into:
b = load i32* addr1
d = load i32* addr2
Where addr1 = addr2 +/- sizeof(i32), if the target supports paired load and
performs post-isel loads combining.
One should overload TargetLowering::hasPairedLoad to provide this information.
The default is false.
<rdar://problem/
14477220>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192476
91177308-0d34-0410-b5e6-
96231b3b80d8
Quentin Colombet [Fri, 11 Oct 2013 18:17:17 +0000 (18:17 +0000)]
[DAGCombiner] Revert load slicing (r192471), until I figure out why it fails on ubuntu.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192474
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Fri, 11 Oct 2013 18:09:19 +0000 (18:09 +0000)]
Revert "Tests: Be less dependent on a specific schedule/regalloc"
This reverts r192454
Apparently FileCheck isn't as smart as I though and does not enforce a
topological order between variable defs+uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192472
91177308-0d34-0410-b5e6-
96231b3b80d8
Quentin Colombet [Fri, 11 Oct 2013 18:01:14 +0000 (18:01 +0000)]
[DAGCombiner] Slice a big load in two loads when the element are next to each
other in memory and the target has paired load and performs post-isel loads
combining.
E.g., this optimization will transform something like this:
a = load i64* addr
b = trunc i64 a to i32
c = lshr i64 a, 32
d = trunc i64 c to i32
into:
b = load i32* addr1
d = load i32* addr2
Where addr1 = addr2 +/- sizeof(i32), if the target supports paired load and
performs post-isel loads combining.
One should overload TargetLowering::hasPairedLoad to provide this information.
The default is false.
<rdar://problem/
14477220>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192471
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 11 Oct 2013 16:48:02 +0000 (16:48 +0000)]
Fix handling of CHECK-DAG inside of CHECK-LABEL.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192463
91177308-0d34-0410-b5e6-
96231b3b80d8
Renato Golin [Fri, 11 Oct 2013 16:14:39 +0000 (16:14 +0000)]
Better info when debugging vectorizer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192460
91177308-0d34-0410-b5e6-
96231b3b80d8
Amara Emerson [Fri, 11 Oct 2013 16:03:43 +0000 (16:03 +0000)]
[ARM] Fix FP ABI attributes with no VFP enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192458
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Fri, 11 Oct 2013 15:40:14 +0000 (15:40 +0000)]
fix typo in comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192455
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Fri, 11 Oct 2013 15:40:12 +0000 (15:40 +0000)]
Tests: Be less dependent on a specific schedule/regalloc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192454
91177308-0d34-0410-b5e6-
96231b3b80d8
Matheus Almeida [Fri, 11 Oct 2013 13:58:32 +0000 (13:58 +0000)]
This reverts 192447 because of compiler warning generated on darwin build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192451
91177308-0d34-0410-b5e6-
96231b3b80d8
Matheus Almeida [Fri, 11 Oct 2013 13:56:12 +0000 (13:56 +0000)]
This reverts r192449 because of compiler warning generated on darwin build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192450
91177308-0d34-0410-b5e6-
96231b3b80d8
Matheus Almeida [Fri, 11 Oct 2013 13:39:49 +0000 (13:39 +0000)]
[mips][msa] Direct Object Emission for the majority of the ELM instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192449
91177308-0d34-0410-b5e6-
96231b3b80d8
Matheus Almeida [Fri, 11 Oct 2013 13:29:36 +0000 (13:29 +0000)]
[mips][msa] Direct Object Emission of INSERT.{B,H,W} instruction.
INSERT is the first type of MSA instruction that requires a change to the way MSA registers are parsed.
This happens because MSA registers may be suffixed by an index in the form of an immediate or a
general purpose register. The changes to parseMSARegs reflect that requirement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192447
91177308-0d34-0410-b5e6-
96231b3b80d8
Matheus Almeida [Fri, 11 Oct 2013 13:18:01 +0000 (13:18 +0000)]
[mips][msa] Improves robustness of the test by enhancing pattern matching.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192446
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Fri, 11 Oct 2013 12:39:39 +0000 (12:39 +0000)]
[NVPTX] Switch from StrongPHIElimination to PHIElimination in NVPTXTargetMachine, and add some missing optimization passes to addOptimizedRegAlloc
Fixes PR17529
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192445
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Fri, 11 Oct 2013 12:39:36 +0000 (12:39 +0000)]
Make AsmPrinter::emitImplicitDef a virtual method so targets can emit custom comments for implicit defs
For NVPTX, this fixes a crash where the emitImplicitDef implementation was expecting physical registers,
while NVPTX uses virtual registers (with a couple of exceptions). Now, the implicit def comment will be
emitted as a true PTX register name. Other targets can use this to customize the output of implicit def
comments.
Fixes PR17519
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192444
91177308-0d34-0410-b5e6-
96231b3b80d8
Amara Emerson [Fri, 11 Oct 2013 11:07:00 +0000 (11:07 +0000)]
[ARM] Add a test case for disabled neon/fpu features.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192440
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Fri, 11 Oct 2013 10:50:42 +0000 (10:50 +0000)]
[mips][msa] Added support for matching maddv.[bhwd], and msubv.[bhwd] from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192438
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Fri, 11 Oct 2013 10:27:32 +0000 (10:27 +0000)]
[mips][msa] Added support for matching fmsub.[wd] from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192435
91177308-0d34-0410-b5e6-
96231b3b80d8
Robert Lytton [Fri, 11 Oct 2013 10:27:13 +0000 (10:27 +0000)]
XCore target fix bug in emitArrayBound() causing segmentation fault
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192434
91177308-0d34-0410-b5e6-
96231b3b80d8
Robert Lytton [Fri, 11 Oct 2013 10:27:00 +0000 (10:27 +0000)]
XCore target does not emit '.hidden' or '.protected' attributes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192433
91177308-0d34-0410-b5e6-
96231b3b80d8
Robert Lytton [Fri, 11 Oct 2013 10:26:48 +0000 (10:26 +0000)]
XCore target: fix bug in XCoreLowerThreadLocal.cpp
When a ConstantExpr which uses a thread local is part of a PHI node
instruction, the insruction that replaces the ConstantExpr must
be inserted in the predecessor block, in front of the terminator instruction.
If the predecessor block has multiple successors, the edge is first split.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192432
91177308-0d34-0410-b5e6-
96231b3b80d8
Robert Lytton [Fri, 11 Oct 2013 10:26:29 +0000 (10:26 +0000)]
XCore target: add XCoreTargetLowering::isZExtFree()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192431
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Fri, 11 Oct 2013 10:14:25 +0000 (10:14 +0000)]
[mips][msa] Added support for matching fmadd.[wd] from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192430
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Fri, 11 Oct 2013 10:00:06 +0000 (10:00 +0000)]
[mips][msa] Added support for matching ffint_[us].[wd], and ftrunc_[us].[wd] from normal IR (i.e. not intrinsics)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192429
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Fri, 11 Oct 2013 06:59:57 +0000 (06:59 +0000)]
Remove another unnecessary filter from the disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192425
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 11 Oct 2013 04:52:03 +0000 (04:52 +0000)]
LiveRangeCalc.h: Update a description corresponding to r192396. [-Wdocumentation]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192421
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Qin [Fri, 11 Oct 2013 02:33:55 +0000 (02:33 +0000)]
Implement aarch64 neon instruction set AdvSIMD (copy).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192410
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Thu, 10 Oct 2013 23:05:37 +0000 (23:05 +0000)]
Fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192406
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Thu, 10 Oct 2013 22:37:49 +0000 (22:37 +0000)]
Tests: Do not unnecessarily depend on kill comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192404
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Thu, 10 Oct 2013 22:37:47 +0000 (22:37 +0000)]
Tests: Use CHECK-LABEL where possible
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192403
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Thu, 10 Oct 2013 21:29:05 +0000 (21:29 +0000)]
Print register in LiveInterval::print()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192398
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Thu, 10 Oct 2013 21:29:02 +0000 (21:29 +0000)]
Represent RegUnit liveness with LiveRange instance
Previously LiveInterval has been used, but having a spill weight and
register number is unnecessary for a register unit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192397
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Thu, 10 Oct 2013 21:28:57 +0000 (21:28 +0000)]
Work on LiveRange instead of LiveInterval where possible
Also change some pointer arguments to references at some places where
0-pointers are not allowed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192396
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Thu, 10 Oct 2013 21:28:54 +0000 (21:28 +0000)]
Change MachineVerifier to work on LiveRange + LiveInterval
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192395
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Thu, 10 Oct 2013 21:28:52 +0000 (21:28 +0000)]
Pass LiveQueryResult by value
This makes the API a bit more natural to use and makes it easier to make
LiveRanges implementation details private.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192394
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Thu, 10 Oct 2013 21:28:47 +0000 (21:28 +0000)]
Refactor LiveInterval: introduce new LiveRange class
LiveRange just manages a list of segments and a list of value numbers
now as LiveInterval did previously, but without having details like spill
weight or a fixed register number.
LiveInterval is now a subclass of LiveRange and simply adds the spill weight
and the register number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192393
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Thu, 10 Oct 2013 21:28:43 +0000 (21:28 +0000)]
Rename LiveRange to LiveInterval::Segment
The Segment struct contains a single interval; multiple instances of this struct
are used to construct a live range, but the struct is not a live range by
itself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192392
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthias Braun [Thu, 10 Oct 2013 21:28:38 +0000 (21:28 +0000)]
Rename parameter: defined regs are not incoming.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192391
91177308-0d34-0410-b5e6-
96231b3b80d8
Sriram Murali [Thu, 10 Oct 2013 20:24:53 +0000 (20:24 +0000)]
test commit
- fix comments on vector type legalization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192389
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Thu, 10 Oct 2013 19:09:05 +0000 (19:09 +0000)]
Use getPointerSizeInBits() rather than 8 * getPointerSize()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192386
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Thu, 10 Oct 2013 18:47:35 +0000 (18:47 +0000)]
Fix grammar / missing words
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192380
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Thu, 10 Oct 2013 18:40:01 +0000 (18:40 +0000)]
Debug Info: In DIBuilder, the context field of subprogram is updated to use
DIScopeRef.
A paired commit at clang is required due to changes to DIBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192378
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Thu, 10 Oct 2013 18:13:17 +0000 (18:13 +0000)]
Add comments to debug info testing case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192376
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Thu, 10 Oct 2013 18:04:16 +0000 (18:04 +0000)]
R600: Fix trunc i64 to i32 on SI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192375
91177308-0d34-0410-b5e6-
96231b3b80d8
Hans Wennborg [Thu, 10 Oct 2013 17:32:01 +0000 (17:32 +0000)]
Provide msbuild integration for vs2013.
Patch by Josh Samuel!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192371
91177308-0d34-0410-b5e6-
96231b3b80d8
Hans Wennborg [Thu, 10 Oct 2013 17:31:54 +0000 (17:31 +0000)]
Fix msbuild integration install script.
We previously failed to check whether the SUCCESS variable was set,
and would thus always exit with a failure if vs2012 didn't exist.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192370
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Thu, 10 Oct 2013 17:11:55 +0000 (17:11 +0000)]
R600/SI: Implement SIInstrInfo::verifyInstruction() for VOP*
The function is used by the machine verifier and checks that VOP*
instructions have legal operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192367
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Thu, 10 Oct 2013 17:11:46 +0000 (17:11 +0000)]
R600/SI: Use -verify-machineinstrs for most tests
We can't enable the verifier for tests with SI_IF and SI_ELSE, because
these instructions are always followed by a COPY which copies their
result to the next basic block. This violates the machine verifier's
rule that non-terminators can not folow terminators.
Reviewed-by: Vincent Lejeune<vljn at ovi.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192366
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Thu, 10 Oct 2013 17:11:24 +0000 (17:11 +0000)]
R600/SI: Define a separate MIMG instruction for each possible output value type
During instruction selection, we rewrite the destination register
class for MIMG instructions based on their writemasks. This creates
machine verifier errors since the new register class does not match
the register class in the MIMG instruction definition.
We can avoid this by defining different MIMG instructions for each
possible destination type and then switching to the correct instruction
when we change the register class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192365
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Thu, 10 Oct 2013 17:11:19 +0000 (17:11 +0000)]
R600/SI: Mark the EXEC register as reserved
This prevents the machine verifier from complaining about uses of
an undefined physical register.
Reviewed-by: Vincent Lejeune<vljn at ovi.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192364
91177308-0d34-0410-b5e6-
96231b3b80d8
Tom Stellard [Thu, 10 Oct 2013 17:11:12 +0000 (17:11 +0000)]
R600: Use StructurizeCFGPass for non SI targets
StructurizeCFG pass allows to make complex cfg reducible ; it allows a lot of
shader from shadertoy (which exhibits complex control flow constructs) to works
correctly with respect to CFG handling (and allow us to detect potential bug in
other part of the backend).
We provide a cmd line argument to disable the pass for debug purpose.
Patch by: Vincent Lejeune
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192363
91177308-0d34-0410-b5e6-
96231b3b80d8
Hao Liu [Thu, 10 Oct 2013 17:00:52 +0000 (17:00 +0000)]
Implement AArch64 vector load/store multiple N-element structure class SIMD(lselem).
Including following 14 instructions:
4 ld1 insts: load multiple 1-element structure to sequential 1/2/3/4 registers.
ld2/ld3/ld4: load multiple N-element structure to sequential N registers (N=2,3,4).
4 st1 insts: store multiple 1-element structure from sequential 1/2/3/4 registers.
st2/st3/st4: store multiple N-element structure from sequential N registers (N = 2,3,4).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192361
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 10 Oct 2013 15:15:17 +0000 (15:15 +0000)]
Revert "Implement AArch64 vector load/store multiple N-element structure class SIMD(lselem). Including following 14 instructions: 4 ld1 insts: load multiple 1-element structure to sequential 1/2/3/4 registers. ld2/ld3/ld4: load multiple N-element structure to sequential N registers (N=2,3,4). 4 st1 insts: store multiple 1-element structure from sequential 1/2/3/4 registers. st2/st3/st4: store multiple N-element structure from sequential N registers (N = 2,3,4)."
This reverts commit r192352. It broke the build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192354
91177308-0d34-0410-b5e6-
96231b3b80d8
Hao Liu [Thu, 10 Oct 2013 15:01:24 +0000 (15:01 +0000)]
Implement AArch64 vector load/store multiple N-element structure class SIMD(lselem).
Including following 14 instructions:
4 ld1 insts: load multiple 1-element structure to sequential 1/2/3/4 registers.
ld2/ld3/ld4: load multiple N-element structure to sequential N registers (N=2,3,4).
4 st1 insts: store multiple 1-element structure from sequential 1/2/3/4 registers.
st2/st3/st4: store multiple N-element structure from sequential N registers (N = 2,3,4).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192352
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 10 Oct 2013 14:35:45 +0000 (14:35 +0000)]
ARM: Put isV8EligibleForIT into the llvm namespace. While there make it inline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192350
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 10 Oct 2013 12:46:23 +0000 (12:46 +0000)]
Disable function padding to get this test to pass on atom.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192348
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Thu, 10 Oct 2013 09:28:20 +0000 (09:28 +0000)]
ARM: correct liveness flags during ARMLoadStoreOpt
When we had a sequence like:
s1 = VLDRS [r0, 1], Q0<imp-def>
s3 = VLDRS [r0, 2], Q0<imp-use,kill>, Q0<imp-def>
s0 = VLDRS [r0, 0], Q0<imp-use,kill>, Q0<imp-def>
s2 = VLDRS [r0, 4], Q0<imp-use,kill>, Q0<imp-def>
we were gathering the {s0, s1} loads below the s3 load. This is fine,
but confused the verifier since now the s3 load had Q0<imp-use> with
no definition above it.
This should mark such uses <undef> as well. The liveness structure at
the beginning and end of the block is unaffected, and the true sN
definitions should prevent any dodgy reorderings being introduced
elsewhere.
rdar://problem/
15124449
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192344
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Thu, 10 Oct 2013 05:33:31 +0000 (05:33 +0000)]
Allow non-AVX form of pmovmskb to take a GR64 operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192341
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Thu, 10 Oct 2013 05:01:22 +0000 (05:01 +0000)]
Remove duplicate instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192340
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Thu, 10 Oct 2013 04:26:52 +0000 (04:26 +0000)]
Fix so CRC32r64r8 isn't accidentally filtered from the disassembler tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192339
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 9 Oct 2013 23:36:17 +0000 (23:36 +0000)]
[mips] Do not generate INS/EXT nodes if target does not have support for
ins/ext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192330
91177308-0d34-0410-b5e6-
96231b3b80d8
Rui Ueyama [Wed, 9 Oct 2013 23:15:49 +0000 (23:15 +0000)]
Revert "llvm-c: Make target initializer functions external functions in lib."
This reverts commit r192316. The original change introduced circular
dependencies between libTarget and backends. That would broke a build unless
link everything into one big binary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192329
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Wed, 9 Oct 2013 19:46:28 +0000 (19:46 +0000)]
Debug Info: In DIBuilder, the context and type fields of template_type and
template_value are updated to use DIRef.
A paired commit at clang is required due to changes to DIBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192320
91177308-0d34-0410-b5e6-
96231b3b80d8
Anders Waldenborg [Wed, 9 Oct 2013 19:02:09 +0000 (19:02 +0000)]
llvm-c: Make target initializer functions external functions in lib.
Making them proper functions defined in the (shared)lib instead of
static inlines defined in the header files makes it possible to
actually distribute a binary compiled against the shared library
without having to worry about getting undefined symbol errors when
calling e.g LLVMInitializeAllTargetInfos because the shared library on
the other system was compiled with different targets.
Differential Revision: http://llvm-reviews.chandlerc.com/D1714
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192316
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Wed, 9 Oct 2013 18:10:55 +0000 (18:10 +0000)]
Debug Info: In DIBuilder, the context field of a forward decl is updated
to use DIScopeRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192309
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 9 Oct 2013 17:37:04 +0000 (17:37 +0000)]
Add missing releases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192304
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 9 Oct 2013 17:23:41 +0000 (17:23 +0000)]
Flip the ownership of MCStreamer and MCTargetStreamer.
MCStreamer now owns the target streamer. This prevents leaking the target
streamer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192303
91177308-0d34-0410-b5e6-
96231b3b80d8
Shuxin Yang [Wed, 9 Oct 2013 17:21:44 +0000 (17:21 +0000)]
Fix a bug in Dead Argument Elimination.
If a function seen at compile time is not necessarily the one linked to
the binary being built, it is illegal to change the actual arguments
passing to it.
e.g.
--------------------------
void foo(int lol) {
// foo() has linkage satisifying isWeakForLinker()
// "lol" is not used at all.
}
void bar(int lo2) {
// xform to foo(undef) is illegal, as compiler dose not know which
// instance of foo() will be linked to the the binary being built.
foo(lol2);
}
-----------------------------
Such functions can be captured by isWeakForLinker(). NOTE that
mayBeOverridden() is insufficient for this purpose as it dosen't include
linkage types like AvailableExternallyLinkage and LinkOnceODRLinkage.
Take link_odr* as an example, it indicates a set of *EQUIVALENT* globals
that can be merged at link-time. However, the semantic of
*EQUIVALENT*-functions includes parameters. Changing parameters breaks
the assumption.
Thank John McCall for help, especially for the explanation of subtle
difference between linkage types.
rdar://
11546243
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192302
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 9 Oct 2013 16:07:32 +0000 (16:07 +0000)]
Add a GlobalAlias::isValidLinkage to reduce code duplication.
Thanks to Reid Kleckner for the suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192298
91177308-0d34-0410-b5e6-
96231b3b80d8
Venkatraman Govindaraju [Wed, 9 Oct 2013 12:50:39 +0000 (12:50 +0000)]
[Sparc] Disable tail call optimization for sparc64.
This patch fixes PR17506.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192294
91177308-0d34-0410-b5e6-
96231b3b80d8
Greg Bedwell [Wed, 9 Oct 2013 08:55:27 +0000 (08:55 +0000)]
Test commit. Remove whitespace from otherwise empty lines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192284
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Wed, 9 Oct 2013 08:16:14 +0000 (08:16 +0000)]
AVX-512: Added VRCP28 and VRSQRT28 instructions and intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192283
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Wed, 9 Oct 2013 07:53:57 +0000 (07:53 +0000)]
AArch64: enable MISched by default.
Substantial SelectionDAG scheduling is going away soon, and is
interfering with Hao's attempts to implement LDn/STn instructions, so
I say we make the leap first.
There were a few reorderings (inevitably) which broke some tests. I
tried to replace them with CHECK-DAG variants mostly, but some too
complex for that to be useful and I just reordered them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192282
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Wed, 9 Oct 2013 07:53:49 +0000 (07:53 +0000)]
AArch64: migrate ADRP relaxation test to be llvm-mc only.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192281
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 9 Oct 2013 06:12:53 +0000 (06:12 +0000)]
More x86 disassembler filtering cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192279
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Wed, 9 Oct 2013 05:11:10 +0000 (05:11 +0000)]
Add missing HasAVX512 predicate.
This was only working because AVX had cheaper rules in all cases.
I'm sure there are other places in this file where predicates are missing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192276
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 9 Oct 2013 05:02:29 +0000 (05:02 +0000)]
Remove some old filters from the x86 disassembler table builder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192275
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 9 Oct 2013 04:54:21 +0000 (04:54 +0000)]
Replace a couple instructions with patterns referring to other instructions with same encoding and operands. Mark a couple other instructions as CodeGenOnly since we have FR and VR instructions and only one of them is needed by the assembler/disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192274
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 9 Oct 2013 04:24:38 +0000 (04:24 +0000)]
Use AVX512PIi8 for the alt forms of vcmp instructions. This adds the TB prefix and keeps the mnemonic from starting with an extra 'v'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192272
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 9 Oct 2013 03:56:16 +0000 (03:56 +0000)]
Mark some instructions as CodeGenOnly since they aren't needed by the assembler or disassembler. Disassembler already filtered them, but asm parser still had them in its tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192271
91177308-0d34-0410-b5e6-
96231b3b80d8