OSDN Git Service
Che-Liang Chiou [Tue, 19 Oct 2010 13:28:18 +0000 (13:28 +0000)]
Add svn:ignore to lib/Target/PTX/
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116807
91177308-0d34-0410-b5e6-
96231b3b80d8
Che-Liang Chiou [Tue, 19 Oct 2010 13:21:51 +0000 (13:21 +0000)]
Add test case mov.ll for PTX device function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116806
91177308-0d34-0410-b5e6-
96231b3b80d8
Che-Liang Chiou [Tue, 19 Oct 2010 13:14:40 +0000 (13:14 +0000)]
Add lower argument and return of device function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116805
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 19 Oct 2010 10:18:23 +0000 (10:18 +0000)]
Fix spelling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116804
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Tue, 19 Oct 2010 08:21:25 +0000 (08:21 +0000)]
First step to allowing the resource directory of Clang to be adjusted for
strange packaging environments. The primary result of this is to expose
a (normally empty) CLANG_RESOURCE_DIR string in the autoconf and CMake builds.
This will in turn be used by a subsequent commit to Clang.
Regenerated configure and config.h.in thanks to Nick. =D
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116802
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 19 Oct 2010 07:32:52 +0000 (07:32 +0000)]
X86: Add MS-CRT libcalls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116801
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Tue, 19 Oct 2010 07:32:42 +0000 (07:32 +0000)]
Fix Whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116800
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 19 Oct 2010 03:24:42 +0000 (03:24 +0000)]
lib/CodeGen/TargetLoweringObjectFileImpl.cpp: Tweak to emit ".{section}${name}" instead of ".{section}$linkonce_{name}" for linkonce sections.
It seems GNU ld/PECOFF relies on section names, linking with g++'s libstdc++.a would fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116791
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 19 Oct 2010 02:50:50 +0000 (02:50 +0000)]
Fix for machine licm assert: RCCost <= RegPressure[RCId]
in MultiSource/Benchmarks/VersaBench/beamformer/beamformer.
SmallSet.insert returns true if the element is inserted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116790
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 19 Oct 2010 02:02:57 +0000 (02:02 +0000)]
Fix PR8300 by remembering to keep the bitcast in all cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116788
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 19 Oct 2010 01:22:01 +0000 (01:22 +0000)]
lib/System/Win32/ThreadLocal.inc: Suppress "unused" warning on -Asserts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116785
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 19 Oct 2010 01:21:55 +0000 (01:21 +0000)]
lib/Support/raw_ostream.cpp: Fix Cygwin's build.
setmode is provided by io.h on Cygwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116784
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 19 Oct 2010 00:55:07 +0000 (00:55 +0000)]
- Add a hook for target to determine whether an instruction def is
"long latency" enough to hoist even if it may increase spilling. Reloading
a value from spill slot is often cheaper than performing an expensive
computation in the loop. For X86, that means machine LICM will hoist
SQRT, DIV, etc. ARM will be somewhat aggressive with VFP and NEON
instructions.
- Enable register pressure aware machine LICM by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116781
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Tue, 19 Oct 2010 00:37:30 +0000 (00:37 +0000)]
Move the definition of this to the source file to anchor the vtable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116779
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 19 Oct 2010 00:19:49 +0000 (00:19 +0000)]
Speculatively revert 116753 and 116756 to attempt to fix the bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116777
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 19 Oct 2010 00:16:32 +0000 (00:16 +0000)]
Support alignment for NEON vld-lane and vst-lane instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116776
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Tue, 19 Oct 2010 00:01:44 +0000 (00:01 +0000)]
Added a few tweaks to the Intel Descriptor-table support instructions to allow
word forms and suffixed versions to match the darwin assembler in 32-bit and
64-bit modes. This is again for use just with assembly source for llvm-mc .
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116773
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 18 Oct 2010 23:35:38 +0000 (23:35 +0000)]
ARM encoding information for [SU]SAT* instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116768
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 Oct 2010 23:31:47 +0000 (23:31 +0000)]
Make the representation of AliasSets explicitly differentiate
between "not known yet" and "known no tbaa info" so that it
can merge them properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116767
91177308-0d34-0410-b5e6-
96231b3b80d8
Chandler Carruth [Mon, 18 Oct 2010 23:18:51 +0000 (23:18 +0000)]
Add a virtual destructor to silence a GCC warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116766
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 18 Oct 2010 22:53:53 +0000 (22:53 +0000)]
Revert r116220 - thus turning arm fast isel back on by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116762
91177308-0d34-0410-b5e6-
96231b3b80d8
Jason W Kim [Mon, 18 Oct 2010 21:59:38 +0000 (21:59 +0000)]
Get rid of unneeded FormatOutput global variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116756
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 18 Oct 2010 21:55:18 +0000 (21:55 +0000)]
CrashRecoveryContext: Add missing return, so that the signal fires after we our
routine is off the stack. Otherwise we show up rather confusingly in the stack
trace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116755
91177308-0d34-0410-b5e6-
96231b3b80d8
Jason W Kim [Mon, 18 Oct 2010 21:32:41 +0000 (21:32 +0000)]
Changed elf-dump to output hex format by default.
Also updated tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116753
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 Oct 2010 21:28:00 +0000 (21:28 +0000)]
Don't pass the raw invalid pointer used to represent conflicting
TBAA information to AliasAnalysis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116751
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 18 Oct 2010 21:22:31 +0000 (21:22 +0000)]
Don't recompute MachineRegisterInfo in the Optimize* method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116750
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Mon, 18 Oct 2010 21:16:00 +0000 (21:16 +0000)]
Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116749
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 Oct 2010 21:00:09 +0000 (21:00 +0000)]
Add a basic testcase for TBAA-aware LICM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116745
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 18 Oct 2010 20:47:21 +0000 (20:47 +0000)]
Implement R_386_GOT32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116744
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 Oct 2010 20:44:50 +0000 (20:44 +0000)]
Make AliasSetTracker TBAA-aware, enabling TBAA-enabled LICM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116743
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 18 Oct 2010 20:25:33 +0000 (20:25 +0000)]
Relocate with .bss instead of using the symbol. Matches gas behavior.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116741
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 18 Oct 2010 19:33:01 +0000 (19:33 +0000)]
Reenable assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116738
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 18 Oct 2010 18:53:44 +0000 (18:53 +0000)]
Transfer debug loc to lowered call.
Patch by Alexander Herz!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116733
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 Oct 2010 18:50:27 +0000 (18:50 +0000)]
Add TypeBasedAliasAnalysis to the standard pass lists. Note that it
is currently inert by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116732
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 Oct 2010 18:45:59 +0000 (18:45 +0000)]
Run tbaa before basicaa, since that's how it's expected to be used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116731
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 Oct 2010 18:45:11 +0000 (18:45 +0000)]
Fix BasicAA to pass TBAAInfo through to the chained analysis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116730
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 18 Oct 2010 18:39:46 +0000 (18:39 +0000)]
For Thumb2, try to use frame pointer references for stack slots even when a
base register is available. rdar://
8525298
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116729
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 18 Oct 2010 18:36:12 +0000 (18:36 +0000)]
Produce ELF::R_386_GOTPC relocations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116728
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 Oct 2010 18:17:47 +0000 (18:17 +0000)]
Make TypeBasedAliasAnalysis default to doing nothing, with a command-line
option to enable it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116722
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 Oct 2010 18:10:31 +0000 (18:10 +0000)]
Use chaining in TypeBasedAliasAnalysis::pointsToConstantMemory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116721
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 Oct 2010 18:04:47 +0000 (18:04 +0000)]
Make BasicAliasAnalysis a normal AliasAnalysis implementation which
does normal initialization and normal chaining. Change the default
AliasAnalysis implementation to NoAlias.
Update StandardCompileOpts.h and friends to explicitly request
BasicAliasAnalysis.
Update tests to explicitly request -basicaa.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116720
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 18 Oct 2010 18:03:28 +0000 (18:03 +0000)]
Make the bots happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116719
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Enderby [Mon, 18 Oct 2010 17:04:36 +0000 (17:04 +0000)]
Added a handful of x86-32 instructions that were missing so that llvm-mc would
be more complete. These are only expected to be used by llvm-mc with assembly
source so there is no pattern, [], in the .td files. Most are being added to
X86InstrInfo.td as Chris suggested and only comments about register uses are
added. Suggestions welcome on the .td changes as I'm not sure on every detail
of the x86 records. More missing instructions will be coming.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116716
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 18 Oct 2010 16:58:03 +0000 (16:58 +0000)]
Produce a R_386_PLT32 when needed. Moved the default cases of switches to the
start for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116715
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 18 Oct 2010 16:48:59 +0000 (16:48 +0000)]
ARM addrmode4 instructions (ldm, stm and friends) can't encode an immediate
offset for stack references. Make sure we take that into account when
deciding whether to reserver an emergency spill slot for the register
scavenger. rdar://
8559625
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116714
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 18 Oct 2010 16:38:50 +0000 (16:38 +0000)]
Grammar tweak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116712
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 18 Oct 2010 16:38:04 +0000 (16:38 +0000)]
Handle GOTOFF correctly on i386.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116711
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 18 Oct 2010 16:29:26 +0000 (16:29 +0000)]
Trivial grammar tweak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116710
91177308-0d34-0410-b5e6-
96231b3b80d8
Kalle Raiskila [Mon, 18 Oct 2010 09:34:19 +0000 (09:34 +0000)]
Improve lowering of sext to i128 on SPU.
The old algorithm inserted a 'rotqmbyi' instruction which was
both redundant and wrong - it made shufb select bytes from the
wrong end of the input quad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116701
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 18 Oct 2010 06:49:12 +0000 (06:49 +0000)]
Remove the check for invalid calling conventions. Testing shows that they're
working just fine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116698
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 18 Oct 2010 02:17:53 +0000 (02:17 +0000)]
Lift arg promotion from the X86 backend. This should be unified at some point.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116694
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sun, 17 Oct 2010 11:08:44 +0000 (11:08 +0000)]
Now that we handle all allocas via a non-SP reg offset remove all of the
special case handling for ARM::SP.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116688
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sun, 17 Oct 2010 07:39:34 +0000 (07:39 +0000)]
std::string cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116686
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sun, 17 Oct 2010 07:38:40 +0000 (07:38 +0000)]
Fix a typo and silence unused variable warnings in -Asserts build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116685
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sun, 17 Oct 2010 06:07:26 +0000 (06:07 +0000)]
Allow more load types to be materialized through the allocas.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116683
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Sun, 17 Oct 2010 02:26:16 +0000 (02:26 +0000)]
Build with RTTI and exceptions disabled. Only in GCC for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116682
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sun, 17 Oct 2010 01:51:42 +0000 (01:51 +0000)]
Optimize GEP off of intermediate allocas.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116681
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sun, 17 Oct 2010 01:42:53 +0000 (01:42 +0000)]
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116680
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sun, 17 Oct 2010 01:41:46 +0000 (01:41 +0000)]
Turn on AddOperator folding in GEP.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116679
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sun, 17 Oct 2010 01:40:27 +0000 (01:40 +0000)]
Use the i12 immediate versions of the load instructions - they're handled
more in the post-passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116678
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Sat, 16 Oct 2010 18:23:53 +0000 (18:23 +0000)]
Add a MCObjectFormat class so that code common to all targets that use a
single object format can be shared.
This also adds support for
mov zed+(bar-foo), %eax
on ELF and COFF targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116675
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 16 Oct 2010 15:43:02 +0000 (15:43 +0000)]
Hack around incompatible pointer warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116671
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 16 Oct 2010 11:28:23 +0000 (11:28 +0000)]
Eliminate some calls to Value::getNameStr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116670
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 16 Oct 2010 11:27:13 +0000 (11:27 +0000)]
Unbreak test on non-COFF targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116669
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Sat, 16 Oct 2010 08:25:57 +0000 (08:25 +0000)]
MC-COFF: Add support for default-null weak externals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116666
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Sat, 16 Oct 2010 08:25:41 +0000 (08:25 +0000)]
X86-Windows: Emit an undefined global __fltused symbol when targeting Windows
if any floating point arguments are passed to an external function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116665
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Sat, 16 Oct 2010 08:25:21 +0000 (08:25 +0000)]
Whitespace!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116664
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 16 Oct 2010 04:56:42 +0000 (04:56 +0000)]
MC/AsmParser: Report .stabs directive as unsupported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116659
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 16 Oct 2010 02:20:26 +0000 (02:20 +0000)]
More machine LICM work. It now tracks register pressure for path from preheader to current BB and use the information determine whether hoisting is worthwhile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116654
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Sat, 16 Oct 2010 01:10:35 +0000 (01:10 +0000)]
Fix some funky formatting that got through.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116653
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 15 Oct 2010 23:35:12 +0000 (23:35 +0000)]
ARMCodeEmitter::emitMiscInstruction is dead. Long live
ARMCodeEmitter::emitMiscInstruction!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116644
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 15 Oct 2010 23:07:10 +0000 (23:07 +0000)]
Make sure offset is 0 for load/store register to the stack call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116640
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 15 Oct 2010 22:52:12 +0000 (22:52 +0000)]
Generalize MemCpyOpt's handling of call slot forwarding to function properly when the call slot
forwarding is implemented with a load/store pair rather than a memcpy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116637
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 15 Oct 2010 22:49:28 +0000 (22:49 +0000)]
Formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116635
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 15 Oct 2010 22:46:15 +0000 (22:46 +0000)]
lto: Respect LLVM_VERSION_INFO make variable, since setting CC arguments with
spaces gives tests fits and shell escaping is an art best left to jabberwockies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116632
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 15 Oct 2010 22:32:37 +0000 (22:32 +0000)]
Fix else if -> if in store machinery.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116628
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 15 Oct 2010 21:50:45 +0000 (21:50 +0000)]
Reformatting. No functionalogicality changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116625
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 15 Oct 2010 21:32:12 +0000 (21:32 +0000)]
Refactor ARM fast-isel reg + offset to be a base + offset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116622
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 15 Oct 2010 19:49:46 +0000 (19:49 +0000)]
Encoding information for the various ARM saturating add/sub instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116612
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Fri, 15 Oct 2010 19:30:49 +0000 (19:30 +0000)]
llvmc: Add a test for the -c flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116611
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 15 Oct 2010 18:42:41 +0000 (18:42 +0000)]
ARM binary encoding information for RSB and RSC instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116604
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 15 Oct 2010 18:34:47 +0000 (18:34 +0000)]
Don't mark argument value stores as immutable, as otherwise the post-RA
scheduler may reorder loads from them before the stores and other such
badness. PR8347. Patch by David Meyer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116602
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 15 Oct 2010 18:25:59 +0000 (18:25 +0000)]
Use simple RegState::Define flag instead of getDefRegState(true).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116601
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 15 Oct 2010 18:25:33 +0000 (18:25 +0000)]
Refactor alias handling to AliasedSymbol.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116600
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Fri, 15 Oct 2010 18:13:02 +0000 (18:13 +0000)]
KillTheDoctor: Fix 2008 build. I'm actually surprised 2010 defines all of these, many are non-standard posix/unix extensions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116597
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Fri, 15 Oct 2010 18:02:07 +0000 (18:02 +0000)]
Expand GEP handling for constant offsets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116594
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 15 Oct 2010 17:47:12 +0000 (17:47 +0000)]
Teach FileCheck to handle trailing CHECK-NOT patterns.
A CHECK-NOT pattern without a following CHECK pattern simply checks that the
pattern doesn't match before the end of the input file.
You can even have only CHECK-NOT patterns to check that strings appear nowhere
in the input file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116592
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 15 Oct 2010 17:35:17 +0000 (17:35 +0000)]
When expanding the MOVsr[la]_flag pseudos, the CPSR implicit def becomes
an explicit def. Make sure to capture that properly. rdar://
8556556
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116591
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 15 Oct 2010 17:15:16 +0000 (17:15 +0000)]
ARM mode encoding information for UBFX and SBFX instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116588
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 15 Oct 2010 16:06:42 +0000 (16:06 +0000)]
FileCheckize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116581
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 15 Oct 2010 16:06:40 +0000 (16:06 +0000)]
Remove unused accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116580
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 15 Oct 2010 15:39:06 +0000 (15:39 +0000)]
Refactor code a bit and avoid creating unnecessary entries in the string
map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116579
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 15 Oct 2010 04:34:40 +0000 (04:34 +0000)]
Remove unused ARMISD::AND selection DAG node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116566
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 15 Oct 2010 03:23:44 +0000 (03:23 +0000)]
ARM instructions that are both predicated and set the condition codes
have been printed with the "S" modifier after the predicate. With ARM's
unified syntax, they are supposed to go in the other order. We fixed this
for Thumb when we switched to unified syntax but missed changing it for
ARM. Apparently we don't generate these instructions often because no one
noticed until now. Thanks to Bill Wendling for the testcase!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116563
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 15 Oct 2010 02:29:58 +0000 (02:29 +0000)]
Encoding info for extension instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116560
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 15 Oct 2010 01:44:59 +0000 (01:44 +0000)]
Grammar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116557
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 15 Oct 2010 00:58:12 +0000 (00:58 +0000)]
Don't pass --export-dynamic if TOOL_NO_EXPORTS is set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116550
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 15 Oct 2010 00:34:01 +0000 (00:34 +0000)]
Eliminate curli from SplitEditor. Use the LiveRangeEdit reference instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116547
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Fri, 15 Oct 2010 00:16:55 +0000 (00:16 +0000)]
Move stack slot assignments into LiveRangeEdit.
All registers created during splitting or spilling are assigned to the same
stack slot as the parent register.
When splitting or rematting, we may not spill at all. In that case the stack
slot is still assigned, but it will be dead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116546
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Thu, 14 Oct 2010 23:49:52 +0000 (23:49 +0000)]
Create a new LiveRangeEdit class to keep track of the new registers created when
splitting or spillling, and to help with rematerialization.
Use LiveRangeEdit in InlineSpiller and SplitKit. This will eventually make it
possible to share remat code between InlineSpiller and SplitKit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116543
91177308-0d34-0410-b5e6-
96231b3b80d8