Devang Patel [Thu, 2 Dec 2010 23:29:58 +0000 (23:29 +0000)]
Hide tests, that check .loc, .file in output assembly, from darwin9 buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120750
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 2 Dec 2010 23:05:38 +0000 (23:05 +0000)]
Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120748
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 2 Dec 2010 23:03:57 +0000 (23:03 +0000)]
Disable .loc support on older darwin OSes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120747
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 2 Dec 2010 21:32:30 +0000 (21:32 +0000)]
Use set directive for StartMinusEndExpr.
This is a fix for llvm-gcc-i386-darwin9 buildbot failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120742
91177308-0d34-0410-b5e6-
96231b3b80d8
Stuart Hastings [Thu, 2 Dec 2010 21:25:55 +0000 (21:25 +0000)]
Test case for r120740. Radar
8712503.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120741
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 2 Dec 2010 20:56:51 +0000 (20:56 +0000)]
Adjust this test for the fact that the stores are no longer
being combined (which is being tracked as PR8699).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120734
91177308-0d34-0410-b5e6-
96231b3b80d8
Tobias Grosser [Thu, 2 Dec 2010 20:35:16 +0000 (20:35 +0000)]
Move check of command line options after command line parsing.
The check to not allow -analyze and -disable-output at the same time was done
before parsing the command line flags. Therefore it never triggered, and in case
both options where used opt segfaulted. Fix this by moving this check a after
command line parsing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120732
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 2 Dec 2010 20:20:32 +0000 (20:20 +0000)]
XFAIL for now. If someone with access to an ARM/Linux host wants to have a look
that would be great. They're ARM JIT failures, so without that, it's tough.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120731
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 2 Dec 2010 20:17:34 +0000 (20:17 +0000)]
Fix test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120730
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 2 Dec 2010 18:19:23 +0000 (18:19 +0000)]
This test dates from the time when llvm-gcc had problems if two types were
named the same, so it had to qualify type names according to the enclosing
scope to ensure uniqueness. This is no longer needed for correctness (though
it may be helpful when reading the IR), so this test has lost its importance.
Zap it because dragonegg will never be able to produce the qualified type name
since modern gcc zaps language specific info (such as whether a type is nested
inside another - needed to get X::Y here) before dragonegg is reached.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120721
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 2 Dec 2010 18:15:44 +0000 (18:15 +0000)]
Update LiveDebugVariables during coalescing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120720
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 2 Dec 2010 16:42:25 +0000 (16:42 +0000)]
When expanding the MOVCCi32imm, make sure to use the ARM movt/movw opcodes,
not thumb2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120711
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 2 Dec 2010 16:30:58 +0000 (16:30 +0000)]
Fix copy/pasto in vmin.f32 encoding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120709
91177308-0d34-0410-b5e6-
96231b3b80d8
Wesley Peck [Thu, 2 Dec 2010 16:17:11 +0000 (16:17 +0000)]
Teaching MBlaze backend how to reverse branch conditions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120707
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Thu, 2 Dec 2010 09:16:14 +0000 (09:16 +0000)]
test/Archive/extract.ll: Use cmp instead of diff. Thanks to Danil Malyshev!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120698
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 2 Dec 2010 07:53:12 +0000 (07:53 +0000)]
Add a fast path to EvaluateSymbolicAdd. This avoids computing symbol addresses
which then avoids running EnsureValid.
This cuts the assembly time of the testcase in PR8711 from 2:50 minutes to 1
minute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120697
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 2 Dec 2010 07:44:23 +0000 (07:44 +0000)]
Simplify code in Neon intrinsics. No functional changes intended.
For most intrinsics, there is no need to allocate a temporary to hold the
result value; just return it directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120695
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 2 Dec 2010 07:10:39 +0000 (07:10 +0000)]
Assign arguments of Neon intrinsic macros to local temporaries.
Since we're casting them for the calls to the builtins, we need this to
make sure their types get checked in the same way they would if the intrinsics
were implemented as inline functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120693
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 2 Dec 2010 05:59:38 +0000 (05:59 +0000)]
Move EmitValueToOffset to the ObjectStreamer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120691
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 2 Dec 2010 05:44:06 +0000 (05:44 +0000)]
Add EmitInstToFragment to the generic object streamer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120690
91177308-0d34-0410-b5e6-
96231b3b80d8
Zhanyong Wan [Thu, 2 Dec 2010 05:10:07 +0000 (05:10 +0000)]
Add naming rules to the coding standards.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120689
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 2 Dec 2010 03:09:06 +0000 (03:09 +0000)]
The sections that the ELF object writer has to create are very simple and
contain only data. Handle them specially instead of using AddSectionToTheEnd.
This moves a hack from the generic assembler to the elf writer. It is also
a bit faster and should make other improvements easier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120683
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 2 Dec 2010 02:42:51 +0000 (02:42 +0000)]
Use statement expressions in Neon intrinsics defined as macros.
This is in preparation for adding assignments to temporaries to ensure
that the proper type checking is done.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120649
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 2 Dec 2010 01:29:39 +0000 (01:29 +0000)]
tidy up
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120644
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 2 Dec 2010 01:18:23 +0000 (01:18 +0000)]
Add casts for splatted scalars in calls to Neon builtins.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120641
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 2 Dec 2010 01:18:20 +0000 (01:18 +0000)]
Add a missing cast for Neon vsbl results.
The bitwise operations are always done with unsigned values, but the result may
be signed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120640
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 2 Dec 2010 01:18:18 +0000 (01:18 +0000)]
Add another missing cast for Neon vcombine results.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120639
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 2 Dec 2010 01:18:15 +0000 (01:18 +0000)]
Add casts in arm_neon.h for result values in inline functions as well as macros.
We should not rely on lax-vector-conversions for these intrinsics to work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120638
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 2 Dec 2010 01:17:51 +0000 (01:17 +0000)]
If tehre are not any line entry then do not try to emit .debug_line section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120637
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 2 Dec 2010 00:37:37 +0000 (00:37 +0000)]
Implement the first half of LiveDebugVariables.
Scan the MachineFunction for DBG_VALUE instructions, and replace them with a
data structure similar to LiveIntervals. The live range of a DBG_VALUE is
determined by propagating it down the dominator tree until a new DBG_VALUE is
found. When a DBG_VALUE lives in a register, its live range is confined to the
live range of the register's value.
LiveDebugVariables runs before coalescing, so DBG_VALUEs are not artificially
extended when registers are joined.
The missing half will recreate DBG_VALUE instructions from the intervals when
register allocation is complete.
The pass is disabled by default. It can be enabled with the temporary command
line option -live-debug-variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120636
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 2 Dec 2010 00:28:45 +0000 (00:28 +0000)]
Add support for binary encoding of ARM 'adr' instructions referencing constant
pool entries (LEApcrel pseudo). Ongoing saga of rdar://
8542291.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120635
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 2 Dec 2010 00:24:59 +0000 (00:24 +0000)]
Avoid "char" for Neon vector elements; make it explicitly signed (or unsigned).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120632
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 2 Dec 2010 00:24:56 +0000 (00:24 +0000)]
Cast scalar results of Neon macros to the correct type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120631
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 2 Dec 2010 00:22:29 +0000 (00:22 +0000)]
Revert r120580.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120630
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 1 Dec 2010 22:59:46 +0000 (22:59 +0000)]
Fix and re-enable tail call optimization of expanded libcalls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120622
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 1 Dec 2010 22:48:11 +0000 (22:48 +0000)]
Remove unused argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120621
91177308-0d34-0410-b5e6-
96231b3b80d8
Jason W Kim [Wed, 1 Dec 2010 22:46:50 +0000 (22:46 +0000)]
fixing style nit: move class static to global static
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120619
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 22:28:42 +0000 (22:28 +0000)]
Make valgrind happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120616
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 1 Dec 2010 21:54:50 +0000 (21:54 +0000)]
Add a post encoder method to the VFP instructions to convert them to the Thumb2
encoding if we're in that mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120608
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 1 Dec 2010 21:09:40 +0000 (21:09 +0000)]
Use the correct fixup type for ARM VLDR*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120604
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 1 Dec 2010 20:46:11 +0000 (20:46 +0000)]
Rename temporary symbols if they conflict with artificial symbols created
by the assembler. This was blocking parsing any large .s produced by clang for
example.
Fixes PR8596.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120603
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 20:37:42 +0000 (20:37 +0000)]
Support/FileSystem: Fix copy_file implementation to use toNullTerminatedStringRef
instead of toStringRef. The file system APIs need c strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120601
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 20:37:30 +0000 (20:37 +0000)]
Support/ADT/Twine: Add toNullTerminatedStringRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120600
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 1 Dec 2010 19:49:58 +0000 (19:49 +0000)]
Add explicit casts for vector arguments to Neon builtins.
This avoids warnings with -Wvector-conversions. Radar
8228022.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120597
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 1 Dec 2010 19:49:56 +0000 (19:49 +0000)]
Add some comments for TableGen's NeonEmitter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120596
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 1 Dec 2010 19:49:51 +0000 (19:49 +0000)]
Cleanup: simplify checks for integers between 2 and 4.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120595
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 1 Dec 2010 19:47:31 +0000 (19:47 +0000)]
Refactor LEApcrelJT as a pseudo-instructionlowered to a cannonical ADR
instruction at MC lowering. Add binary encoding information for the ADR,
including fixup data for the label operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120594
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 19:32:01 +0000 (19:32 +0000)]
Support/FileSystem: Add copy_file implementation. Not tests yet because the
file creation APIs aren't implemented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120593
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 19:31:48 +0000 (19:31 +0000)]
Support/PathV2: Split PathV2.h into PathV2.h and FileSystem.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120592
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 19:23:49 +0000 (19:23 +0000)]
unittests/Support/PathV2: Fix -pedantic warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120590
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 1 Dec 2010 19:18:46 +0000 (19:18 +0000)]
Add correct encodings for STRD and LDRD, including fixup support. Additionally, update these to unified syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120589
91177308-0d34-0410-b5e6-
96231b3b80d8
Jason W Kim [Wed, 1 Dec 2010 19:07:22 +0000 (19:07 +0000)]
kill trailing space
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120586
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 1 Dec 2010 19:02:26 +0000 (19:02 +0000)]
Fix a mised reloc rename spot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120585
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 1 Dec 2010 18:51:32 +0000 (18:51 +0000)]
10 bits, not 12.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120584
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 1 Dec 2010 16:59:34 +0000 (16:59 +0000)]
Disable debug info for x86-darwin9 and earlier until PR 8715 and radar
8709290 are fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120580
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 1 Dec 2010 15:36:49 +0000 (15:36 +0000)]
Add hiddent command line option, as an debugging aid, to disable .loc use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120575
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 1 Dec 2010 12:58:13 +0000 (12:58 +0000)]
I don't think it makes any sense to assert that the target supports SSE3 here.
The user (i.e. whoever generated a call to the intrinsic in the first place) is
essentially asking for a particular instruction to be placed in the assembler.
If that instruction won't execute on the target machine, that's their problem
not ours. Two buildbots with processors that don't support SSE3 were barfing
on the apm.ll test in CodeGen/X86 because of this assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120574
91177308-0d34-0410-b5e6-
96231b3b80d8
Che-Liang Chiou [Wed, 1 Dec 2010 11:45:53 +0000 (11:45 +0000)]
ptx: bug fix: use after free
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120571
91177308-0d34-0410-b5e6-
96231b3b80d8
Jay Foad [Wed, 1 Dec 2010 08:53:58 +0000 (08:53 +0000)]
PR5207: Rename overloaded APInt methods set(), clear(), flip() to
setAllBits(), setBit(unsigned), etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120564
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 06:21:53 +0000 (06:21 +0000)]
Support/PathV2: Add is_{absolute,relative} implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120560
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 06:03:50 +0000 (06:03 +0000)]
Support/PathV2: Add has_{root_path,root_name,root_directory,parent_path,filename,stem,extension} implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120559
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 06:03:33 +0000 (06:03 +0000)]
unittests/Support/PathV2: Make tests much shorter; although harder to understand.
I'm going to replace this all anyway with a proper table and separated tests
when done.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120558
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 1 Dec 2010 04:01:17 +0000 (04:01 +0000)]
Elaborate on FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120552
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Wed, 1 Dec 2010 03:45:07 +0000 (03:45 +0000)]
Move the ARMAsmPrinter class defintiion into a header file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120551
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 03:37:41 +0000 (03:37 +0000)]
Support/PathV2: Add extension implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120550
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 1 Dec 2010 03:27:20 +0000 (03:27 +0000)]
Speculatively disable x86 portion of r120501 to appease the x86_64 buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120549
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 03:18:33 +0000 (03:18 +0000)]
Support/PathV2: Add stem implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120547
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 03:18:17 +0000 (03:18 +0000)]
Support/PathV2: Add filename implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120546
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 1 Dec 2010 02:49:04 +0000 (02:49 +0000)]
Remove "comparison of integers of different signs" warning by making the
variable unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120541
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 02:48:43 +0000 (02:48 +0000)]
Support/PathV2: Remove is_valid. It was only added because Path had it, but
apparently it is unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120540
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 02:48:27 +0000 (02:48 +0000)]
Support/PathV2: Add native implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120539
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 1 Dec 2010 02:46:41 +0000 (02:46 +0000)]
Delete Path::appendSuffix's return value; it wasn't used anywhere, which
is fine since isn't really necessary to check isValid there anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120538
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 1 Dec 2010 02:42:55 +0000 (02:42 +0000)]
General cleanups of comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120536
91177308-0d34-0410-b5e6-
96231b3b80d8
Jason W Kim [Wed, 1 Dec 2010 02:40:06 +0000 (02:40 +0000)]
ARM/MC/ELF relocation "hello world" for movw/movt.
Lifted adjustFixupValue() from Darwin for sharing w ELF.
Test added
TODO:
refactor ELFObjectWriter::RecordRelocation more.
Possibly share more code with Darwin?
Lots more relocations...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120534
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 1 Dec 2010 02:36:55 +0000 (02:36 +0000)]
Formatting. It's all the rage!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120533
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 1 Dec 2010 02:28:08 +0000 (02:28 +0000)]
More refactoring. This time the T1pI pattern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120532
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Wed, 1 Dec 2010 01:40:24 +0000 (01:40 +0000)]
Refactor load/store handling again. Simplify and make some room for
reg+reg handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120526
91177308-0d34-0410-b5e6-
96231b3b80d8
Jan Wen Voung [Wed, 1 Dec 2010 01:38:58 +0000 (01:38 +0000)]
Initialize an ARMConstantPoolValue field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120525
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 1 Dec 2010 01:38:08 +0000 (01:38 +0000)]
s/T1pIEncode/T1pILdStEncode/g
s/T1pIEncodeImm/T1pILdStEncodeImm/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120524
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 1 Dec 2010 01:32:02 +0000 (01:32 +0000)]
Renaming variables to coincide with documentation. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120522
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 1 Dec 2010 01:24:55 +0000 (01:24 +0000)]
fix a bozo bug I introduced in r119930, causing a miscompile of
20040709-1.c from the gcc testsuite. I was using the size of a
pointer instead of the pointee. This fixes rdar://
8713376
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120519
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 1 Dec 2010 01:20:15 +0000 (01:20 +0000)]
Refactor T1sI and T1sIt encodings into helper classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120518
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 00:52:55 +0000 (00:52 +0000)]
Support/PathV2: Add replace_extension implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120514
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Wed, 1 Dec 2010 00:52:28 +0000 (00:52 +0000)]
Support/PathV2: Add remove_filename implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120513
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 1 Dec 2010 00:48:44 +0000 (00:48 +0000)]
Refactor the T1sIt encodings into a parent class to get rid of all of the "let"
statements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120512
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 1 Dec 2010 00:28:25 +0000 (00:28 +0000)]
Use by-name rather than by-order matching for NEON operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120507
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Wed, 1 Dec 2010 00:09:25 +0000 (00:09 +0000)]
test/Archive: FileCheck-ize, and remove *.toc. These may be CRLF-tolerant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120506
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 30 Nov 2010 23:59:50 +0000 (23:59 +0000)]
Comment typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120504
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 30 Nov 2010 23:55:39 +0000 (23:55 +0000)]
Enable sibling call optimization of libcalls which are expanded during
legalization time. Since at legalization time there is no mapping from
SDNode back to the corresponding LLVM instruction and the return
SDNode is target specific, this requires a target hook to check for
eligibility. Only x86 and ARM support this form of sibcall optimization
right now.
rdar://
8707777
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120501
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 30 Nov 2010 23:54:45 +0000 (23:54 +0000)]
Rename operands to match ARM documentation. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120500
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 30 Nov 2010 23:51:41 +0000 (23:51 +0000)]
Fix typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120499
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Nov 2010 23:43:23 +0000 (23:43 +0000)]
Enhance DSE to handle the variable index case in PR8657.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120498
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Tue, 30 Nov 2010 23:29:24 +0000 (23:29 +0000)]
Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120497
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 30 Nov 2010 23:28:07 +0000 (23:28 +0000)]
Support/PathV2: Implement reverse iteration and parent_path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120496
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 30 Nov 2010 23:27:35 +0000 (23:27 +0000)]
Support/ADT/StringRef: Add find_last_of.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120495
91177308-0d34-0410-b5e6-
96231b3b80d8
Jason W Kim [Tue, 30 Nov 2010 23:27:18 +0000 (23:27 +0000)]
Thanks to JimG for catching this!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120494
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Nov 2010 23:25:01 +0000 (23:25 +0000)]
remove fixme comment too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120493
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 30 Nov 2010 23:23:59 +0000 (23:23 +0000)]
check in *all* files. This is now handled by my previous DSE commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120492
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 30 Nov 2010 23:18:47 +0000 (23:18 +0000)]
Coding style. No significant functionality. Abandon linear scan style
in favor of the widespread llvm style. Capitalize variables and add
newlines for visual parsing. Rename variables for readability.
And other cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120490
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 30 Nov 2010 23:16:25 +0000 (23:16 +0000)]
Inline classes that were used in only one place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120488
91177308-0d34-0410-b5e6-
96231b3b80d8