Akira Hatanaka [Tue, 27 Sep 2011 22:01:01 +0000 (22:01 +0000)]
Embed patterns in definitions of MFC1 and MTC1 instead of defining them outside
of the instruction definitions using Pat<>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140644
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron Zwarich [Tue, 27 Sep 2011 21:59:16 +0000 (21:59 +0000)]
Remove an invalid assert that is really just asserting when the scheduler emits
a suboptimal schedule.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140643
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 27 Sep 2011 21:54:50 +0000 (21:54 +0000)]
test/CMakeLists.txt: Depend on llvm-objdump. "make check" is expected to resolve test-dependent targets on CMake build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140641
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 27 Sep 2011 20:59:33 +0000 (20:59 +0000)]
Rename AddSelectionDAGCSEId() to addSelectionDAGCSEId().
Naming conventions consistency. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140636
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 27 Sep 2011 20:39:19 +0000 (20:39 +0000)]
Stop emitting instructions with the name "tmp" they eat up memory and have to be uniqued, without any benefit.
If someone prefers %tmp42 to %42, run instnamer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140634
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 27 Sep 2011 20:16:57 +0000 (20:16 +0000)]
Remove incorrect passage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140631
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Tue, 27 Sep 2011 20:01:41 +0000 (20:01 +0000)]
These symbols appear to be visible by SearchForAddressOfSymbol and no longer
require special case handling.
rdar://
10117377
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140629
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 27 Sep 2011 19:37:18 +0000 (19:37 +0000)]
Add binary archive support to llvm-nm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140627
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 27 Sep 2011 19:36:55 +0000 (19:36 +0000)]
Object: Add archive support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140626
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 27 Sep 2011 19:34:22 +0000 (19:34 +0000)]
Check that catch clauses have pointer type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140625
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Tue, 27 Sep 2011 19:25:49 +0000 (19:25 +0000)]
PTX: Fix case where printed alignment could be 0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140624
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 27 Sep 2011 19:06:37 +0000 (19:06 +0000)]
Unbreak tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140622
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 27 Sep 2011 18:44:01 +0000 (18:44 +0000)]
Add FCA to the lexicon.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140619
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Tue, 27 Sep 2011 18:12:55 +0000 (18:12 +0000)]
PTX: Use external symbols to keep track of params and locals. This also fixes
a couple of outstanding issues with frame objects occuring as instruction
operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140616
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 27 Sep 2011 17:55:08 +0000 (17:55 +0000)]
Use existing function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140615
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 27 Sep 2011 17:15:27 +0000 (17:15 +0000)]
Fix function MipsRegisterInfo::getRegisterNumbering.
Return numbers of 64-bit registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140609
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 27 Sep 2011 16:58:43 +0000 (16:58 +0000)]
Do not add the pass that restores $gp if target is Mips64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140607
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 27 Sep 2011 16:43:19 +0000 (16:43 +0000)]
Have the verifier check that all landingpad operands are constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140606
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Tue, 27 Sep 2011 11:16:47 +0000 (11:16 +0000)]
Cleanup PromoteIntOp_EXTRACT_VECTOR_ELT and PromoteIntRes_SETCC.
Add a new method: getAnyExtOrTrunc and use it to replace the manual check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140603
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Tue, 27 Sep 2011 10:48:29 +0000 (10:48 +0000)]
Revert r140463; The patch assumes that <4 x i1> is saved to memory as 4 x i8,
while the decision is to bit-pack small values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140601
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 27 Sep 2011 10:37:28 +0000 (10:37 +0000)]
Remove some not-really-correct wording.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140600
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 27 Sep 2011 04:57:54 +0000 (04:57 +0000)]
Mark MipsPseudo isPseudo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140598
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Tue, 27 Sep 2011 01:04:47 +0000 (01:04 +0000)]
PTX: Add support for sitofp in backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140593
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 27 Sep 2011 00:59:31 +0000 (00:59 +0000)]
Split the landing pad basic block with the correct function. Also merge the
split landingpad instructions into a PHI node.
PR11016
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140592
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 27 Sep 2011 00:44:14 +0000 (00:44 +0000)]
Disable LSR retry by default.
Disabling aggressive LSR saves compilation time, and with the new
indvars behavior usually improves performance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140590
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Tue, 27 Sep 2011 00:17:29 +0000 (00:17 +0000)]
Last batch of test conversions to new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140585
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Mon, 26 Sep 2011 23:35:25 +0000 (23:35 +0000)]
LSR, one of the new Cost::isLoser() checks did not get merged in the previous checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140583
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 23:15:09 +0000 (23:15 +0000)]
Convert a bunch more tests over to the new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140582
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 26 Sep 2011 23:14:02 +0000 (23:14 +0000)]
Remove extraneous commit garbage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140581
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Mon, 26 Sep 2011 23:11:04 +0000 (23:11 +0000)]
LSR cost metric minor fix and verification.
The minor bug heuristic was noticed by inspection. I added the
isLoser/isValid helpers because they will become more
important with subsequent checkins.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140580
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 26 Sep 2011 23:08:34 +0000 (23:08 +0000)]
Fix an incorrect decoder test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140579
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 26 Sep 2011 22:30:57 +0000 (22:30 +0000)]
Remove old hack for compiling with gcc-4.0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140573
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 26 Sep 2011 22:13:55 +0000 (22:13 +0000)]
Remove incorrect testcases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140572
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Mon, 26 Sep 2011 21:55:17 +0000 (21:55 +0000)]
Set register class of a register according to value of HasMips64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140570
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Mon, 26 Sep 2011 21:47:02 +0000 (21:47 +0000)]
Define variable HasMips64 in MipsTargetLowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140569
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Mon, 26 Sep 2011 21:37:50 +0000 (21:37 +0000)]
In single float mode, double precision FP arguments are passed in integer
registers, so there is no need to check here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140568
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 21:36:10 +0000 (21:36 +0000)]
Convert more tests to new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140567
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 21:30:17 +0000 (21:30 +0000)]
Convert more tests over to the new atomic instructions.
I did not convert Atomics-32.ll and Atomics-64.ll by hand; the diff is autoupgrade output.
The wmb test is gone because there isn't any way to express wmb with the new atomic instructions; if someone really needs a non-asm way to write a wmb on Alpha, a platform-specific intrisic could be added.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140566
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 26 Sep 2011 21:10:31 +0000 (21:10 +0000)]
Fix grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140564
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 26 Sep 2011 21:08:28 +0000 (21:08 +0000)]
Remove dead table entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140563
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 26 Sep 2011 21:06:33 +0000 (21:06 +0000)]
Some minor (and more involved) cleanups. No real context changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140561
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 26 Sep 2011 21:06:22 +0000 (21:06 +0000)]
ASR #32 is not allowed on Thumb2 USAT and SSAT instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140560
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 20:27:49 +0000 (20:27 +0000)]
Convert more tests over to the new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140559
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 20:15:56 +0000 (20:15 +0000)]
Upgrade a couple more tests to the new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140558
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 20:15:28 +0000 (20:15 +0000)]
Enhance alias analysis for atomic instructions a bit. Upgrade a couple alias-analysis tests to the new atomic instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140557
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 19:19:48 +0000 (19:19 +0000)]
PTX: Fix memcpy intrinsic to handle 64-bit pointers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140556
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 26 Sep 2011 19:13:47 +0000 (19:13 +0000)]
Fix this test so it doesn't fail on Mac.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140553
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 18:57:27 +0000 (18:57 +0000)]
PTX: Implement PTXSelectionDAGInfo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140549
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 18:57:24 +0000 (18:57 +0000)]
PTX: Implement ISD::ANY_EXTEND
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140548
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 18:57:22 +0000 (18:57 +0000)]
PTX: Fix detection of stack load/store vs. global load/store, as well as fix the
printing of local offsets
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140547
91177308-0d34-0410-b5e6-
96231b3b80d8
James Molloy [Mon, 26 Sep 2011 17:40:42 +0000 (17:40 +0000)]
Fix emission of debug data for global variables. getContext() on DIGlobalVariables is not valid any more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140539
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 16:20:38 +0000 (16:20 +0000)]
PTX: Add .align tests to stack object test file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140537
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 16:20:36 +0000 (16:20 +0000)]
PTX: SM > 2.0 implies +double
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140536
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 16:20:34 +0000 (16:20 +0000)]
PTX: Fix some lingering issues with stack allocation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140535
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 16:20:31 +0000 (16:20 +0000)]
PTX: Split up the TableGen instruction definitions into logical units
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140534
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 16:20:28 +0000 (16:20 +0000)]
PTX: Unify handling of loads/stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140533
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Mon, 26 Sep 2011 16:20:25 +0000 (16:20 +0000)]
PTX: Handle FrameIndex nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140532
91177308-0d34-0410-b5e6-
96231b3b80d8
David Meyer [Mon, 26 Sep 2011 06:44:27 +0000 (06:44 +0000)]
Only run tests in test/CodeGen/CBackend/X86 when both X86 and CBackend are supported
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140517
91177308-0d34-0410-b5e6-
96231b3b80d8
David Meyer [Mon, 26 Sep 2011 06:13:20 +0000 (06:13 +0000)]
PR11004: Inline memcpy to avoid generating nested call sequence. Un-XFAIL 2011-06-09-TailCallByVal and 2010-11-04-BigByval
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140516
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Mon, 26 Sep 2011 05:12:43 +0000 (05:12 +0000)]
Fix VEX decoding in i386 mode. Fixes PR11008.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140515
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sun, 25 Sep 2011 19:21:35 +0000 (19:21 +0000)]
Add target hook for pseudo instruction expansion.
Many targets use pseudo instructions to help register allocation. Like
the COPY instruction, these pseudos can be expanded after register
allocation. The early expansion can make life easier for PEI and the
post-ra scheduler.
This patch adds a hook that is called for all remaining pseudo
instructions from the ExpandPostRAPseudos pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140472
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sun, 25 Sep 2011 18:59:42 +0000 (18:59 +0000)]
[vector-select] Address one of the issues in pr10902. EXTRACT_VECTOR_ELEMENT
SDNodes may return values which are wider than the incoming element types. In
this patch we fix the integer promotion of these nodes.
Fixes spill-q.ll when running -promote-elements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140471
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sun, 25 Sep 2011 16:46:08 +0000 (16:46 +0000)]
Clean up code after renaming LowerSubregs -> ExpandPostRAPseudos.
No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140470
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sun, 25 Sep 2011 16:46:00 +0000 (16:46 +0000)]
Rename LowerSubregs to ExpandPostRAPseudos.
I'll fix the file contents in the next commit.
This pass is currently expanding the COPY and SUBREG_TO_REG pseudos. I
am going to add a hook so targets can expand more pseudo-instructions
after register allocation.
Many targets have pseudo-instructions that assist the register
allocator. They can be expanded after register allocation, before PEI
and PostRA scheduling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140469
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 24 Sep 2011 22:06:35 +0000 (22:06 +0000)]
Sort CMakeLists.txt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140465
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sat, 24 Sep 2011 19:48:19 +0000 (19:48 +0000)]
Implement Duncan's suggestion to use the result of getSetCCResultType if it is legal
(this is always the case for scalars), otherwise use the promoted result type.
Fix test/CodeGen/X86/vsplit-and.ll when promote-elements is enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140464
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Sat, 24 Sep 2011 18:32:19 +0000 (18:32 +0000)]
[Vector-Select] Address one of the problems in 10902.
When generating the trunc-store of i1's, we need to use the vector type and not
the scalar type.
This patch fixes the assertion in CodeGen/Generic/bool-vector.ll when
running with -promote-elements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140463
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Sat, 24 Sep 2011 01:40:18 +0000 (01:40 +0000)]
Add .td file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140446
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Sat, 24 Sep 2011 01:37:58 +0000 (01:37 +0000)]
Revert change made in .gitignore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140445
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Sat, 24 Sep 2011 01:34:44 +0000 (01:34 +0000)]
Preparation for adding simple Mips64 instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140443
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sat, 24 Sep 2011 01:11:19 +0000 (01:11 +0000)]
Only run MF.verify() with EXPENSIVE_CHECKS=1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140441
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 23 Sep 2011 23:23:36 +0000 (23:23 +0000)]
sys::Process: Add a SetWorkingDirectory method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140433
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Fri, 23 Sep 2011 23:05:19 +0000 (23:05 +0000)]
LSR minor bug fix in RateRegister.
No test case. Noticed by inspection and I doubt it ever affects the
outcome of the overall heuristic, let alone final codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140431
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 23 Sep 2011 22:46:43 +0000 (22:46 +0000)]
Duncan owns dragonegg too, it's all his fault :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140430
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 23 Sep 2011 22:45:39 +0000 (22:45 +0000)]
Verify that terminators follow non-terminators.
This exposes a -segmented-stacks bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140429
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Fri, 23 Sep 2011 22:41:57 +0000 (22:41 +0000)]
PR10998: It is not legal to sink an instruction past the terminator of a block; make sure we don't do that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140428
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 23 Sep 2011 22:25:02 +0000 (22:25 +0000)]
Teach the Thumb2 AsmParser to accept pre-indexed loads/stores with an offset of #-0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140426
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 23 Sep 2011 22:10:33 +0000 (22:10 +0000)]
Also match negative offsets for addrmode3 and addrmode5.
Math is hard, and isScaledConstantInRange() always returned false for
negative constants. It was doing unsigned division of negative numbers
before casting back to signed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140425
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 23 Sep 2011 22:05:54 +0000 (22:05 +0000)]
Fix incorrect disassembly test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140423
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 23 Sep 2011 21:57:50 +0000 (21:57 +0000)]
Add more fixed bits to USAT16 encoding to filter out incorrect decodings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140422
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 23 Sep 2011 21:26:40 +0000 (21:26 +0000)]
Post-index loads/stores in still need to print the post-indexed immediate, even if it's zero, to distinguish them from non-post-indexed instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140420
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 23 Sep 2011 21:07:25 +0000 (21:07 +0000)]
Reapply r140412 (Thumb2 reg-reg loads cannot target SP or PC), with invalid testcases updated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140415
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 23 Sep 2011 21:02:01 +0000 (21:02 +0000)]
Revert r140412. This affects more instructions than intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140413
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 23 Sep 2011 21:00:32 +0000 (21:00 +0000)]
Thumb2 register-shifted-register loads cannot target the PC or the SP.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140412
91177308-0d34-0410-b5e6-
96231b3b80d8
Anna Zaks [Fri, 23 Sep 2011 19:10:26 +0000 (19:10 +0000)]
Add getTreeFactory() to ImmutableSet to allow construction of ImmutableSetRef from an ImmutableSet object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140402
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Fri, 23 Sep 2011 19:08:15 +0000 (19:08 +0000)]
Implement N32/64 calling convention. Patch by Liu.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140401
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Fri, 23 Sep 2011 18:28:39 +0000 (18:28 +0000)]
Make FGR64RegisterClass available if target is Mips64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140397
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Fri, 23 Sep 2011 18:11:56 +0000 (18:11 +0000)]
Add definitions of 64-bit register files. Add code for returning Mips64's sets of
callee-saved registers and reserved registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140395
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Fri, 23 Sep 2011 17:59:11 +0000 (17:59 +0000)]
PTX: Fix parameter order bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140394
91177308-0d34-0410-b5e6-
96231b3b80d8
Wesley Peck [Fri, 23 Sep 2011 17:24:41 +0000 (17:24 +0000)]
Fix a couple of 80 column violations.
patch contributed by Jia Liu!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140391
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Fri, 23 Sep 2011 17:15:53 +0000 (17:15 +0000)]
PTX: Cleanup unused code in PTXMachineFunctionInfo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140390
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Fri, 23 Sep 2011 16:50:35 +0000 (16:50 +0000)]
PTX: Fix another 80-column violation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140387
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Fri, 23 Sep 2011 16:48:41 +0000 (16:48 +0000)]
PTX: Handle function call return values
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140386
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Osborne [Fri, 23 Sep 2011 16:28:10 +0000 (16:28 +0000)]
Fix 80 column violations.
Original patch by Liu.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140385
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 23 Sep 2011 16:10:22 +0000 (16:10 +0000)]
Implement Chris's suggestion of legalizing the various SSE and AVX
hadd/hsub intrinsics into the new fhadd/fhsub X86 node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140383
91177308-0d34-0410-b5e6-
96231b3b80d8
Garrison Venn [Fri, 23 Sep 2011 14:45:10 +0000 (14:45 +0000)]
Modified demo to use 3.0 resume instruction vs calling _Unwine_Resume.
Also conducted some reformatting. As the LLVM coding standard doc does not
seem to touch on how to align function arguments, and format code longer than
80 cols in general, the confusion persists. There is the golden rule, but as
this code has gone through several styles to deal with this, the golden rule
seems to be ignored. The latest reformatting effort tries to match the other
source files as much as possible.
Tested on OS X 10.7.1 with, and without the OLD_EXC_SYSTEM defined. Have NOT
tested on LINUX.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140379
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Fri, 23 Sep 2011 14:31:12 +0000 (14:31 +0000)]
PTX: Start fixing function calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140378
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Fri, 23 Sep 2011 14:18:27 +0000 (14:18 +0000)]
PTX: Remove PTX calling convention files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140377
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Fri, 23 Sep 2011 14:18:24 +0000 (14:18 +0000)]
[PATCH 2/2] PTXInstrInfo.td PTXIntrinsicInstrInfo.td 80 columns
From
5936c03172e251f12a0332d1033de5718e6e2091 Mon Sep 17 00:00:00 2001
---
lib/Target/PTX/PTXInstrInfo.td | 165 ++++++++++++++++++++----------
lib/Target/PTX/PTXIntrinsicInstrInfo.td | 88 +++++++++++------
2 files changed, 167 insertions(+), 86 deletions(-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140376
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Fri, 23 Sep 2011 14:18:22 +0000 (14:18 +0000)]
PTX: Generalize handling of .param types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140375
91177308-0d34-0410-b5e6-
96231b3b80d8