Jakob Stoklund Olesen [Wed, 6 Apr 2011 04:07:14 +0000 (04:07 +0000)]
Oops. Scary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128986
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Wed, 6 Apr 2011 03:57:00 +0000 (03:57 +0000)]
Analyze blocks with uses separately from live-through blocks without uses.
About 90% of the relevant blocks are live-through without uses, and the only
information required about them is their number. This saves memory and enables
later optimizations that need to look at only the use-blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128985
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Wed, 6 Apr 2011 01:18:32 +0000 (01:18 +0000)]
Add a missing opcode (SMLSLDX) to BadRegsMulFrm() function.
Add more complete sanity check for LdStFrm instructions where if IBit (Inst{25})
is 1, Inst{4} should be 0. Otherwise, we should reject the insn as invalid.
rdar://problem/
9239347
rdar://problem/
9239467
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128977
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Apr 2011 01:13:49 +0000 (01:13 +0000)]
add the external users that emailed me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128974
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 6 Apr 2011 01:11:05 +0000 (01:11 +0000)]
RuntimeDyld should use the memory manager API.
Start teaching the runtime Dyld interface to use the memory manager API
for allocating space. Rather than mapping directly into the MachO object,
we extract the payload for each object and copy it into a dedicated buffer
allocated via the memory manager. For now, just do Segment64, so this works
on x86_64, but not yet on ARM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128973
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Apr 2011 00:59:18 +0000 (00:59 +0000)]
some libc++ notes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128970
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Apr 2011 00:56:12 +0000 (00:56 +0000)]
some edits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128969
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Apr 2011 00:45:11 +0000 (00:45 +0000)]
distribute content out to the appropriate sections
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128968
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 5 Apr 2011 23:55:28 +0000 (23:55 +0000)]
Reapply r128946 (pseudoization of various instructions), and fix the extra imp-def of CPSR it was adding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128965
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Tue, 5 Apr 2011 23:54:31 +0000 (23:54 +0000)]
Make the virtual destructor out-of-line so we have a key function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128964
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 23:43:16 +0000 (23:43 +0000)]
Sign error
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128963
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 23:43:14 +0000 (23:43 +0000)]
Don't crash when a value is defined after the last split point.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128962
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 23:43:11 +0000 (23:43 +0000)]
Permit blocks to branch directly to a landing pad.
Treat the landing pad as a normal successor when that happens.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128961
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 5 Apr 2011 23:39:08 +0000 (23:39 +0000)]
Remove extraneous 'return'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128959
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Tue, 5 Apr 2011 23:28:00 +0000 (23:28 +0000)]
Fix a typo in the handling of PKHTB opcode, plus add sanity check for illegal register
encodings for DisassembleArithMiscFrm().
rdar://problem/
9238659
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128958
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Apr 2011 23:22:33 +0000 (23:22 +0000)]
finished my pass through all the 2.9 commits, now to make this intelligible
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128955
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Apr 2011 23:18:20 +0000 (23:18 +0000)]
mention llvm::ArrayRef, which should be use much more pervasively than
it already is.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128954
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 5 Apr 2011 23:03:25 +0000 (23:03 +0000)]
Clean up some code for clarity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128953
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Tue, 5 Apr 2011 23:03:24 +0000 (23:03 +0000)]
Provide an empty virtual destructor to go with the virtual methods in
this class. Clang was warning on this with -Wnon-virtual-dtor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128952
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 5 Apr 2011 23:03:06 +0000 (23:03 +0000)]
Revert r128946 while I figure out why it broke the buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128951
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Tue, 5 Apr 2011 22:57:07 +0000 (22:57 +0000)]
A7.3 register encoding
Qd -> bit[12] == 0
Qn -> bit[16] == 0
Qm -> bit[0] == 0
If one of these bits is 1, the instruction is UNDEFINED.
rdar://problem/
9238399
rdar://problem/
9238445
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128949
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 5 Apr 2011 22:52:06 +0000 (22:52 +0000)]
Add support to encode function's template parameters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128947
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 5 Apr 2011 22:42:54 +0000 (22:42 +0000)]
Give RSBS and RSCS the pseudo treatment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128946
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Tue, 5 Apr 2011 22:18:07 +0000 (22:18 +0000)]
ARM disassembler was erroneously accepting an invalid RSC instruction.
Added checks for regs which should not be 15.
rdar://problem/
9237734
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128945
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Apr 2011 21:57:17 +0000 (21:57 +0000)]
remove postdom frontiers, because it is dead. Forward dom frontiers are
still used by RegionInfo :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128943
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 5 Apr 2011 21:55:14 +0000 (21:55 +0000)]
docs/ReleaseNotes.html: Please use proper *Heading* elements instead of classified div.
It would be better to browse without stylesheet. (eg. on ViewVC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128942
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Tue, 5 Apr 2011 21:49:44 +0000 (21:49 +0000)]
ARM disassembler was erroneously accepting an invalid LSL instruction.
For register-controlled shifts, we should check that the encoding constraint
Inst{7} = 0 and Inst{4} = 1 is satisfied.
rdar://problem/
9237693
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128941
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 5 Apr 2011 21:48:57 +0000 (21:48 +0000)]
Fix bugs in the pseuo-ization of ADCS/SBCS pointed out by Jim, as well as doing the expansion earlier (using a custom inserter) to allow for the chance of predicating these instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128940
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Apr 2011 21:43:56 +0000 (21:43 +0000)]
remove graphprinter support for domfrontier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128938
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 21:40:41 +0000 (21:40 +0000)]
These tests no longer require linear scan because reserved register coalescing is now universal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128936
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 21:40:37 +0000 (21:40 +0000)]
Run LiveDebugVariables in RegAllocBasic and RegAllocGreedy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128935
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Apr 2011 21:37:08 +0000 (21:37 +0000)]
only 7 more weeks to go.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128933
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 5 Apr 2011 21:08:24 +0000 (21:08 +0000)]
Refactor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128929
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 20:56:08 +0000 (20:56 +0000)]
Document llvm/ADT/IntEqClasses.h in ProgrammersManual.html
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128927
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 5 Apr 2011 20:44:15 +0000 (20:44 +0000)]
Add an assertion instead of crashing when the scavenger goes past the end
of a basic block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128925
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 5 Apr 2011 20:39:27 +0000 (20:39 +0000)]
Fix typos. Adjust some whitespace for style. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128924
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Tue, 5 Apr 2011 20:32:23 +0000 (20:32 +0000)]
The r128085 checkin modified the operand ordering for MRC/MRC2 instructions.
Modify DisassembleCoprocessor() of ARMDisassemblerCore.cpp to react to the change.
rdar://problem/
9236873
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128922
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Divacky [Tue, 5 Apr 2011 20:25:36 +0000 (20:25 +0000)]
Add support for detection of Intel SandyBridge.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128920
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 20:20:30 +0000 (20:20 +0000)]
Fix one more batch of X86 tests to be register allocation dependent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128919
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 20:20:26 +0000 (20:20 +0000)]
When dead code elimination removes all but one use, try to fold the single def into the remaining use.
Rematerialization can leave single-use loads behind that we might as well fold whenever possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128918
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 5 Apr 2011 20:14:13 +0000 (20:14 +0000)]
Do not emit empty name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128914
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Tue, 5 Apr 2011 19:42:11 +0000 (19:42 +0000)]
ARM disassembler should flag (rGPRRegClassID, r13|r15) as an error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128913
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 5 Apr 2011 19:13:11 +0000 (19:13 +0000)]
Fix a typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128912
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 5 Apr 2011 18:54:36 +0000 (18:54 +0000)]
Added *hidden* flags -print-options and -print-all-options so
developers can see if their driver changed any cl::Option's. The
current implementation isn't perfect but handles most kinds of
options. This is nice to have when decomposing the stages of
compilation and moving between different drivers. It's also a good
sanity check when comparing results produced by different command line
invocations that are expected to produce the comparable results.
Note: This is not an attempt to prolong the life of cl::Option. On the
contrary, it's a placeholder for a feature that must exist when
cl::Option is replaced by a more appropriate framework. A new
framework needs: a central option registry, dynamic name lookup,
non-global containers of option values (e.g. per-module,
per-function), *and* the ability to print options values and their defaults at
any point during compilation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128910
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Tue, 5 Apr 2011 18:53:14 +0000 (18:53 +0000)]
LDRD now prints out two dst registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128909
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Tue, 5 Apr 2011 18:41:40 +0000 (18:41 +0000)]
Fix test-llvm failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128906
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 5 Apr 2011 18:41:31 +0000 (18:41 +0000)]
whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128905
91177308-0d34-0410-b5e6-
96231b3b80d8
Shantonu Sen [Tue, 5 Apr 2011 18:40:45 +0000 (18:40 +0000)]
An MCDisassembler has the option to not implement
getEDInfo(), in which case this code would dereference
NULL. EDInst can already handle NULL info, so avoid
the dereference and pass NULL through.
Reviewed by Sean Callanan
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128904
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 5 Apr 2011 18:40:13 +0000 (18:40 +0000)]
Make second source operand of LDRD pre/post explicit.
Finish what r128736 started.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128903
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Apr 2011 18:38:45 +0000 (18:38 +0000)]
more notes to self.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128902
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Tue, 5 Apr 2011 18:02:46 +0000 (18:02 +0000)]
Constants with multiple encodings (ARM):
An alternative syntax is available for a modified immediate constant that permits the programmer to specify
the encoding directly. In this syntax, #<const> is instead written as #<byte>,#<rot>, where:
<byte> is the numeric value of abcdefgh, in the range 0-255
<rot> is twice the numeric value of rotation, an even number in the range 0-30.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128897
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Tue, 5 Apr 2011 17:43:10 +0000 (17:43 +0000)]
Check for invalid register encodings for UMAAL and friends where:
if dLo == 15 || dHi == 15 || n == 15 || m == 15 then UNPREDICTABLE;
if dHi == dLo then UNPREDICTABLE;
rdar://problem/
9230202
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128895
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 5 Apr 2011 17:24:25 +0000 (17:24 +0000)]
Convert ADCS and SBCS instructions into pseudos that are expanded to the ADC/ABC with the appropriate S-bit input value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128892
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Tue, 5 Apr 2011 17:16:21 +0000 (17:16 +0000)]
ARM doesn't support byval yet. XFAIL this test until it does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128891
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 5 Apr 2011 17:02:48 +0000 (17:02 +0000)]
Rename LLVMConfig.cmake to LLVM-Config.cmake. The *Config.cmake naming
scheme is used by the functionality related to find_package.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128889
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 16:53:50 +0000 (16:53 +0000)]
Ensure all defs referring to a virtual register are marked dead by addRegisterDead().
There can be multiple defs for a single virtual register when they are defining
sub-registers.
The missing <dead> flag was stopping the inline spiller from eliminating dead
code after rematerialization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128888
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 5 Apr 2011 15:51:32 +0000 (15:51 +0000)]
Print visibility info for external variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128887
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 15:18:18 +0000 (15:18 +0000)]
Use std::unique instead of a SmallPtrSet to ensure unique instructions in UseSlots.
This allows us to always keep the smaller slot for an instruction which is what
we want when a register has early clobber defines.
Drop the UsingInstrs set and the UsingBlocks map. They are no longer needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128886
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Tue, 5 Apr 2011 14:29:52 +0000 (14:29 +0000)]
InstCombine optimizes gep(bitcast(x)) even when the bitcasts casts away address
space info. We crash with an assert in this case. This change checks that the
address space of the bitcasted pointer is the same as the gep ptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128884
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 5 Apr 2011 08:24:22 +0000 (08:24 +0000)]
docs/ReleaseNotes.html: Add a few notes to MCCOFF and x64. FIXME: fixme!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128882
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 5 Apr 2011 08:24:15 +0000 (08:24 +0000)]
docs/GettingStarted.html: FIXME: dg, lit, and source tree layout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128881
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Apr 2011 07:19:28 +0000 (07:19 +0000)]
add a bunch of notes to myself, this is not intended to be gramatic or
make sense to anyone else.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128879
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 04:20:29 +0000 (04:20 +0000)]
Stop precomputing last split points, query the SplitAnalysis cache on demand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128875
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 04:20:27 +0000 (04:20 +0000)]
Cache the fairly expensive last split point computation and provide a fast
inlined path for the common case.
Most basic blocks don't contain a call that may throw, so the last split point
os simply the first terminator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128874
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 5 Apr 2011 01:37:43 +0000 (01:37 +0000)]
Revamp the SjLj "dispatch setup" intrinsic.
It needed to be moved closer to the setjmp statement, because the code directly
after the setjmp needs to know about values that are on the stack. Also, the
'bitcast' of the function context was causing a dead load. This wouldn't be too
horrible, except that at -O0 it wasn't optimized out, and because it wasn't
using the correct base pointer (if there is a VLA), it would try to access a
value from a garbage address.
<rdar://problem/
9130540>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128873
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 5 Apr 2011 00:56:01 +0000 (00:56 +0000)]
Fix up testcase for previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128870
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 5 Apr 2011 00:39:26 +0000 (00:39 +0000)]
Just use BL all the time. It's safer that way.
Fixes rdar://
9184526
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128869
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Tue, 5 Apr 2011 00:37:28 +0000 (00:37 +0000)]
Revert 123704; it broke threaded LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128868
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Tue, 5 Apr 2011 00:32:44 +0000 (00:32 +0000)]
Fix register-dependent X86 tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128867
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Tue, 5 Apr 2011 00:16:18 +0000 (00:16 +0000)]
Fix SRS/SRSW encoding bits.
rdar://problem/
9230801 ARM disassembler discrepancy: erroneously accepting SRS
Plus add invalid-RFEorLDMIA-arm.txt test which should have been checked in with
http://llvm.org/viewvc/llvm-project?view=rev&revision=128859.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128864
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Mon, 4 Apr 2011 23:57:05 +0000 (23:57 +0000)]
A8.6.105 MUL
Inst{15-12} should be specified as 0b0000.
rdar://problem/
9231168 ARM disassembler discrepancy: erroneously accepting MUL
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128862
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 4 Apr 2011 23:42:51 +0000 (23:42 +0000)]
Add info on where to get 2.9 final svn sources.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128860
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Mon, 4 Apr 2011 23:39:08 +0000 (23:39 +0000)]
RFE encoding should also specify the "should be" encoding bits.
rdar://problem/
9229922 ARM disassembler discrepancy: erroneously accepting RFE
Also LDC/STC instructions are predicated while LDC2/STC2 instructions are not, fixed while
doing regression testings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128859
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 4 Apr 2011 23:20:40 +0000 (23:20 +0000)]
Add missing file from r128851.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128856
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 4 Apr 2011 23:04:39 +0000 (23:04 +0000)]
Layer the memory manager between the JIT and the runtime Dyld.
The JITMemory manager references LLVM IR constructs directly, while the
runtime Dyld works at a lower level and can handle objects which may not
originate from LLVM IR. Introduce a new layer for the memory manager to
handle the interface between them. For the MCJIT, this layer will be almost
entirely simply a call-through w/ translation between the IR objects and
symbol names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128851
91177308-0d34-0410-b5e6-
96231b3b80d8
Joerg Sonnenberger [Mon, 4 Apr 2011 21:38:17 +0000 (21:38 +0000)]
Make OpcodeMask an unsigned long long literal to deal with overflow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128847
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 4 Apr 2011 21:00:03 +0000 (21:00 +0000)]
Allow coalescing with reserved physregs in certain cases:
When a virtual register has a single value that is defined as a copy of a
reserved register, permit that copy to be joined. These virtual register are
usually copies of the stack pointer:
%vreg75<def> = COPY %ESP; GR32:%vreg75
MOV32mr %vreg75, 1, %noreg, 0, %noreg, %vreg74<kill>
MOV32mi %vreg75, 1, %noreg, 8, %noreg, 0
MOV32mi %vreg75<kill>, 1, %noreg, 4, %noreg, 0
CALLpcrel32 ...
Coalescing these virtual registers early decreases register pressure.
Previously, they were coalesced by RALinScan::attemptTrivialCoalescing after
register allocation was completed.
The lower register pressure causes the mcinst-lowering-cmp0.ll test case to fail
because it depends on linear scan spilling a particular register.
I am deleting 2008-08-05-SpillerBug.ll because it is counting the number of
instructions emitted, and its revision history shows the 'correct' count being
edited many times.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128845
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 4 Apr 2011 20:59:59 +0000 (20:59 +0000)]
Extract physreg joining policy to a separate method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128844
91177308-0d34-0410-b5e6-
96231b3b80d8
Johnny Chen [Mon, 4 Apr 2011 20:35:31 +0000 (20:35 +0000)]
Fix incorrect alignment for NEON VST2b32_UPD.
rdar://problem/
9225433
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128841
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 4 Apr 2011 19:51:17 +0000 (19:51 +0000)]
Update BreakpointPrinter to emit original function names only.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128839
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 4 Apr 2011 17:57:29 +0000 (17:57 +0000)]
Insert code in the right location when lowering PowerPC atomics.
This causes defs to dominate uses, no instructions after terminators, and other
goodness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128836
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 4 Apr 2011 17:57:26 +0000 (17:57 +0000)]
Disable the PowerPC/Atomics-64 test.
The code inserted by PPCTargetLowering::EmitInstrWithCustomInserter for ppc64 is
wrong, and I don't know how to fix it. It seems to be using the correct register
classes for pointers, but it inserts all 32-bit instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128835
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 4 Apr 2011 17:36:11 +0000 (17:36 +0000)]
Remove unused function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128834
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Mon, 4 Apr 2011 17:18:19 +0000 (17:18 +0000)]
- Implement asm parsing support for LDRSBT, LDRHT, LDRSHT and STRHT
also fix the encoding of the later.
- Add a new encoding bit to describe the index mode used in AM3.
- Teach printAddrMode3Operand to check by the addressing mode which
index mode to print.
- Testcases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128832
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 4 Apr 2011 17:17:57 +0000 (17:17 +0000)]
silence an unused function warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128831
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Mon, 4 Apr 2011 17:11:07 +0000 (17:11 +0000)]
Move transformation of JmpLink and related nodes done during instruction selection to Legalize phase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128830
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 4 Apr 2011 17:07:09 +0000 (17:07 +0000)]
PowerPC atomic pseudos clobber CR0, they don't read it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128829
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 4 Apr 2011 17:07:06 +0000 (17:07 +0000)]
Use X0 instead of R0 for the zero register on ppc64.
The 32-bit R0 cannot be used where a 64-bit register is expected.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128828
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 4 Apr 2011 17:07:03 +0000 (17:07 +0000)]
Fix PowerPC tests to be register allocator independent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128827
91177308-0d34-0410-b5e6-
96231b3b80d8
Joerg Sonnenberger [Mon, 4 Apr 2011 16:58:13 +0000 (16:58 +0000)]
Add support for the VIA PadLock instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128826
91177308-0d34-0410-b5e6-
96231b3b80d8
Joerg Sonnenberger [Mon, 4 Apr 2011 16:25:38 +0000 (16:25 +0000)]
Use array_lengthof
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128823
91177308-0d34-0410-b5e6-
96231b3b80d8
Joerg Sonnenberger [Mon, 4 Apr 2011 15:58:30 +0000 (15:58 +0000)]
Expand Op0Mask by one bit in preparation for the PadLock prefixes.
Define most shift masks incrementally to reduce the redundant
hard-coding. Introduce new shift for the VEX flags to replace the
magic constant 32 in various places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128822
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 4 Apr 2011 15:32:15 +0000 (15:32 +0000)]
Stop caching basic block index ranges now that SlotIndexes can keep up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128821
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Mon, 4 Apr 2011 15:32:11 +0000 (15:32 +0000)]
Delete leftover data members.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128820
91177308-0d34-0410-b5e6-
96231b3b80d8
Joerg Sonnenberger [Mon, 4 Apr 2011 14:42:22 +0000 (14:42 +0000)]
Change loops to derive the number of tables automatically
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128818
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 4 Apr 2011 11:09:08 +0000 (11:09 +0000)]
Dragonegg release notes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128812
91177308-0d34-0410-b5e6-
96231b3b80d8
Jay Foad [Mon, 4 Apr 2011 07:44:02 +0000 (07:44 +0000)]
Remove some support for ReturnInsts with multiple operands, and for
returning a scalar value in a function whose return type is a single-
element structure or array.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128810
91177308-0d34-0410-b5e6-
96231b3b80d8
Tobias Grosser [Mon, 4 Apr 2011 07:19:18 +0000 (07:19 +0000)]
Region: Allow user control the printing style of the print function.
Contributed by: etherzhhb@gmail.com
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128808
91177308-0d34-0410-b5e6-
96231b3b80d8
Peter Collingbourne [Mon, 4 Apr 2011 00:57:03 +0000 (00:57 +0000)]
IntrusiveRefCntPtr: in RefCountedBase and RefCountedBaseVPTR, make
ref_cnt mutable and Retain/Release const to enable reference counted
pointers to const objects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128804
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 4 Apr 2011 00:37:38 +0000 (00:37 +0000)]
Attempt to fix breakage from r128782 reported by Francois Pichet on
llvm-commits. (Not sure why it only breaks on Windows; maybe it has
something to do with the iterator representation...)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128802
91177308-0d34-0410-b5e6-
96231b3b80d8