oota-llvm.git
13 years agoUse indirect calls in PowerPC JIT.
Torok Edwin [Wed, 4 Aug 2010 20:47:44 +0000 (20:47 +0000)]
Use indirect calls in PowerPC JIT.

See PR5201. There is no way to know if direct calls will be within the allowed
range for BL. Hence emit all calls as indirect when in JIT mode.
Without this long-running applications will fail to JIT on PowerPC with a
relocation failure.

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

13 years agoFix typo in comment.
Devang Patel [Wed, 4 Aug 2010 20:32:36 +0000 (20:32 +0000)]
Fix typo in comment.

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

13 years agoFix a minor bug which resulted in intermediate calculations
Dan Gohman [Wed, 4 Aug 2010 19:52:50 +0000 (19:52 +0000)]
Fix a minor bug which resulted in intermediate calculations
using wider types than are necessary.

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

13 years agoChange this llvm_unreachable to report_fatal_error, since it can
Dan Gohman [Wed, 4 Aug 2010 18:51:09 +0000 (18:51 +0000)]
Change this llvm_unreachable to report_fatal_error, since it can
be triggered by valid, if dubious, IR.

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

13 years agoTest case for combination of r110234 & r110235.
Devang Patel [Wed, 4 Aug 2010 18:42:46 +0000 (18:42 +0000)]
Test case for combination of r110234 & r110235.

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

13 years agoWhile spilling live registers at the end of block check whether they are used by...
Devang Patel [Wed, 4 Aug 2010 18:42:02 +0000 (18:42 +0000)]
While spilling live registers at the end of block check whether they are used by DBG_VALUE machine instructions or not. If a spilled register is used by DBG_VALUE machine instruction then insert a new DBG_VALUE machine instruction to encode variable's new location on stack.

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

13 years agoIf a variable is spilled by code generator then use DW_OP_fbreg to describe its locat...
Devang Patel [Wed, 4 Aug 2010 18:40:52 +0000 (18:40 +0000)]
If a variable is spilled by code generator then use DW_OP_fbreg to describe its location on stack.

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

13 years agoExperiments show that we can safely increase our unrolling threshold without unduly...
Owen Anderson [Wed, 4 Aug 2010 18:32:46 +0000 (18:32 +0000)]
Experiments show that we can safely increase our unrolling threshold without unduly impacting code size, particularly
since unrolling is not enabled at -Os.

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

13 years agoAdd a note about the changing pass registration interface.
Owen Anderson [Wed, 4 Aug 2010 18:27:08 +0000 (18:27 +0000)]
Add a note about the changing pass registration interface.

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

13 years agoRemove switch for disabling ARM tail calls. They
Dale Johannesen [Wed, 4 Aug 2010 18:07:17 +0000 (18:07 +0000)]
Remove switch for disabling ARM tail calls.  They
seem to be working correctly.  No functional change.

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

13 years agoAdd DEBUG message.
Devang Patel [Wed, 4 Aug 2010 18:06:05 +0000 (18:06 +0000)]
Add DEBUG message.

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

13 years agoFix whitespace.
Dan Gohman [Wed, 4 Aug 2010 17:43:57 +0000 (17:43 +0000)]
Fix whitespace.

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

13 years agoUpdate the polygen grammar for linker_private and linker_private_weak,
Dan Gohman [Wed, 4 Aug 2010 17:01:59 +0000 (17:01 +0000)]
Update the polygen grammar for linker_private and linker_private_weak,
and add comments about major implemented features.

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

13 years agoFix a typo in a comment.
Dan Gohman [Wed, 4 Aug 2010 16:48:36 +0000 (16:48 +0000)]
Fix a typo in a comment.

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

13 years agoPrint a message when a test failure is due to stderr output
Dan Gohman [Wed, 4 Aug 2010 16:42:38 +0000 (16:42 +0000)]
Print a message when a test failure is due to stderr output
alone, rather than just an exit code.

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

13 years agoRemove CVS artifacts.
Dan Gohman [Wed, 4 Aug 2010 16:25:01 +0000 (16:25 +0000)]
Remove CVS artifacts.

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

13 years agoRemove CVS artifacts.
Dan Gohman [Wed, 4 Aug 2010 16:11:24 +0000 (16:11 +0000)]
Remove CVS artifacts.

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

13 years agoDelete scripts which haven't noticed that CVS has gone away.
Dan Gohman [Wed, 4 Aug 2010 16:10:42 +0000 (16:10 +0000)]
Delete scripts which haven't noticed that CVS has gone away.

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

13 years agocvsupdate is gone.
Dan Gohman [Wed, 4 Aug 2010 16:09:01 +0000 (16:09 +0000)]
cvsupdate is gone.

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

13 years agoDelete mkpatch. Everything it does is already done by svn diff by default.
Dan Gohman [Wed, 4 Aug 2010 16:07:22 +0000 (16:07 +0000)]
Delete mkpatch. Everything it does is already done by svn diff by default.

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

13 years agoRemove a link which is no longer relevant.
Dan Gohman [Wed, 4 Aug 2010 15:59:16 +0000 (15:59 +0000)]
Remove a link which is no longer relevant.

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

13 years agoThese tests are no longer stored in *CVS*.
Dan Gohman [Wed, 4 Aug 2010 15:58:01 +0000 (15:58 +0000)]
These tests are no longer stored in *CVS*.

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

13 years agoEnable COFF writer on mingw32 and cygwin.
Benjamin Kramer [Wed, 4 Aug 2010 15:32:40 +0000 (15:32 +0000)]
Enable COFF writer on mingw32 and cygwin.

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

13 years agocall-imm.ll test case regex fix. Patch by Dimitry Andric!
Stuart Hastings [Wed, 4 Aug 2010 15:31:35 +0000 (15:31 +0000)]
call-imm.ll test case regex fix.  Patch by Dimitry Andric!

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

13 years agoMake SPU backend handle insertelement and
Kalle Raiskila [Wed, 4 Aug 2010 13:59:48 +0000 (13:59 +0000)]
Make SPU backend handle insertelement and
store for "half vectors"

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

13 years agoPrint an error message when someone tries -integrated-as on an unsupported target.
Benjamin Kramer [Wed, 4 Aug 2010 13:16:30 +0000 (13:16 +0000)]
Print an error message when someone tries -integrated-as on an unsupported target.

- The COFF backend doesn't support MingW/Cygwin at the moment, it'll report an
  error, but it's still much better than random assertions from the MachO backend.
- We want to make ELF the default eventually, it's what the majority of targets use.

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

13 years agoNote some LLVM 2.7 -> 2.8 APIs that changed / got renamed.
Torok Edwin [Wed, 4 Aug 2010 12:43:22 +0000 (12:43 +0000)]
Note some LLVM 2.7 -> 2.8 APIs that changed / got renamed.

I encountered these while upgrading libclamav.

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

13 years agoAdd a missing function.
Torok Edwin [Wed, 4 Aug 2010 11:42:45 +0000 (11:42 +0000)]
Add a missing function.

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

13 years agoby Alexander Herz:
Gabor Greif [Wed, 4 Aug 2010 10:00:52 +0000 (10:00 +0000)]
by Alexander Herz:

"The CWriter::GetValueName() method does not check if a value as an alias
and emits the alias name which will never be defined in the output .c
file (so the output file fails to compile). This can happen if you have
multiple inheritance with several destructors defined by clang (...D0Ev,
...D1Ev, ...D2Ev)."

-- applied with minor tweaks. Thanks!

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

13 years agoFix build of DataFlow.h
Torok Edwin [Wed, 4 Aug 2010 09:30:20 +0000 (09:30 +0000)]
Fix build of DataFlow.h

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

13 years agoEliminate unnecessary empty string literals.
Dan Gohman [Wed, 4 Aug 2010 01:39:08 +0000 (01:39 +0000)]
Eliminate unnecessary empty string literals.

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

13 years agoFix a comment.
Dan Gohman [Wed, 4 Aug 2010 01:16:35 +0000 (01:16 +0000)]
Fix a comment.

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

13 years agoDon't construct a std::string with a literal "".
Dan Gohman [Wed, 4 Aug 2010 01:14:33 +0000 (01:14 +0000)]
Don't construct a std::string with a literal "".

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

13 years agoDon't print the filename twice in file-not-found errors.
Dan Gohman [Wed, 4 Aug 2010 01:13:48 +0000 (01:13 +0000)]
Don't print the filename twice in file-not-found errors.

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

13 years agoFix a comment typo and add more 256-bit intrinsics
Bruno Cardoso Lopes [Wed, 4 Aug 2010 01:09:40 +0000 (01:09 +0000)]
Fix a comment typo and add more 256-bit intrinsics

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

13 years agoChange the logic which interprets output on stderr as an error so that
Dan Gohman [Wed, 4 Aug 2010 00:12:31 +0000 (00:12 +0000)]
Change the logic which interprets output on stderr as an error so that
it doesn't modify the exit code or the stdout contents, and so that it
doesn't clutter the output with "Command has output on stderr!".

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

13 years agoCombine NEON VABD (absolute difference) intrinsics with ADDs to make VABA
Bob Wilson [Wed, 4 Aug 2010 00:12:08 +0000 (00:12 +0000)]
Combine NEON VABD (absolute difference) intrinsics with ADDs to make VABA
(absolute difference with accumulate) intrinsics.  Radar 8228576.

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

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