OSDN Git Service
Jim Grosbach [Wed, 15 Sep 2010 19:44:57 +0000 (19:44 +0000)]
Refactor uses of getRegisterNumbering() to not need the isSPVFP argument. Check
if the register is a member of the SPR register class directly instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114012
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 19:27:50 +0000 (19:27 +0000)]
Reduce dependencies in the ARM MC instruction printer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114009
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 19:26:50 +0000 (19:26 +0000)]
Fix spelling typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114008
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 19:26:06 +0000 (19:26 +0000)]
Factor out basic enums and hleper functions from ARM.h for cleaner sharing
between the compiler back end and the MC libraries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114007
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 18:47:08 +0000 (18:47 +0000)]
Add support for floating point immediates to MC instruction printing. ARM
VFP instructions use it for loading some constants, so implement that
handling.
Not thrilled with adding a member to MCOperand, but not sure there's much of
a better option that's not pretty fragile (like putting a double in the
union instead and just assuming that's good enough). Suggestions welcome...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113996
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 15 Sep 2010 18:13:55 +0000 (18:13 +0000)]
Check bb to ensure that alloca is in separate basic block.
This fixes funcargs.exp regression reported by gdb testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113992
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 15 Sep 2010 17:27:09 +0000 (17:27 +0000)]
Recognize VST1q64Pseudo and VSTMQ as stack slot stores.
Recognize VLD1q64Pseudo as a stack slot load.
Reject these if they are loading or storing a subregister. The API (and
VirtRegRewriter) doesn't know how to deal with that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113985
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 15 Sep 2010 17:12:08 +0000 (17:12 +0000)]
Reapply Gabor's 113839, 113840, and 113876 with a fix for a problem
encountered while building llvm-gcc for arm. This is probably the same issue
that the ppc buildbot hit. llvm::prior works on a MachineBasicBlock::iterator,
not a plain MachineInstr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113983
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Wed, 15 Sep 2010 16:53:07 +0000 (16:53 +0000)]
the darwin9-powerpc buildbot keeps consistently crashing,
backing out following to get it back to green,
so I can investigate in peace:
svn merge -c -113840 llvm/test/CodeGen/ARM/arm-and-tst-peephole.ll
svn merge -c -113876 -c -113839 llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113980
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 15 Sep 2010 16:36:26 +0000 (16:36 +0000)]
Move ARM is{LoadFrom,StoreTo}StackSlot closer to their siblings so they won't be
forgotten in the future.
Coalesce identical cases in switch.
No functional changes intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113979
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 15 Sep 2010 16:28:21 +0000 (16:28 +0000)]
Spelling fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113978
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 16:24:01 +0000 (16:24 +0000)]
trailing whitespace and 80 column cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113977
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 16:08:15 +0000 (16:08 +0000)]
trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113975
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Wed, 15 Sep 2010 15:20:41 +0000 (15:20 +0000)]
llvmc: make -x work with unknown suffixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113972
91177308-0d34-0410-b5e6-
96231b3b80d8
Garrison Venn [Wed, 15 Sep 2010 14:55:32 +0000 (14:55 +0000)]
Removed TracingBrainF from examples Makefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113970
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 15 Sep 2010 14:48:53 +0000 (14:48 +0000)]
If dbg.declare from non-entry block is using alloca from entry block then use offset available in StaticAllocaMap to emit DBG_VALUE. Right now, this has no material impact because varible info also collected using offset table maintained in machine module info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113967
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 15 Sep 2010 12:30:35 +0000 (12:30 +0000)]
Release-Asserts no longer exists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113965
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 15 Sep 2010 08:17:10 +0000 (08:17 +0000)]
Remove the Ada bindings which are unmaintained and unused. The project which
was the main putative user of the binding is actually maintaining its own
different binding, see http://git.ada.cx/cgi-bin/cgit.cgi/draco.git/
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113960
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 15 Sep 2010 08:09:55 +0000 (08:09 +0000)]
Remove LLVM_GLOBAL_VISIBILITY, which is unused, and was not working properly.
The problem was that the test for whether a compiler supports it or not was
inaccurate, but has to be accurate: LLVM_LOCAL_VISIBILITY is an optimization
and not needed for correctness, so wrongly thinking a compiler doesn't support
it is not a big deal, but LLVM_GLOBAL_VISIBILITY is for correctness, and not
an optimization: getting it wrong is fatal: it needs to be set based on a
configure test not testing the gcc version. Since dragonegg has moved to a
different scheme, and it was the only user of LLVM_GLOBAL_VISIBILITY, just
remove this macro.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113959
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 05:30:20 +0000 (05:30 +0000)]
lcall and ljmp always default to lcalll and ljmpl. This finally
wraps up r8418316
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113949
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 05:25:21 +0000 (05:25 +0000)]
apparently jmpl $1,$2 is an alias for ljmpl, similiarly
for call. Add this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113948
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 05:14:54 +0000 (05:14 +0000)]
Disambiguate lcall/ljmp to the 32-bit version. This happens
even in 64-bit mode apparently.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113945
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 04:45:10 +0000 (04:45 +0000)]
fix the encoding of sldt GR16 to have the 0x66 prefix, and
add sldt GR32, which isn't documented in the intel manual
but which gas accepts. Part of rdar://
8418316
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113938
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 04:37:18 +0000 (04:37 +0000)]
implement aliases for shld/shrd, part of rdar://
8418316
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113937
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 04:33:27 +0000 (04:33 +0000)]
fix rdar://
8431880 - rcl/rcr with no shift amount not recognized
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113936
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 04:15:16 +0000 (04:15 +0000)]
add various broken forms of fnstsw. I didn't add the %rax
version because it adds a prefix and makes even less sense
than the other broken forms. This wraps up rdar://
8431422
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113932
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 04:08:38 +0000 (04:08 +0000)]
add some aliases for f[u]comi, part of rdar://
8431422
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113930
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 04:04:33 +0000 (04:04 +0000)]
add a bunch of aliases for fp operations with no operand,
rdar://
8431422
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113929
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 15 Sep 2010 03:58:51 +0000 (03:58 +0000)]
test: Fix coff-dump section array indicies to 1 based to match file format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113928
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 15 Sep 2010 03:58:39 +0000 (03:58 +0000)]
Tabs to spaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113927
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 15 Sep 2010 03:58:24 +0000 (03:58 +0000)]
Cleanup coff-dump.py
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113926
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 15 Sep 2010 03:52:38 +0000 (03:52 +0000)]
lit: Expose FileBasedTest object and Test module via 'lit' object that gets
exposed to config files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113923
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 15 Sep 2010 03:52:31 +0000 (03:52 +0000)]
lit: Rename main lit module to main.py, lit/lit/lit.py was a bit too, err,
alliterate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113922
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 03:50:11 +0000 (03:50 +0000)]
Diagnose invalid instructions like "incl" with "too few operands for instruction"
instead of crashing. This fixes:
rdar://
8431815 - crash when invalid operand is one that isn't present
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113921
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 15 Sep 2010 01:52:33 +0000 (01:52 +0000)]
Use float64 instead of int64 vector elements for NEON vget_low and vget_high
functions, since int64 is not a legal type and using it leads to inefficient
code. PR8036.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113919
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 15 Sep 2010 01:48:05 +0000 (01:48 +0000)]
Use VLD1/VST1 pseudo instructions for loadRegFromStackSlot and
storeRegToStackSlot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113918
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 15 Sep 2010 01:01:45 +0000 (01:01 +0000)]
trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113915
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 15 Sep 2010 00:52:23 +0000 (00:52 +0000)]
Add x86MMX a few more places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113914
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Sep 2010 00:30:11 +0000 (00:30 +0000)]
fix PR8144, a bug where constant merge would merge globals marked
attribute(used).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113911
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 14 Sep 2010 23:54:06 +0000 (23:54 +0000)]
Reapply r113875 with additional cleanups.
"The register specified for a dregpair is the corresponding Q register, so to
get the pair, we need to look up the sub-regs based on the qreg. Create a
lookup function since we don't have access to TargetRegisterInfo here to
be able to use getSubReg(ARM::dsub_[01])."
Additionaly, fix the NEON VLD1* and VST1* instruction patterns not to use
the dregpair modifier for the 2xdreg versions. Explicitly specifying the two
registers as operands is more correct and more consistent with the other
instruction patterns. This enables further cleanup of special case code in the
disassembler as a nice side-effect.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113903
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 14 Sep 2010 23:34:29 +0000 (23:34 +0000)]
add a terrible hack to allow out with dx is parens, a gas bug.
This fixes PR8114
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113894
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 14 Sep 2010 23:28:12 +0000 (23:28 +0000)]
Convert TBAA to use the new TBAATag field of AliasAnalysis::Location.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113892
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 14 Sep 2010 23:03:37 +0000 (23:03 +0000)]
Emit libcalls for SDIV, this requires some call infrastructure
that needs to be shared a bit more widely around.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113886
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 14 Sep 2010 22:38:39 +0000 (22:38 +0000)]
revert 113875 momentarilly. Need to fix the MC disassembler to handle the
change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113878
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 14 Sep 2010 22:27:15 +0000 (22:27 +0000)]
trailing whitespace cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113877
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Tue, 14 Sep 2010 22:25:16 +0000 (22:25 +0000)]
an attempt to salvage the darwin9-powerpc buildbot, which could be miscompiling this line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113876
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 14 Sep 2010 22:20:33 +0000 (22:20 +0000)]
The register specified for a dregpair is the corresponding Q register, so to
get the pair, we need to look up the sub-regs based on the qreg. Create a
lookup function since we don't have access to TargetRegisterInfo here to
be able to use getSubReg(ARM::dsub_[01]).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113875
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Tue, 14 Sep 2010 22:00:50 +0000 (22:00 +0000)]
set isCompare for another three Thumb1 instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113867
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 14 Sep 2010 21:52:34 +0000 (21:52 +0000)]
Tidy whitespace in generated arm_neon.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113865
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 14 Sep 2010 21:28:17 +0000 (21:28 +0000)]
Add predicate and 's' bit operands to PICADD instruction lowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113860
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 14 Sep 2010 21:25:38 +0000 (21:25 +0000)]
Add missing include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113859
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 14 Sep 2010 21:25:10 +0000 (21:25 +0000)]
Remove the experimental AliasAnalysis::getDependency interface, which
isn't a good level of abstraction for memdep. Instead, generalize
AliasAnalysis::alias and related interfaces with a new Location
class for describing a memory location. For now, this is the same
Pointer and Size as before, plus an additional field for a TBAA tag.
Also, introduce a fixed MD_tbaa metadata tag kind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113858
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 14 Sep 2010 21:12:05 +0000 (21:12 +0000)]
Avoid warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113857
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 14 Sep 2010 21:05:34 +0000 (21:05 +0000)]
fix comment typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113856
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 14 Sep 2010 21:03:40 +0000 (21:03 +0000)]
Remove dead option from tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113855
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 14 Sep 2010 20:59:49 +0000 (20:59 +0000)]
Make NEON ld/st pseudo instruction classes take the instruction itinerary as
an argument, so that we can distinguish instructions with the same register
classes but different numbers of registers (e.g., vld3 and vld4). Fix some
of the non-pseudo NEON ld/st instruction itineraries to reflect the number
of registers loaded or stored, not just the opcode name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113854
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 14 Sep 2010 20:57:41 +0000 (20:57 +0000)]
Remove the option to disable LazyValueInfo in JumpThreading, as it is now
on by default and has received significant testing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113852
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Tue, 14 Sep 2010 20:49:00 +0000 (20:49 +0000)]
Prune includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113850
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Tue, 14 Sep 2010 20:47:43 +0000 (20:47 +0000)]
set comparable for a bunch of Thumb instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113849
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Tue, 14 Sep 2010 20:46:08 +0000 (20:46 +0000)]
must not peephole away side effects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113848
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 14 Sep 2010 20:41:27 +0000 (20:41 +0000)]
Don't ignore the CPSR implicit def when lowering a MachineInstruction to an MCInst.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113847
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 14 Sep 2010 20:35:46 +0000 (20:35 +0000)]
Clarify comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113846
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 14 Sep 2010 20:32:58 +0000 (20:32 +0000)]
After Dan's recent commit this is no longer true.
Now isFunctionLocal is reset, if required, when operands are modified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113845
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 14 Sep 2010 20:29:31 +0000 (20:29 +0000)]
Use frame index, if available for byval argument while lowering dbg_declare. Otherwise let getRegForValue() find register for this argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113843
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Tue, 14 Sep 2010 09:30:17 +0000 (09:30 +0000)]
forgot the testcase change for r113839
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113840
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Tue, 14 Sep 2010 09:23:22 +0000 (09:23 +0000)]
Eliminate a 'tst' that immediately follows an 'and'
by morphing the 'and' to its recording form 'andS'.
This is basically a test commit into this area, to
see whether the bots like me. Several generalizations
can be applied and various avenues of code simplification
are open. I'll introduce those as I go.
I am aware of stylistic input from Bill Wendling, about
where put the analysis complexity, but I am positive
that we can move things around easily and will find a
satisfactory solution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113839
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Tue, 14 Sep 2010 08:50:43 +0000 (08:50 +0000)]
test for and-tst peephole optimization
documents the status-quo with its opportunities
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113838
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 14 Sep 2010 08:31:25 +0000 (08:31 +0000)]
Fix QOpcode assignment to Opc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113837
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 14 Sep 2010 04:27:38 +0000 (04:27 +0000)]
CBackend: Fix MSVC build.
This may produce warnings on MSVS, but it's better than failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113834
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 14 Sep 2010 04:27:26 +0000 (04:27 +0000)]
CBackend: Cleanup whitespace before I do this next commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113833
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 14 Sep 2010 01:37:57 +0000 (01:37 +0000)]
When a function-local value with function-local metadata uses gets RAUWed with a
non-function-local value, it may result in the metadata no longer needing to be
function-local. Check for this condition, and clear the isFunctionLocal flag, if
it's still in the uniquing map, since any node in the uniquing map needs to have
an accurate function-local flag.
Also, add an assert to help catch problematic cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113828
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 14 Sep 2010 01:18:15 +0000 (01:18 +0000)]
Remove apparently unnecessary forward declaration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113827
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 14 Sep 2010 00:51:58 +0000 (00:51 +0000)]
Attempt to unbreak the FreeBSD buildbot by XFAILing a unit test that seems to be
miscompiled by the system gcc-4.2.1
The test remains enabled for the second-stage test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113824
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 14 Sep 2010 00:19:00 +0000 (00:19 +0000)]
fix PR8102, a case where we'd copyValue from a value that we already
deleted. Fix this by doing the copyValue's before we delete stuff!
The testcase only repros the problem on my system with valgrind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113820
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Mon, 13 Sep 2010 23:59:48 +0000 (23:59 +0000)]
Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally."
This reverts commit r113632
Conflicts:
cmake/modules/AddLLVM.cmake
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113819
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 13 Sep 2010 23:55:10 +0000 (23:55 +0000)]
Convert some VTBL and VTBX instructions to use pseudo instructions prior to
register allocation. Remove the NEONPreAllocPass, which is no longer needed.
Yeah!!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113818
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 13 Sep 2010 23:29:11 +0000 (23:29 +0000)]
Mechanically replace LiveInterval* with LiveIntervalMap for intervals being
edited without actually using LiveIntervalMap functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113816
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 13 Sep 2010 23:29:09 +0000 (23:29 +0000)]
Allow LiveIntervalMap to be reused by resetting the current live interval.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113815
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 13 Sep 2010 23:01:35 +0000 (23:01 +0000)]
Switch all the NEON vld-lane and vst-lane instructions over to the new
pseudo-instruction approach. Change ARMExpandPseudoInsts to use a table
to record all the NEON load/store information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113812
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 13 Sep 2010 21:29:45 +0000 (21:29 +0000)]
Let's just declare that it is impossible to construct a std::pair from a null
pointer and work around that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113788
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 13 Sep 2010 21:23:17 +0000 (21:23 +0000)]
Fix typo in temp. script file name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113787
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 13 Sep 2010 21:15:43 +0000 (21:15 +0000)]
Fix typos. 128-bit PSHUFB takes 128-bit memory op.
v8i16 is not an MMX type; put it where it belongs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113785
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 13 Sep 2010 21:01:36 +0000 (21:01 +0000)]
Basic smoke test for new x86mmx type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113783
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 13 Sep 2010 20:42:15 +0000 (20:42 +0000)]
Add little test script to check debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113779
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Mon, 13 Sep 2010 20:04:49 +0000 (20:04 +0000)]
Fix linux/msvc build, move include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113776
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 13 Sep 2010 19:47:32 +0000 (19:47 +0000)]
Attempt to fix the Linux build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113773
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 13 Sep 2010 18:47:42 +0000 (18:47 +0000)]
Minimize #includes in a top-level header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113772
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 13 Sep 2010 18:30:57 +0000 (18:30 +0000)]
Silence more warnings. Two more unused variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113771
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 13 Sep 2010 18:28:40 +0000 (18:28 +0000)]
Add a reduced testcase for the infinite loop fixed in r113763.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113770
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 13 Sep 2010 18:27:59 +0000 (18:27 +0000)]
Remove unused variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113769
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 13 Sep 2010 18:25:42 +0000 (18:25 +0000)]
trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113768
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 13 Sep 2010 18:25:05 +0000 (18:25 +0000)]
Silence some constructor ordering warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113767
91177308-0d34-0410-b5e6-
96231b3b80d8
John Thompson [Mon, 13 Sep 2010 18:15:37 +0000 (18:15 +0000)]
Added skeleton for inline asm multiple alternative constraint support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113766
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 13 Sep 2010 18:02:47 +0000 (18:02 +0000)]
Use ParseIRFile to auto-detect LLVM Assembly automatically.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113765
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 13 Sep 2010 18:00:48 +0000 (18:00 +0000)]
Add full auto-upgrade support for LLVM 2.7 bitcode metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113764
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 13 Sep 2010 17:59:27 +0000 (17:59 +0000)]
Re-apply r113679, which was reverted in r113720, which added a paid of new instcombine transforms
to expose greater opportunities for store narrowing in codegen. This patch fixes a potential
infinite loop in instcombine caused by one of the introduced transforms being overly aggressive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113763
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Mon, 13 Sep 2010 17:52:38 +0000 (17:52 +0000)]
CMake: Add llvm-lit to CMake build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113762
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 13 Sep 2010 17:39:45 +0000 (17:39 +0000)]
Factoring and potential bug fix. The elf "flags" cannot be used as masks.
For example, setting STT_OBJECT (1) and STT_FUNC (2), should not produce
a STT_SECTION (3).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113759
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 13 Sep 2010 17:39:35 +0000 (17:39 +0000)]
Fix formatting tags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113758
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 13 Sep 2010 17:37:55 +0000 (17:37 +0000)]
Document NEON intrinsic changes for 2.8.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113757
91177308-0d34-0410-b5e6-
96231b3b80d8