oota-llvm.git
13 years agoDon't print "Command output (stdout):" when the command has no output,
Dan Gohman [Wed, 4 Aug 2010 00:05:16 +0000 (00:05 +0000)]
Don't print "Command output (stdout):" when the command has no output,
and same for stderr, to avoid clutter in the output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110169 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoUse the regular conditional operator syntax instead of a clever hack.
Dan Gohman [Wed, 4 Aug 2010 00:00:13 +0000 (00:00 +0000)]
Use the regular conditional operator syntax instead of a clever hack.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110168 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRemove PointerAccessInfo, which nothing was using.
Dan Gohman [Tue, 3 Aug 2010 23:08:10 +0000 (23:08 +0000)]
Remove PointerAccessInfo, which nothing was using.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110167 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMake the makefiles go much faster by using the realpath
Chris Lattner [Tue, 3 Aug 2010 22:53:22 +0000 (22:53 +0000)]
Make the makefiles go much faster by using the realpath
builtin instead of shell.  On my 8 core mac pro, this speeds
up a 'make -j8' null build of the lib directory from 1.11s to
0.77s wall time.

Patch by NAKAMURA Takumi!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110166 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agofix a win64 encoding problem, patch by Cameron Esfahani!
Chris Lattner [Tue, 3 Aug 2010 22:49:22 +0000 (22:49 +0000)]
fix a win64 encoding problem, patch by Cameron Esfahani!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110164 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoThread const correctness through a bunch of AliasAnalysis interfaces and
Dan Gohman [Tue, 3 Aug 2010 21:48:53 +0000 (21:48 +0000)]
Thread const correctness through a bunch of AliasAnalysis interfaces and
eliminate several const_casts.

Make CallSite implicitly convertible to ImmutableCallSite.

Rename the getModRefBehavior for intrinsic IDs to
getIntrinsicModRefBehavior to avoid overload ambiguity with CallSite,
which happens to be implicitly convertible to bool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110155 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd support for getting & setting the FPSCR application register on ARM when VFP...
Nate Begeman [Tue, 3 Aug 2010 21:31:55 +0000 (21:31 +0000)]
Add support for getting & setting the FPSCR application register on ARM when VFP is enabled.
Add support for using the FPSCR in conjunction with the vcvtr instruction, for controlling fp to int rounding.
Add support for the FLT_ROUNDS_ node now that the FPSCR is exposed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110152 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoThe singular of "indices" is "index".
Dan Gohman [Tue, 3 Aug 2010 20:23:52 +0000 (20:23 +0000)]
The singular of "indices" is "index".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110135 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDelete an unused function.
Dan Gohman [Tue, 3 Aug 2010 20:20:56 +0000 (20:20 +0000)]
Delete an unused function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110134 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMake instcombine set explicit alignments on load or store
Dan Gohman [Tue, 3 Aug 2010 18:20:32 +0000 (18:20 +0000)]
Make instcombine set explicit alignments on load or store
instructions with alignment 0, so that subsequent passes don't
need to bother checking the TargetData ABI size manually.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110128 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoCMake: Change somme target library names:
Oscar Fuentes [Tue, 3 Aug 2010 17:40:31 +0000 (17:40 +0000)]
CMake: Change somme target library names:

XCore->XCoreGen
PIC16->PIC16CodeGen

After updating your working copy, the first build will fail because it
is using the old library dependencies. Start the build again and it
will work fine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110127 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoCMake: add version control info to PACKAGE_VERSION, if available.
Oscar Fuentes [Tue, 3 Aug 2010 17:28:09 +0000 (17:28 +0000)]
CMake: add version control info to PACKAGE_VERSION, if available.

Adds "svn" or "git", depending on the VCS used. If svn, adds the
revision number as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110121 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMake AliasAnalysis::getModRefInfo conservative in the face of volatility.
Dan Gohman [Tue, 3 Aug 2010 17:27:43 +0000 (17:27 +0000)]
Make AliasAnalysis::getModRefInfo conservative in the face of volatility.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110120 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoOops. Don't normalize spill weights twice.
Jakob Stoklund Olesen [Tue, 3 Aug 2010 17:21:16 +0000 (17:21 +0000)]
Oops. Don't normalize spill weights twice.

When the normalizeSpillWeights function was introduced, I forgot to remove this
normalization.

This change could affect register allocation. Hopefully for the better.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110119 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoOK, that's it. This test is going away now. But don't worry, I am taking it to a
Jakob Stoklund Olesen [Tue, 3 Aug 2010 17:21:14 +0000 (17:21 +0000)]
OK, that's it. This test is going away now. But don't worry, I am taking it to a
nice farm in the country where it can play with other tests. And bunnies.

It is not clear what is being tested, and the revision history shows a bunch of
random changes to the expected instruction count. Clearly, we are just fudging
it to pass whenever it fails.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110118 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoavoid undefined behavior negating minint.
Chris Lattner [Tue, 3 Aug 2010 16:57:03 +0000 (16:57 +0000)]
avoid undefined behavior negating minint.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110117 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix a typo Devang noticed.
Dan Gohman [Tue, 3 Aug 2010 16:48:31 +0000 (16:48 +0000)]
Fix a typo Devang noticed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110115 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoavoid undef behavior on minint, fixing PR7783.
Chris Lattner [Tue, 3 Aug 2010 16:41:24 +0000 (16:41 +0000)]
avoid undef behavior on minint, fixing PR7783.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110114 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd an atomic lowering pass
Peter Collingbourne [Tue, 3 Aug 2010 16:19:16 +0000 (16:19 +0000)]
Add an atomic lowering pass

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110113 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoUse unary + instead of a separate local variable for working
Dan Gohman [Tue, 3 Aug 2010 16:15:50 +0000 (16:15 +0000)]
Use unary + instead of a separate local variable for working
around std::min vs static const friction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110112 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoBump cmake_minimum_required to version 2.8
Oscar Fuentes [Tue, 3 Aug 2010 15:07:17 +0000 (15:07 +0000)]
Bump cmake_minimum_required to version 2.8

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110110 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agobuild: Add LLVM_NATIVE_ARCHNAME, which has the sensible value, without "Target"
Daniel Dunbar [Tue, 3 Aug 2010 14:26:17 +0000 (14:26 +0000)]
build: Add LLVM_NATIVE_ARCHNAME, which has the sensible value, without "Target"
appended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110109 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRemove the test/mc directory that I accidently added.
Michael J. Spencer [Tue, 3 Aug 2010 05:30:49 +0000 (05:30 +0000)]
Remove the test/mc directory that I accidently added.

This directory conflicts with test/MC on Windows machines.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110105 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMC: Fix symbol fragment offsets in COFF.
Michael J. Spencer [Tue, 3 Aug 2010 05:02:46 +0000 (05:02 +0000)]
MC: Fix symbol fragment offsets in COFF.

Patch by Cameron Esfahani!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110104 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRevert "MC: Fix symbol fragment offsets in COFF."
Michael J. Spencer [Tue, 3 Aug 2010 04:53:28 +0000 (04:53 +0000)]
Revert "MC: Fix symbol fragment offsets in COFF."

This reverts commit r110100

Wrong path caps.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110103 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMC: Add time travel support to COFF.
Michael J. Spencer [Tue, 3 Aug 2010 04:43:33 +0000 (04:43 +0000)]
MC: Add time travel support to COFF.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110101 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMC: Fix symbol fragment offsets in COFF.
Michael J. Spencer [Tue, 3 Aug 2010 04:43:24 +0000 (04:43 +0000)]
MC: Fix symbol fragment offsets in COFF.

Patch by Cameron Esfahani!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110100 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix CMake build
Michael J. Spencer [Tue, 3 Aug 2010 02:38:20 +0000 (02:38 +0000)]
Fix CMake build

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110097 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoSupport x86 AVX 256-bit instruction intrinsics. Right now support all of them, but
Bruno Cardoso Lopes [Tue, 3 Aug 2010 01:53:41 +0000 (01:53 +0000)]
Support x86 AVX 256-bit instruction intrinsics. Right now support all of them, but
as soon as we properly codegen the simple vector operations in clang, remove the
unnecessary builti-ins/intrinsics from clang and llvm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110094 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoUpdate some comments.
Dan Gohman [Tue, 3 Aug 2010 01:07:32 +0000 (01:07 +0000)]
Update some comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110092 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoIntroduce a symbolic constant for ~0u for use with AliasAnalysis.
Dan Gohman [Tue, 3 Aug 2010 01:03:11 +0000 (01:03 +0000)]
Introduce a symbolic constant for ~0u for use with AliasAnalysis.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110091 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd a convenient form of AliasAnalysis::alias for the case where the sizes
Dan Gohman [Tue, 3 Aug 2010 00:56:30 +0000 (00:56 +0000)]
Add a convenient form of AliasAnalysis::alias for the case where the sizes
are unknown.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110090 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMake SCEVUnknown a CallbackVH, so that it can be notified directly
Dan Gohman [Mon, 2 Aug 2010 23:49:30 +0000 (23:49 +0000)]
Make SCEVUnknown a CallbackVH, so that it can be notified directly
of Value deletions and RAUWs, instead of relying on ScalarEvolution's
Scalars map being notified, as that's complicated at best, and
insufficient in general.

This means SCEVUnknown needs a non-trivial destructor, so introduce
a mechanism to allow ScalarEvolution to locate all the SCEVUnknowns.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110086 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoDiabolical hack to make a test compatible with clang. (Thanks to Dale!) Radar 8246180.
Stuart Hastings [Mon, 2 Aug 2010 23:29:03 +0000 (23:29 +0000)]
Diabolical hack to make a test compatible with clang.  (Thanks to Dale!)  Radar 8246180.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110081 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoSketch up a preliminary Type-Based Alias Analysis implementation.
Dan Gohman [Mon, 2 Aug 2010 23:11:01 +0000 (23:11 +0000)]
Sketch up a preliminary Type-Based Alias Analysis implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110077 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix visitInvokeInst to call visitTerminatorInst, and remove
Dan Gohman [Mon, 2 Aug 2010 23:09:14 +0000 (23:09 +0000)]
Fix visitInvokeInst to call visitTerminatorInst, and remove
a redundant check from checkInstruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110076 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd Verifier logic for indirectbr.
Dan Gohman [Mon, 2 Aug 2010 23:08:33 +0000 (23:08 +0000)]
Add Verifier logic for indirectbr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110075 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd a lint check for indirectbr with no successors.
Dan Gohman [Mon, 2 Aug 2010 23:06:43 +0000 (23:06 +0000)]
Add a lint check for indirectbr with no successors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110074 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd explicit constructors. Patch by Renato Golin.
Devang Patel [Mon, 2 Aug 2010 22:51:46 +0000 (22:51 +0000)]
Add explicit constructors. Patch by Renato Golin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110072 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTestcase for r110043. Radar 8246180.
Stuart Hastings [Mon, 2 Aug 2010 22:09:53 +0000 (22:09 +0000)]
Testcase for r110043.  Radar 8246180.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110070 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoEarly exit and reduce indentation. No functionality change.
Bill Wendling [Mon, 2 Aug 2010 22:06:08 +0000 (22:06 +0000)]
Early exit and reduce indentation. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110069 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoImprove discrimination of unknown libraries from ignored targets on
Oscar Fuentes [Mon, 2 Aug 2010 21:24:12 +0000 (21:24 +0000)]
Improve discrimination of unknown libraries from ignored targets on
LLVMConfig.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110065 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoexplicit_map_components_to_libraries now does not complain when there
Oscar Fuentes [Mon, 2 Aug 2010 20:48:01 +0000 (20:48 +0000)]
explicit_map_components_to_libraries now does not complain when there
is a dependence on an LLVM target that is not included on the build.

When LLVM_TARGETS_TO_BUILD didn't include all the targets, the
function emitted an error like

"Library LLVMArmParser not found in list of llvm libraries."

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110060 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoLets the CMake GUI show a list of possible values for LLVM_USE_CRT
Oscar Fuentes [Mon, 2 Aug 2010 19:00:34 +0000 (19:00 +0000)]
Lets the CMake GUI show a list of possible values for LLVM_USE_CRT

Patch by nobled!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110057 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix namespace polution.
Dan Gohman [Mon, 2 Aug 2010 18:50:06 +0000 (18:50 +0000)]
Fix namespace polution.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110056 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoUpdated LLVMLibDeps.cmake.
Oscar Fuentes [Mon, 2 Aug 2010 18:36:53 +0000 (18:36 +0000)]
Updated LLVMLibDeps.cmake.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110055 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFree DbgScope created for dead functions.
Devang Patel [Mon, 2 Aug 2010 17:32:15 +0000 (17:32 +0000)]
Free DbgScope created for dead functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110045 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMore SPU v2f32 stuff added: insertelement and shuffle.
Kalle Raiskila [Mon, 2 Aug 2010 11:22:10 +0000 (11:22 +0000)]
More SPU v2f32 stuff added: insertelement and shuffle.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110038 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd preliminary v2f32 support for SPU. Like with v2i32, we just
Kalle Raiskila [Mon, 2 Aug 2010 10:25:47 +0000 (10:25 +0000)]
Add preliminary v2f32 support for SPU. Like with v2i32, we just
duplicate the instructions and operate on half vectors.

Also reorder code in SPUInstrInfo.td for better coherency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110037 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRe-apply the infamous r108614, with a fix pointed out by Dirk Steinke.
Owen Anderson [Mon, 2 Aug 2010 09:32:13 +0000 (09:32 +0000)]
Re-apply the infamous r108614, with a fix pointed out by Dirk Steinke.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110036 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd preliminary v2i32 support for SPU backend. As there are no
Kalle Raiskila [Mon, 2 Aug 2010 08:54:39 +0000 (08:54 +0000)]
Add preliminary v2i32 support for SPU backend. As there are no
such registers in SPU, this support boils down to "emulating"
them by duplicating instructions on the general purpose registers.

This adds the most basic operations on v2i32: passing parameters,
addition, subtraction, multiplication and a few others.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110035 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoPrefix `next' iterator operation with `llvm::'.
Oscar Fuentes [Mon, 2 Aug 2010 06:00:15 +0000 (06:00 +0000)]
Prefix `next' iterator operation with `llvm::'.

Fixes potential ambiguity problems on VS 2010.

Patch by nobled!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110029 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix a -Wreorder warning.
Daniel Dunbar [Mon, 2 Aug 2010 05:43:46 +0000 (05:43 +0000)]
Fix a -Wreorder warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110022 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoWork in progress.
Nick Lewycky [Mon, 2 Aug 2010 05:23:03 +0000 (05:23 +0000)]
Work in progress.
Start cleaning up MergeFunctions to look more like the rest of LLVM. The
primary change here is to move the methods responsible for comparison into the
new FunctionComparator object. Some comments added. There's more to do.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110021 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoPR7586: Make sure we don't claim that unknown bits are actually known in the
Eli Friedman [Mon, 2 Aug 2010 04:42:25 +0000 (04:42 +0000)]
PR7586: Make sure we don't claim that unknown bits are actually known in the
ISD::AND case of TargetLowering::SimplifyDemandedBits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110019 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix this condition; it has an else clause attached for Darwin only. Patch
Nick Lewycky [Mon, 2 Aug 2010 03:16:19 +0000 (03:16 +0000)]
Fix this condition; it has an else clause attached for Darwin only. Patch
by Takumi Nakamura.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110016 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix comment.
Daniel Dunbar [Mon, 2 Aug 2010 01:25:20 +0000 (01:25 +0000)]
Fix comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110006 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agodocs/TestingGuide: Minimal update to describe 'lit' based regression testing
Daniel Dunbar [Mon, 2 Aug 2010 01:20:23 +0000 (01:20 +0000)]
docs/TestingGuide: Minimal update to describe 'lit' based regression testing
instead of DejaGNU. Still a bit kooky, since the current test format still has
some strong Tcl roots. Oh well!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110005 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agodocs/TestingGuide: Rip out description of old nightly tester infrastructure. The
Daniel Dunbar [Mon, 2 Aug 2010 01:20:20 +0000 (01:20 +0000)]
docs/TestingGuide: Rip out description of old nightly tester infrastructure. The
official recommendation is to use LNT instead. I will write docs on setting up
an LNT installation for submission to llvm.org, one day.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110004 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agotests: Kill off custom targets which were just there for TestRunner.sh.
Daniel Dunbar [Mon, 2 Aug 2010 00:52:44 +0000 (00:52 +0000)]
tests: Kill off custom targets which were just there for TestRunner.sh.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110003 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agotests: Deprecate TestRunner.sh, and have it just invoke 'llvm-lit' (which will
Daniel Dunbar [Mon, 2 Aug 2010 00:52:41 +0000 (00:52 +0000)]
tests: Deprecate TestRunner.sh, and have it just invoke 'llvm-lit' (which will
need to be in your path). Please move to using 'llvm-lit' if you are still using
TestRunner.sh.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110002 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agobuild: Fix a dependency.
Daniel Dunbar [Mon, 2 Aug 2010 00:45:41 +0000 (00:45 +0000)]
build: Fix a dependency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110001 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agotests: Add an 'llvm-lit' tool (script), which gets generated as part of the
Daniel Dunbar [Mon, 2 Aug 2010 00:39:42 +0000 (00:39 +0000)]
tests: Add an 'llvm-lit' tool (script), which gets generated as part of the
build and has the object build directory baked into it. This allows 'llvm-lit'
to properly find the information needed to run the test suite in all cases,
without requiring the user to have LLVM or 'lit' available in their PATH, for
example.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110000 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agolit: Allow clients to define predefined parameters.
Daniel Dunbar [Mon, 2 Aug 2010 00:39:38 +0000 (00:39 +0000)]
lit: Allow clients to define predefined parameters.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109999 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoPR7781: Fix incorrect shifting in PPCTargetLowering::LowerBUILD_VECTOR.
Eli Friedman [Mon, 2 Aug 2010 00:18:19 +0000 (00:18 +0000)]
PR7781: Fix incorrect shifting in PPCTargetLowering::LowerBUILD_VECTOR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109998 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agotests: Make 'lit' the default test tool. You can still use 'make check-dg' to
Daniel Dunbar [Mon, 2 Aug 2010 00:05:18 +0000 (00:05 +0000)]
tests: Make 'lit' the default test tool. You can still use 'make check-dg' to
run the tests using DejaGNU, but not for much longer. This is a last call for
DejaGNU supporters, if no one complains soon the DejaGNU support is going to
die.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109997 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoTargets: Add InitializeNativeTargetAsmPrinter(), patch by Jan Sjodin, although
Daniel Dunbar [Sun, 1 Aug 2010 23:36:18 +0000 (23:36 +0000)]
Targets: Add InitializeNativeTargetAsmPrinter(), patch by Jan Sjodin, although
rewritten by me to not require updating all the target initialization routine
names.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109996 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix word choice.
Nick Lewycky [Sun, 1 Aug 2010 23:18:45 +0000 (23:18 +0000)]
Fix word choice.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109995 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoPR7774: Fix undefined shifts in Alpha backend. As a bonus, this actually
Eli Friedman [Sun, 1 Aug 2010 21:13:28 +0000 (21:13 +0000)]
PR7774: Fix undefined shifts in Alpha backend.  As a bonus, this actually
improves the generated code in some cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109985 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoPreallocate vector, avoid unnecessary vector growth.
Benjamin Kramer [Sun, 1 Aug 2010 11:43:26 +0000 (11:43 +0000)]
Preallocate vector, avoid unnecessary vector growth.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109971 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoReference the personalities. Don't copy them into a new vector.
Bill Wendling [Sun, 1 Aug 2010 01:34:21 +0000 (01:34 +0000)]
Reference the personalities. Don't copy them into a new vector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109966 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRevert new AVX intrinsic tests. They are breaking buildbots and Bruno is
Bob Wilson [Sat, 31 Jul 2010 22:36:03 +0000 (22:36 +0000)]
Revert new AVX intrinsic tests.  They are breaking buildbots and Bruno is
away from a computer now.
--- Reverse-merging r109881 into '.':
D    test/CodeGen/X86/avx-intrinsics-x86.ll
D    test/CodeGen/X86/avx-intrinsics-x86_64.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109959 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agobuild: Don't pass -avoid-version or -no-undefined on Darwin, they don't do
Daniel Dunbar [Sat, 31 Jul 2010 21:32:56 +0000 (21:32 +0000)]
build: Don't pass -avoid-version or -no-undefined on Darwin, they don't do
anything.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109957 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoSilence some -Asserts uninitialized variable warnings.
Daniel Dunbar [Sat, 31 Jul 2010 21:08:54 +0000 (21:08 +0000)]
Silence some -Asserts uninitialized variable warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109956 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agollc: Add -mc-relax-all.
Michael J. Spencer [Sat, 31 Jul 2010 19:57:02 +0000 (19:57 +0000)]
llc: Add -mc-relax-all.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109954 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoSpeculatively revert r108614, "Another attempt at getting the clang self-host to
Daniel Dunbar [Sat, 31 Jul 2010 19:51:11 +0000 (19:51 +0000)]
Speculatively revert r108614, "Another attempt at getting the clang self-host to
like my instcombine patch.", in an attempt to fix Clang i386 bootstrap.
 - Also PR7719.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109953 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd const to some methods and change TestMergedProgram to return the merged
Rafael Espindola [Sat, 31 Jul 2010 14:34:49 +0000 (14:34 +0000)]
Add const to some methods and change TestMergedProgram to return the merged
module and take a const BugDriver.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109951 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agodoxygenize argument accessors
Gabor Greif [Sat, 31 Jul 2010 08:35:21 +0000 (08:35 +0000)]
doxygenize argument accessors

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109950 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMC: Remove HasAbsolutizedSet from WindowsX86AsmBackend.
Michael J. Spencer [Sat, 31 Jul 2010 07:21:44 +0000 (07:21 +0000)]
MC: Remove HasAbsolutizedSet from WindowsX86AsmBackend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109949 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMove newlines before inline jumptables from the asm strings in .td files to
Bob Wilson [Sat, 31 Jul 2010 06:28:10 +0000 (06:28 +0000)]
Move newlines before inline jumptables from the asm strings in .td files to
the jtblock_operand print methods.  This avoids extra newlines in the
disassembler's output.  PR7757.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109948 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd relax all support to the COFF object streamer.
Michael J. Spencer [Sat, 31 Jul 2010 06:22:29 +0000 (06:22 +0000)]
Add relax all support to the COFF object streamer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109947 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd support for disassembling VMVN (immediate) instructions. PR7747.
Bob Wilson [Sat, 31 Jul 2010 05:57:44 +0000 (05:57 +0000)]
Add support for disassembling VMVN (immediate) instructions.  PR7747.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109946 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoThe BlockExtractorPass() constructor was not reading the BlockFile and that was
Rafael Espindola [Sat, 31 Jul 2010 00:32:17 +0000 (00:32 +0000)]
The BlockExtractorPass() constructor was not reading the BlockFile and that was
exactly what bugpoint expected it to do.

There was also only one user of
BlockExtractorPass(const std::vector<BasicBlock*> &B), so just remove it and
make BlockExtractorPass read BlockFile.

This fixes bugpoint's block extraction.

Nick, please review.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109936 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd an initial implementation of PHI translation for LazyValueInfo. This involves...
Owen Anderson [Fri, 30 Jul 2010 23:59:40 +0000 (23:59 +0000)]
Add an initial implementation of PHI translation for LazyValueInfo.  This involves rolling back some
of my earlier data structure improvements until I can ensure that there are no iterator invalidation problems.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109935 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd -disable-shifter-op to disable isel of shifter ops. On Cortex-a9 the shifts cost...
Evan Cheng [Fri, 30 Jul 2010 23:33:54 +0000 (23:33 +0000)]
Add -disable-shifter-op to disable isel of shifter ops. On Cortex-a9 the shifts cost extra instructions so it might be better to emit them separately to take advantage of dual-issues.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109934 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd a check in the ARM disassembler for NEON instructions that would
Bob Wilson [Fri, 30 Jul 2010 23:27:59 +0000 (23:27 +0000)]
Add a check in the ARM disassembler for NEON instructions that would
reference registers past the end of the NEON register file, and report them
as invalid instead of asserting when trying to print them.  PR7746.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109933 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd a "Compare" flag to the target instruction descriptor. This will be used
Bill Wendling [Fri, 30 Jul 2010 22:48:39 +0000 (22:48 +0000)]
Add a "Compare" flag to the target instruction descriptor. This will be used
later to identify and possibly remove superfluous compare instructions -- those
that are testing for and setting a status flag that should already be set.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109901 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoPPC doesn't supported VLA with large alignment. This was
Dale Johannesen [Fri, 30 Jul 2010 21:09:48 +0000 (21:09 +0000)]
PPC doesn't supported VLA with large alignment.  This was
formerly rejected by the FE, so asserted in the BE; now the FE only
warns, so we treat it as a legitimate fatal error in PPC BE.
This means the test for the feature won't pass, so it's xfail'd.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109892 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMove MaximumAlignment to be a member of the Value class.
Dan Gohman [Fri, 30 Jul 2010 21:07:05 +0000 (21:07 +0000)]
Move MaximumAlignment to be a member of the Value class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109891 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoRevert my last two patches to LVI, which recent changes have exposed a miscompilation in.
Owen Anderson [Fri, 30 Jul 2010 20:56:07 +0000 (20:56 +0000)]
Revert my last two patches to LVI, which recent changes have exposed a miscompilation in.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109889 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd missing newline to debug statement.
Nick Lewycky [Fri, 30 Jul 2010 20:27:01 +0000 (20:27 +0000)]
Add missing newline to debug statement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109886 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoLibCallAliasAnalysis uses multiple inheritance, so it needs to implement
Nick Lewycky [Fri, 30 Jul 2010 20:19:09 +0000 (20:19 +0000)]
LibCallAliasAnalysis uses multiple inheritance, so it needs to implement
getAdjustedAnalysisPointer. Part of a fix to PR7760.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109883 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoA *bunch* of tests for AVX intrinsics
Bruno Cardoso Lopes [Fri, 30 Jul 2010 19:57:56 +0000 (19:57 +0000)]
A *bunch* of tests for AVX intrinsics

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109881 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAdd the __TEXT,__StaticInit section to the list of sections emitted at the
Bob Wilson [Fri, 30 Jul 2010 19:55:47 +0000 (19:55 +0000)]
Add the __TEXT,__StaticInit section to the list of sections emitted at the
beginning on ARM Darwin assembly files so that it won't be placed after
debug sections.  Radar 8252813.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109879 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoSupport all 128-bit AVX vector intrinsics. Most part of them I already
Bruno Cardoso Lopes [Fri, 30 Jul 2010 19:54:33 +0000 (19:54 +0000)]
Support all 128-bit AVX vector intrinsics. Most part of them I already
declared during the addition of the assembler support, the additional
changes are:
- Add missing intrinsics
- Move all SSE conversion instructions in X86InstInfo64.td to the SSE.td file.
- Duplicate some patterns to AVX mode.
- Step into PCMPEST/PCMPIST custom inserter and add AVX versions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109878 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix typo!
Bruno Cardoso Lopes [Fri, 30 Jul 2010 19:41:24 +0000 (19:41 +0000)]
Fix typo!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109877 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoAttempt to fix the llvm-gcc-powerpc-darwin9 buildbot.
Bob Wilson [Fri, 30 Jul 2010 18:52:47 +0000 (18:52 +0000)]
Attempt to fix the llvm-gcc-powerpc-darwin9 buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109876 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoMC: Initialize MCFragment::Offset, noticed by Cameron Esfahani.
Daniel Dunbar [Fri, 30 Jul 2010 18:32:09 +0000 (18:32 +0000)]
MC: Initialize MCFragment::Offset, noticed by Cameron Esfahani.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109875 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoFix -Wmissing-field-initializers warnings.
Daniel Dunbar [Fri, 30 Jul 2010 17:49:04 +0000 (17:49 +0000)]
Fix -Wmissing-field-initializers warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109872 91177308-0d34-0410-b5e6-96231b3b80d8

13 years agoGrammar cop pullover: Corrected and improved some grammar in the description of
John Criswell [Fri, 30 Jul 2010 16:30:28 +0000 (16:30 +0000)]
Grammar cop pullover: Corrected and improved some grammar in the description of
the llvm.memset() intrinsic family.
No content changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109863 91177308-0d34-0410-b5e6-96231b3b80d8