Ted Kremenek [Fri, 23 Dec 2011 01:31:45 +0000 (01:31 +0000)]
Use 'check_symbol_exists' instead of 'check_function_exists' for finding isatty. This change allows Xcode generated projects to have HAVE_ISATTY to be properly defined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147215
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 23 Dec 2011 00:36:18 +0000 (00:36 +0000)]
Experimental support for aligned NEON spills.
ARM targets with NEON units have access to aligned vector loads and
stores that are potentially faster than unaligned operations.
Add support for spilling the callee-saved NEON registers to an aligned
stack area using 16-byte aligned NEON loads and store.
This feature is off by default, controlled by an -align-neon-spills
command line option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147211
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 22 Dec 2011 23:39:48 +0000 (23:39 +0000)]
Add variants of the dispatchsetup pseudo for Thumb and !VFP. <rdar://
10620138>
My change r146949 added register clobbers to the eh_sjlj_dispatchsetup pseudo
instruction, but on Thumb1 some of those registers cannot be used. This
caused massive failures on the testsuite when compiling for Thumb1. While
fixing that, I noticed that the eh_sjlj_setjmp instruction has a "nofp"
variant, and I realized that dispatchsetup needs the same thing, so I have
added that as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147204
91177308-0d34-0410-b5e6-
96231b3b80d8
Dylan Noblesmith [Thu, 22 Dec 2011 23:16:09 +0000 (23:16 +0000)]
TableGen: add a comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147199
91177308-0d34-0410-b5e6-
96231b3b80d8
Dylan Noblesmith [Thu, 22 Dec 2011 23:08:39 +0000 (23:08 +0000)]
try to fix MSVC build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147198
91177308-0d34-0410-b5e6-
96231b3b80d8
Dylan Noblesmith [Thu, 22 Dec 2011 23:04:07 +0000 (23:04 +0000)]
drop unneeded config.h includes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147197
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 22 Dec 2011 22:50:44 +0000 (22:50 +0000)]
Attempt #2 to fix mingw crossbuild. This time with more ugly hacks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147196
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Thu, 22 Dec 2011 22:35:21 +0000 (22:35 +0000)]
Fix 80-column violations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147192
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 22 Dec 2011 22:25:26 +0000 (22:25 +0000)]
Make the -fvisibility-inlines-hidden check more thorough in a hopeless attempt to fix mingw cross-compiles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147191
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 22:21:47 +0000 (22:21 +0000)]
Move all the dependencies on X86FixupKinds.h to a single method in preparation
to moving it to lib/Target/X86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147190
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 22 Dec 2011 22:19:05 +0000 (22:19 +0000)]
ARM VFP assembly parsing and encoding for VCVT(float <--> fixed point).
rdar://
10558523
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147189
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 22 Dec 2011 22:12:44 +0000 (22:12 +0000)]
Add missing usesCustomInserter flag on Int_eh_sjlj_setjmp_nofp.
Noticed by inspection; I don't have a testcase for this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147188
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 22 Dec 2011 22:12:40 +0000 (22:12 +0000)]
Remove broken command to copy tblgen tool.
tblgen has been renamed to llvm-tblgen so this command has been failing,
and it's no longer needed because llvm-tblgen is already installed by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147187
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Thu, 22 Dec 2011 22:11:19 +0000 (22:11 +0000)]
Some unittests for APInt rotates; patch by Cameron McInally.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147186
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 22 Dec 2011 22:02:35 +0000 (22:02 +0000)]
Tidy up. Use predicate function a bit more liberally.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147184
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 22 Dec 2011 21:41:32 +0000 (21:41 +0000)]
Reenable building with -fvisibility-inlines-hidden.
This was disabled years ago because of a bug in GCC 4.1, which is
on our "broken compilers" list for other reasons. Saving ~500k
on a clang binary (Release+Asserts) is well worth dropping support
for it.
We currently disable it for shared libraries (where it would bring
the biggest win) because clang is broken (PR11642).
IMPORTANT: If you're doing incremental builds you may get tons of
linker warnings. make clean will fix them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147182
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 21:36:43 +0000 (21:36 +0000)]
Fix incorrect relocation generation. Patch by Kristof Beyls.
Fixes PR11214.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147180
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Thu, 22 Dec 2011 21:10:46 +0000 (21:10 +0000)]
Add the actual code for r147175.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147176
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Thu, 22 Dec 2011 21:06:36 +0000 (21:06 +0000)]
Reinstate r146578; it doesn't appear to be the cause of some recent execution-
time regressions. In general, it is beneficial to compile-time.
Original commit message:
Fix for bug #11429: Wrong behaviour for switches. Small improvement for code
size heuristics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147175
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 22 Dec 2011 19:55:21 +0000 (19:55 +0000)]
ARM VFP add encoding of the bitcount to fixed-point<-->floating point. insns.
The value from the operands isn't right yet, but we weren't encoding it at
all previously. The parser needs to twiddle the values when building the
instruction.
Partial for: rdar://
10558523
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147170
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 22 Dec 2011 19:45:01 +0000 (19:45 +0000)]
Remove some bogus comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147169
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 22 Dec 2011 19:20:51 +0000 (19:20 +0000)]
fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147159
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 22 Dec 2011 19:20:45 +0000 (19:20 +0000)]
ARM pre-UAL aliases. fcmp[sd].
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147158
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 18:38:06 +0000 (18:38 +0000)]
Fix an incomplete refactoring of the ppc backend. Thanks to rdivacky for reporting
it. It does need some some tests...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147154
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 22 Dec 2011 18:04:04 +0000 (18:04 +0000)]
ARM assembler should accept shift-by-zero for any shifted-immediate operand.
Just treat it as-if the shift wasn't there at all. 'as' compatibility.
rdar://
10604767
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147153
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 22 Dec 2011 17:37:00 +0000 (17:37 +0000)]
ARM assembly parser canonicallize on 'lsl' for shift-by-zero form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147152
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 22 Dec 2011 17:17:10 +0000 (17:17 +0000)]
Tidy up. Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147151
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 22 Dec 2011 17:04:50 +0000 (17:04 +0000)]
Nuke invalid comment from copy/paste.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147150
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 22 Dec 2011 14:22:14 +0000 (14:22 +0000)]
Give string constants generated by IRBuilder private linkage.
Fixes PR11640.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147144
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 14:01:18 +0000 (14:01 +0000)]
Add configure support for kfreebsd and hurd. Patch by Sylvestre Ledru.
Fixes pr11620.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147143
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Thu, 22 Dec 2011 09:26:37 +0000 (09:26 +0000)]
Make the unreachable probability much much heavier. The previous
probability wouldn't be considered "hot" in some weird loop structures
or other compounding probability patterns. This makes it much harder to
confuse, but isn't really a principled fix. I'd actually like it if we
could model a zero probability, as it would make this much easier to
reason about. Suggestions for how to do this better are welcome.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147142
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 03:38:00 +0000 (03:38 +0000)]
Kill the monstrosity that was ELFObjectWriter.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147136
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 03:24:43 +0000 (03:24 +0000)]
Misc cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147135
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Thu, 22 Dec 2011 03:15:35 +0000 (03:15 +0000)]
Fix APInt::rotl and APInt::rotr so that they work correctly. Found while writing some code that tried to use them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147134
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 03:03:17 +0000 (03:03 +0000)]
Move the Mips only bits of the ELF writer to lib/Target/Mips.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147133
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 02:58:12 +0000 (02:58 +0000)]
Make the virtual methods in ARMELFObjectWriter public.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147132
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Thu, 22 Dec 2011 02:40:57 +0000 (02:40 +0000)]
Speculatively revert r146578 to determine if it is the cause of a number of
performance regressions (both execution-time and compile-time) on our
nightly testers.
Original commit message:
Fix for bug #11429: Wrong behaviour for switches. Small improvement for code
size heuristics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147131
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 02:28:24 +0000 (02:28 +0000)]
Move the MBlaze ELF writer bits to lib/Target/MBlaze.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147129
91177308-0d34-0410-b5e6-
96231b3b80d8
Pete Cooper [Thu, 22 Dec 2011 02:13:25 +0000 (02:13 +0000)]
Hoisted some loop invariant smallvector lookups out of a MachineLICM loop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147127
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 02:06:17 +0000 (02:06 +0000)]
Fix cmake.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147126
91177308-0d34-0410-b5e6-
96231b3b80d8
Pete Cooper [Thu, 22 Dec 2011 02:05:40 +0000 (02:05 +0000)]
Changed MachineLICM to use a worklist list MachineCSE instead of recursion.
Fixes <rdar://problem/
10584116>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147125
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 01:57:09 +0000 (01:57 +0000)]
Move PPC bits to lib/Target/PowerPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147124
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 01:11:01 +0000 (01:11 +0000)]
Hopefully fix the cmake build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147121
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 01:06:53 +0000 (01:06 +0000)]
Fix name in comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147119
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Thu, 22 Dec 2011 01:05:17 +0000 (01:05 +0000)]
Local dynamic TLS model for direct object output. Create the correct TLS MIPS
ELF relocations.
Patch by Jack Carter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147118
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Smith [Thu, 22 Dec 2011 01:03:35 +0000 (01:03 +0000)]
Unbreak cmake build after r147115.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147117
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 00:37:50 +0000 (00:37 +0000)]
Move the ARM specific parts of the ELF writer to Target/ARM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147115
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 22 Dec 2011 00:21:50 +0000 (00:21 +0000)]
getEFlags is const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147114
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Thu, 22 Dec 2011 00:12:51 +0000 (00:12 +0000)]
Fixed typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147113
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 21 Dec 2011 23:52:37 +0000 (23:52 +0000)]
ARM NEON mnemonic aliase for vrecpeq.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147109
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 21 Dec 2011 23:24:15 +0000 (23:24 +0000)]
ARM VFP optional data type on VMOV GPR<-->SPR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147104
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 21 Dec 2011 23:09:28 +0000 (23:09 +0000)]
ARM NEON optional data type on VSWP instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147103
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 21 Dec 2011 23:04:33 +0000 (23:04 +0000)]
ARM NEON mnemonic aliases for vzipq and vswpq.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147102
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakub Staszak [Wed, 21 Dec 2011 23:02:08 +0000 (23:02 +0000)]
Revert patch from 147090. There is not point to make code less readable if we
don't get any serious benefit there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147101
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 21 Dec 2011 22:30:16 +0000 (22:30 +0000)]
ARM asm parser should be more lenient w/ .thumb_func directive.
Rather than require the symbol to be explicitly an argument of the directive,
allow it to look ahead and grab the symbol from the next non-whitespace
line.
rdar://
10611140
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147100
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 21 Dec 2011 21:43:50 +0000 (21:43 +0000)]
Fix a copy+pasto. No testcase, because the symptoms of dereferencing
an invalid iterator aren't reproducible. rdar://
10614085.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147098
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 21 Dec 2011 21:04:19 +0000 (21:04 +0000)]
Thumb2 assembly parsing of 'mov rd, rn, rrx'.
Maps to the RRX instruction. Missed this case earlier.
rdar://
10615373
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147096
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 21 Dec 2011 20:59:09 +0000 (20:59 +0000)]
Fix 80-column violations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147095
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 21 Dec 2011 20:54:00 +0000 (20:54 +0000)]
Thumb2 assembly parsing of 'mov(register shifted register)' aliases.
These map to the ASR, LSR, LSL, ROR instruction definitions.
rdar://
10615373
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147094
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 21 Dec 2011 20:26:03 +0000 (20:26 +0000)]
Continue counting intrinsics as instructions (except when they aren't, such as
debug info) and for being vector operations. Fixes regression from r147037.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147093
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 21 Dec 2011 20:21:55 +0000 (20:21 +0000)]
Fix typo and spacing, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147092
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakub Staszak [Wed, 21 Dec 2011 20:18:54 +0000 (20:18 +0000)]
- Change a few operator[] to lookup which is cheaper.
- Add some constantness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147090
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 21 Dec 2011 20:16:11 +0000 (20:16 +0000)]
Oops - LiveIntervalUnion.cpp file does use std::find. Moving STL header include to LiveIntervalUnion.cpp file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147089
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 21 Dec 2011 20:12:54 +0000 (20:12 +0000)]
Remove disused STL header include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147088
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 21 Dec 2011 20:09:46 +0000 (20:09 +0000)]
Switch from WriteEFlags to getEFlags in preparation for moving it
to Target/.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147087
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 21 Dec 2011 19:50:05 +0000 (19:50 +0000)]
Move common code into an MRI function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147071
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 21 Dec 2011 19:40:55 +0000 (19:40 +0000)]
ARM NEON assmebly parsing for VLD2 to all lanes instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147069
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 21 Dec 2011 19:14:52 +0000 (19:14 +0000)]
No case stmt for BUILD_VECTOR in PerformDAGCombine(), so I assume this isn't
necessary. Please chime in if I'm mistaken.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147065
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Wed, 21 Dec 2011 18:56:22 +0000 (18:56 +0000)]
Fix a couple of copy-n-paste bugs. Noticed by George Russell!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147064
91177308-0d34-0410-b5e6-
96231b3b80d8
Manuel Klimek [Wed, 21 Dec 2011 18:16:39 +0000 (18:16 +0000)]
Changes the JSON parser to use the SourceMgr.
Diagnostics are now emitted via the SourceMgr and we use MemoryBuffer
for buffer management. Switched the code to make use of the trailing
'0' that MemoryBuffer guarantees where it makes sense.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147063
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 21 Dec 2011 17:30:17 +0000 (17:30 +0000)]
Move the X86 specific bits of the ELF writer to the Target/X86 directory.
Other targets will follow shortly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147060
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 21 Dec 2011 17:00:36 +0000 (17:00 +0000)]
Reduce the exposure of Triple::OSType in the ELF object writer. This will
avoid including ADT/Triple.h in many places when the target specific bits are
moved.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147059
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 21 Dec 2011 14:48:04 +0000 (14:48 +0000)]
Add const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147054
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 21 Dec 2011 14:26:29 +0000 (14:26 +0000)]
Small refactoring so that RelocNeedsGOT can stay in the target independent
side when the target specific bits are moved to the Target directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147053
91177308-0d34-0410-b5e6-
96231b3b80d8
Manuel Klimek [Wed, 21 Dec 2011 10:02:45 +0000 (10:02 +0000)]
Removes unused field TheError from LLLexer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147049
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 21 Dec 2011 08:06:52 +0000 (08:06 +0000)]
Remove mode specific disassembler classes and just call X86GenericDisassembler constructor with appropriate argument in the creation functions. This removes a few tables that needed to be anchored.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147046
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Wed, 21 Dec 2011 06:30:53 +0000 (06:30 +0000)]
Fix typo in a couple comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147045
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 21 Dec 2011 06:06:30 +0000 (06:06 +0000)]
A call to a function marked 'noinline' is not an inline candidate. The sole
call site of an intrinsic is also not an inline candidate. While here, make it
more obvious that this code ignores all intrinsics. Noticed by inspection!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147037
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 21 Dec 2011 05:52:02 +0000 (05:52 +0000)]
Make some intrinsics safe to speculatively execute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147036
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 21 Dec 2011 03:04:10 +0000 (03:04 +0000)]
Fix a couple of copy-n-paste bugs. Noticed by George Russell.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147032
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 21 Dec 2011 01:19:23 +0000 (01:19 +0000)]
ARM assembly parsing allows constant expressions for lane indices.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147028
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 21 Dec 2011 00:52:44 +0000 (00:52 +0000)]
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147027
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 21 Dec 2011 00:38:54 +0000 (00:38 +0000)]
ARM NEON VLD2 assembly parsing for structure to all lanes, non-writeback.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147025
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 21 Dec 2011 00:31:10 +0000 (00:31 +0000)]
Fix bug in zero-store peephole pattern reported in pr11615.
The patch and test case were originally written by Mans Rullgard.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147024
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 21 Dec 2011 00:20:27 +0000 (00:20 +0000)]
Expand 64-bit CTLZ nodes if target architecture does not support it. Add test
case for DCLO and DCLZ.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147022
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 21 Dec 2011 00:14:05 +0000 (00:14 +0000)]
Expand 64-bit CTPOP and CTTZ.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147021
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Wed, 21 Dec 2011 00:02:58 +0000 (00:02 +0000)]
Expand 64-bit atomic load and store.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147019
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 20 Dec 2011 23:58:36 +0000 (23:58 +0000)]
Test case for r147017.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147018
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 20 Dec 2011 23:56:43 +0000 (23:56 +0000)]
Add definition of DSBH (Double Swap Bytes within Halfwords) and
DSHD (Double Swap Halfwords within Doublewords). Add a pattern which replaces
64-bit bswap with a DSBH and DSHD pair.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147017
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 20 Dec 2011 23:47:44 +0000 (23:47 +0000)]
Add definition of WSBH (Word Swap Bytes within Halfwords), which is an
instruction supported by mips32r2, and add a pattern which replaces bswap with
a ROTR and WSBH pair.
WSBW is removed since it is not an instruction the current architectures
support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147015
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 20 Dec 2011 23:40:56 +0000 (23:40 +0000)]
64-bit uint-fp conversion nodes are expanded.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147014
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 20 Dec 2011 23:35:46 +0000 (23:35 +0000)]
Enable custom lowering DYNAMIC_STACKALLOC nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147013
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 20 Dec 2011 23:28:36 +0000 (23:28 +0000)]
Set the correct stack pointer register that should be saved or restored.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147012
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 20 Dec 2011 23:20:00 +0000 (23:20 +0000)]
Enable and fix a test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147011
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 20 Dec 2011 23:14:57 +0000 (23:14 +0000)]
Fix a nasty bug in the type remapping stuff that I added that is breaking kc++ on
the build bot in some cases. The basic issue happens when a source module contains
both a "%foo" type and a "%foo.42" type. It will see the later one, check to see if
the destination module contains a "%foo" type, and it will return true... because
both the source and destination modules are in the same LLVMContext. We don't want
to map source types to other source types, so don't do the remapping if the mapped
type came from the source module.
Unfortunately, I've been unable to reduce a decent testcase for this, kc++ is
pretty great that way.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147010
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 20 Dec 2011 23:11:00 +0000 (23:11 +0000)]
ARM .req register name aliases are case insensitive, just like regnames.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147009
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 20 Dec 2011 23:10:57 +0000 (23:10 +0000)]
Add function MipsDAGToDAGISel::SelectMULT and factor out code that generates
nodes needed for multiplication. Add code for selecting 64-bit MULHS and MULHU
nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147008
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 20 Dec 2011 22:58:01 +0000 (22:58 +0000)]
Fix indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147007
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 20 Dec 2011 22:52:19 +0000 (22:52 +0000)]
64-bit data directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147005
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Tue, 20 Dec 2011 22:40:40 +0000 (22:40 +0000)]
32-to-64-bit sext_inreg pattern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147004
91177308-0d34-0410-b5e6-
96231b3b80d8