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
Justin Holewinski [Fri, 23 Sep 2011 14:18:19 +0000 (14:18 +0000)]
PTX: Cleanup unused code in the PTXMFInfoExtract pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140374
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 23 Sep 2011 13:59:22 +0000 (13:59 +0000)]
Tweak the handling of MERGE_VALUES nodes: remove the need for
DecomposeMERGE_VALUES to "know" that results are legalized in
a particular order, by passing it the number of the result
being legalized (the type legalization core provides this, it
just needs to be passed on).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140373
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Fri, 23 Sep 2011 09:33:24 +0000 (09:33 +0000)]
Vector-Select: Address one of the problems in pr10902. Add handling for the
integer-promotion of CONCAT_VECTORS.
Test: test/CodeGen/X86/widen_shuffle-1.ll
This patch fixes the above tests (when running in with -promote-elements).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140372
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Fri, 23 Sep 2011 06:57:25 +0000 (06:57 +0000)]
Don't allow 32-bit only instructions to be disassembled in 64-bit mode. Fixes part of PR10700.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140370
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Fri, 23 Sep 2011 02:33:15 +0000 (02:33 +0000)]
Add definitions of 64-bit int registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140366
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Fri, 23 Sep 2011 00:58:33 +0000 (00:58 +0000)]
Do not rely on the enum values of argument registers A0-A3 being consecutive.
Define function getNextIntArgReg, which takes a register as a parameter and
returns the next O32 argument integer register. Use this function when double
precision floating point arguments are passed in two integer registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140363
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 23 Sep 2011 00:53:10 +0000 (00:53 +0000)]
We're no longer going to bother supporting platforms that don't
support C89.
We probably didn't support them anyways.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140361
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Fri, 23 Sep 2011 00:13:02 +0000 (00:13 +0000)]
PR10989: Don't print .hidden on Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140356
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Thu, 22 Sep 2011 23:41:28 +0000 (23:41 +0000)]
PR10991: make fast-isel correctly check whether accessing a global through an alias involves thread-local storage. (I'm not entirely sure how this is supposed to work, but this patch makes fast-isel consistent with the normal isel path.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140355
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Thu, 22 Sep 2011 23:31:54 +0000 (23:31 +0000)]
Make changes in instruction and pattern definitions so that tablegen does not
complain it cannot infer types in patterns. Fix a mistake in definition of
SDT_MipsExtractElementF64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140354
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 22 Sep 2011 23:20:48 +0000 (23:20 +0000)]
Add new files to CMake.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140352
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 22 Sep 2011 23:01:29 +0000 (23:01 +0000)]
Fix SimplifySelectCC to add newly created nodes to the DAGCombiner
worklist, as it may be possible to perform further optimization on them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140349
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 22 Sep 2011 22:45:24 +0000 (22:45 +0000)]
Add support for GR32 <-> FR32 cross class copies.
We already support GR64 <-> VR128 copies. All of these copies break
partial register dependencies by zeroing the high part of the target
register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140348
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 22 Sep 2011 22:38:34 +0000 (22:38 +0000)]
Update CMake build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140347
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 22 Sep 2011 22:32:22 +0000 (22:32 +0000)]
Start stubbing out MCModule and MCAtom, which provide an API for accessing the rich disassembly of a complete object or executable.
These are very much a work in progress, and not really useful yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140345
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 22 Sep 2011 21:39:34 +0000 (21:39 +0000)]
Constrain register classes instead of emitting copies.
Sometimes register class constraints are trivial, like GR32->GR32_NOSP,
or GPR->rGPR. Teach InstrEmitter to simply constrain the virtual
register instead of emitting a copy in these cases.
Normally, these copies are handled by the coalescer. This saves some
coalescer work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140340
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 22 Sep 2011 21:39:31 +0000 (21:39 +0000)]
Add a MinNumRegs argument to MRI::constrainRegClass().
The function will refuse to use a register class with fewer registers
than MinNumRegs. This can be used by clients to avoid accidentally
increase register pressure too much.
The default value of MinNumRegs=0 doesn't affect how constrainRegClass()
works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140339
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 22 Sep 2011 20:15:48 +0000 (20:15 +0000)]
Synthesize SSE3/AVX 128 bit horizontal add/sub instructions from
floating point add/sub of appropriate shuffle vectors. Does not
synthesize the 256 bit AVX versions because they work differently.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140332
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Thu, 22 Sep 2011 18:56:30 +0000 (18:56 +0000)]
PR10987: add a missed safety check to isSafePHIToSpeculate in scalarrepl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140327
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 22 Sep 2011 18:54:31 +0000 (18:54 +0000)]
Resynch intro to section with copyright section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140326
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Thu, 22 Sep 2011 18:29:29 +0000 (18:29 +0000)]
Print parentheses in next line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140325
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Thu, 22 Sep 2011 18:24:21 +0000 (18:24 +0000)]
Change subreg index of AFPR64 from sub_fpeven to sub_32 per Jakob's comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140324
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Thu, 22 Sep 2011 17:57:32 +0000 (17:57 +0000)]
Define a new sub-register index sub_32 for accessing the 32-bit sub-register of
a 64-bit integer register. Move the subreg index definitions to the beginning
of the file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140319
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 22 Sep 2011 17:56:40 +0000 (17:56 +0000)]
Use the C personality function instead of the C++ personality function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140318
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Thu, 22 Sep 2011 17:44:37 +0000 (17:44 +0000)]
Print three closing parentheses when Kind is either VK_Mips_GPOFF_HI or
VK_Mips_GPOFF_LO.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140316
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Thu, 22 Sep 2011 17:35:03 +0000 (17:35 +0000)]
Add F31 to the set of callee-saved registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140315
91177308-0d34-0410-b5e6-
96231b3b80d8
Galina Kistanova [Thu, 22 Sep 2011 17:33:24 +0000 (17:33 +0000)]
Fix for warnings: ignoring return value of ‘write’, declared with attribute warn_unused_result.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140314
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Thu, 22 Sep 2011 17:26:58 +0000 (17:26 +0000)]
Fix typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140313
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Thu, 22 Sep 2011 16:45:51 +0000 (16:45 +0000)]
PTX: fixup test cases for register changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140311
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Thu, 22 Sep 2011 16:45:48 +0000 (16:45 +0000)]
PTX: Remove physical register defs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140310
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Thu, 22 Sep 2011 16:45:46 +0000 (16:45 +0000)]
PTX: Use .param space for device function return values on SM 2.0+, and attempt
to fix up parameter passing on SM < 2.0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140309
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Thu, 22 Sep 2011 16:45:43 +0000 (16:45 +0000)]
PTX: Fix style issues
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140308
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Thu, 22 Sep 2011 16:45:40 +0000 (16:45 +0000)]
PTX: Fixup codegen to handle emission of virtual registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140307
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Thu, 22 Sep 2011 16:45:37 +0000 (16:45 +0000)]
PTX: Customize codegen passes in backend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140306
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Holewinski [Thu, 22 Sep 2011 16:45:33 +0000 (16:45 +0000)]
PTX: Add new PTX-specific register allocator that keeps virtual registers
instead of allocating physical registers.
This is part of a work-in-progress overhaul of the PTX register allocation scheme.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140305
91177308-0d34-0410-b5e6-
96231b3b80d8
Garrison Venn [Thu, 22 Sep 2011 15:45:14 +0000 (15:45 +0000)]
Converted Exception demo over to using new 3.0 landingpad instruction. This
was compiled and tested on OS X 10.7.1. It was not tested on LINUX. In
addition the defined OLD_EXC_SYSTEM was not tested with this version.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140303
91177308-0d34-0410-b5e6-
96231b3b80d8
Garrison Venn [Thu, 22 Sep 2011 14:07:50 +0000 (14:07 +0000)]
This is a hack to get the demo working with the new 3.0 exception
infrastructure. As this makes the demo no longer a demo, and especially not a
demo on how to use the llvm exception mechanism, this hack will shortly be
changed to use the new 3.0 exception infrastructure. However for the time being
this demo is an example on how to use the AutoUpgrade
UpgradeExceptionHandling(...) function on < 3.0 exception handling code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140301
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Thu, 22 Sep 2011 07:01:50 +0000 (07:01 +0000)]
Fix register printing in disassembling of push/pop of segment registers and in/out in Intel syntax mode. Fixes PR10960
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140299
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Thu, 22 Sep 2011 03:48:47 +0000 (03:48 +0000)]
Add definition of 64-bit floating registers used for Mips64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140297
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 22 Sep 2011 03:27:22 +0000 (03:27 +0000)]
The SSE version differences for fmin/fmax are more involved than I thought.
- x87: no min or max.
- SSE1: min/max for single precision scalars and vectors.
- SSE2: min/max for single and double precision scalars and vectors.
- AVX: as SSE2, but also supports the wider ymm vectors. (this is covered by the isTypeLegal check)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140296
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Thu, 22 Sep 2011 03:09:07 +0000 (03:09 +0000)]
Add enums and functions for symbols Mips64 uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140295
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 22 Sep 2011 03:01:42 +0000 (03:01 +0000)]
X86: Don't form min/max nodes if the target is missing SSE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140294
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Thu, 22 Sep 2011 02:53:37 +0000 (02:53 +0000)]
Mips64 aligns stack on 16-byte boundary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140292
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Thu, 22 Sep 2011 02:41:29 +0000 (02:41 +0000)]
Remove unnecessary condition check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140291
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 21 Sep 2011 23:53:44 +0000 (23:53 +0000)]
Turns out that Thumb2 ADR doesn't need special printing like LDR does. Fix other test failures I caused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140284
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 21 Sep 2011 23:44:46 +0000 (23:44 +0000)]
Print out immediate offset versions of PC-relative load/store instructions as [pc, #123] rather than simply #123.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140283
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 21 Sep 2011 23:41:11 +0000 (23:41 +0000)]
Do not unnecessarily use AT_specification DIE because it does not add any value.
Few weeks ago, llvm completely inverted the debug info graph. Earlier each debug info node used to keep track of its compile unit, now compile unit keeps track of important nodes. One impact of this change is that the global variable's do not have any context, which should be checked before deciding to use AT_specification DIE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140282
91177308-0d34-0410-b5e6-
96231b3b80d8
Galina Kistanova [Wed, 21 Sep 2011 23:34:23 +0000 (23:34 +0000)]
Fix for DbgInfoPrinter.cpp:174:12: warning: ‘LineNo’ may be used uninitialized in this function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140281
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 21 Sep 2011 22:57:02 +0000 (22:57 +0000)]
The last verification check for the new EH model.
This makes sure that the unwind destination of an invoke is a landing pad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140280
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 21 Sep 2011 22:16:43 +0000 (22:16 +0000)]
llvm-objdump: Detach symbol listing from section enumeration for mach-o.
This reduces memory usage as we don't add the same symbol multiple times anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140278
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 21 Sep 2011 22:14:28 +0000 (22:14 +0000)]
Attempt to update the shadow stack GC pass to the new EH model.
This inserts a cleanup landingpad instruction and a resume to mimic the old
unwind instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140277
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 21 Sep 2011 21:47:35 +0000 (21:47 +0000)]
X86Disassembler: if verbose logging is going to nulls(), disable logging completely.
Otherwise we'll spend a ridiculous amount of time pretty printing debug output and then discarding it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140276
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 21 Sep 2011 21:36:53 +0000 (21:36 +0000)]
Tidy up. Whitepsace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140275
91177308-0d34-0410-b5e6-
96231b3b80d8
Wesley Peck [Wed, 21 Sep 2011 19:23:46 +0000 (19:23 +0000)]
Fix some simple copy-paste errors in MBlaze ASM Parser and Makefile.
patch contributed by Jia Liu!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140273
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Wed, 21 Sep 2011 18:18:53 +0000 (18:18 +0000)]
llvm-objdump: Take the data from the right object when there's no dSYM around.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140269
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 21 Sep 2011 17:58:45 +0000 (17:58 +0000)]
These do not need to be conditional on the presence of CommentStream, as they have a fallback path now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140267
91177308-0d34-0410-b5e6-
96231b3b80d8