oota-llvm.git
15 years agoinline method into its only use and simplify the result.
Chris Lattner [Sat, 28 Feb 2009 20:31:14 +0000 (20:31 +0000)]
inline method into its only use and simplify the result.

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

15 years agosimplify condition
Chris Lattner [Sat, 28 Feb 2009 20:28:50 +0000 (20:28 +0000)]
simplify condition

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

15 years agostart refactoring the .ll printer: introduce a new TypePrinting class
Chris Lattner [Sat, 28 Feb 2009 20:25:14 +0000 (20:25 +0000)]
start refactoring the .ll printer: introduce a new TypePrinting class
and move all related stuff to it.

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

15 years agoadd a stub for Roadsend PHP
Chris Lattner [Sat, 28 Feb 2009 18:58:01 +0000 (18:58 +0000)]
add a stub for Roadsend PHP

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

15 years agodon't use the word 'aggregate' with constants, it is confusing.
Chris Lattner [Sat, 28 Feb 2009 18:32:25 +0000 (18:32 +0000)]
don't use the word 'aggregate' with constants, it is confusing.

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

15 years agodon't redescribe bitcast constraints in two places. It is not valid to
Chris Lattner [Sat, 28 Feb 2009 18:27:03 +0000 (18:27 +0000)]
don't redescribe bitcast constraints in two places.  It is not valid to
bitcast from one aggregate to another.

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

15 years agoreject 0 element vectors with:
Chris Lattner [Sat, 28 Feb 2009 18:12:41 +0000 (18:12 +0000)]
reject 0 element vectors with:
@a = internal constant void bitcast(<0 x i8> <> to void)
                                     ^

Fixes PR3685

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

15 years agoUpdate this text for first-class aggregates.
Nick Lewycky [Sat, 28 Feb 2009 17:30:06 +0000 (17:30 +0000)]
Update this text for first-class aggregates.

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

15 years agoFix typo. Found by William Moss.
Bill Wendling [Sat, 28 Feb 2009 12:26:34 +0000 (12:26 +0000)]
Fix typo. Found by William Moss.

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

15 years agoThere is a way to specify targets that should succeed. It's the "XTARGET"
Bill Wendling [Sat, 28 Feb 2009 12:11:01 +0000 (12:11 +0000)]
There is a way to specify targets that should succeed. It's the "XTARGET"
keyword.

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

15 years agomake traits more flexible by splitting out node-related fragment
Gabor Greif [Sat, 28 Feb 2009 10:17:32 +0000 (10:17 +0000)]
make traits more flexible by splitting out node-related fragment

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

15 years agoLast commit accidentially deleted this code.
Evan Cheng [Sat, 28 Feb 2009 06:02:14 +0000 (06:02 +0000)]
Last commit accidentially deleted this code.

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

15 years agoAvoid unused parameter warning.
Evan Cheng [Sat, 28 Feb 2009 01:10:24 +0000 (01:10 +0000)]
Avoid unused parameter warning.

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

15 years agoUnable to say "TARGET: *-*-darwin*"; falling back to "XFAIL: linux,ia64,alpha,sparc".
Stuart Hastings [Sat, 28 Feb 2009 00:56:37 +0000 (00:56 +0000)]
Unable to say "TARGET: *-*-darwin*"; falling back to "XFAIL: linux,ia64,alpha,sparc".

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

15 years agoAdded another darwin subtarget
Mon P Wang [Sat, 28 Feb 2009 00:25:30 +0000 (00:25 +0000)]
Added another darwin subtarget

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

15 years agoTestcase to insure C strings go to the cstring
Stuart Hastings [Fri, 27 Feb 2009 22:35:12 +0000 (22:35 +0000)]
Testcase to insure C strings go to the cstring
section. Darwin-specific.

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

15 years agoIt is possible that subprgoram definition is only encoding return value directly...
Devang Patel [Fri, 27 Feb 2009 18:05:21 +0000 (18:05 +0000)]
It is possible that subprgoram definition is only encoding return value directly, instsad of an DIArray of all argument types.

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

15 years agogroup friendship
Gabor Greif [Fri, 27 Feb 2009 15:46:23 +0000 (15:46 +0000)]
group friendship

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

15 years agoRefactor TLS code and add some tests. The tests and expected results are:
Rafael Espindola [Fri, 27 Feb 2009 13:37:18 +0000 (13:37 +0000)]
Refactor TLS code and add some tests. The tests and expected results are:

 pic |  declaration | linkage  | visibility |

!pic |  declaration | external | default    | tls1.ll     tls2.ll     | local exec
 pic |  declaration | external | default    | tls1-pic.ll tls2-pic.ll | general dynamic
!pic | !declaration | external | default    | tls3.ll     tls4.ll     | initial exec
 pic | !declaration | external | default    | tls3-pic.ll tls4-pic.ll | general dynamic

!pic |  declaration | external | hidden     | tls7.ll     tls8.ll     | local exec
 pic |  declaration | external | hidden     | X                       | local dynamic
!pic | !declaration | external | hidden     | tls9.ll     tls10.ll    | local exec
 pic | !declaration | external | hidden     | X                       | local dynamic

!pic |  declaration | internal | default    | tls5.ll     tls6.ll     | local exec
 pic |  declaration | internal | default    | X                       | local dynamic

The ones marked with an X have not been implemented since local dynamic is not implemented.

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

15 years agodocument ilist_traits
Gabor Greif [Fri, 27 Feb 2009 13:28:07 +0000 (13:28 +0000)]
document ilist_traits

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

15 years agoExpand a bit on iplist. If you are more expert on this class, please review!
Gabor Greif [Fri, 27 Feb 2009 12:02:19 +0000 (12:02 +0000)]
Expand a bit on iplist. If you are more expert on this class, please review!

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

15 years agoupdate ilist documentation and add some blurb on ilist_node
Gabor Greif [Fri, 27 Feb 2009 11:37:41 +0000 (11:37 +0000)]
update ilist documentation and add some blurb on ilist_node

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

15 years agoupdate year
Gabor Greif [Fri, 27 Feb 2009 11:28:46 +0000 (11:28 +0000)]
update year

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

15 years agofix comments
Gabor Greif [Fri, 27 Feb 2009 09:33:37 +0000 (09:33 +0000)]
fix comments

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

15 years agoIntroduce a new technique for merging BasicBlock with Instruction sentinel by superpo...
Gabor Greif [Fri, 27 Feb 2009 08:41:37 +0000 (08:41 +0000)]
Introduce a new technique for merging BasicBlock with Instruction sentinel by superposition.
This looks dangerous, but isn't because the sentinel is accessed in special way only,
namely the Next and Prev fields of it, and these are guaranteed to exist.

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

15 years agoUpdate release notes for static analyzer.
Ted Kremenek [Fri, 27 Feb 2009 07:01:32 +0000 (07:01 +0000)]
Update release notes for static analyzer.

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

15 years ago'append_cmd' should split its argument.
Mikhail Glushenkov [Fri, 27 Feb 2009 06:46:55 +0000 (06:46 +0000)]
'append_cmd' should split its argument.

Makes '(append_cmd "-foo a b c")' work.

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

15 years agoSilence compiler warning about use of uninitialized variables (in reality these
Nick Lewycky [Fri, 27 Feb 2009 06:37:39 +0000 (06:37 +0000)]
Silence compiler warning about use of uninitialized variables (in reality these
are always set by reference on the path that uses them.) No functional change.

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

15 years agoFix compiler warning about uninitialized variables. No functional change.
Nick Lewycky [Fri, 27 Feb 2009 06:29:31 +0000 (06:29 +0000)]
Fix compiler warning about uninitialized variables. No functional change.

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

15 years agoAlignment values for i64 and f64 on ppc64 were wrong,
Dale Johannesen [Fri, 27 Feb 2009 00:56:35 +0000 (00:56 +0000)]
Alignment values for i64 and f64 on ppc64 were wrong,
possibly for the reason suggested by the comment.
No wonder it didn't work very well.  This unblocks
bootstrap with assertions on ppc.

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

15 years agoMake sure this test passes on linux-ppc.
Evan Cheng [Fri, 27 Feb 2009 00:51:50 +0000 (00:51 +0000)]
Make sure this test passes on linux-ppc.

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

15 years agoUpdate another test for the LoopInfo::print changes.
Dan Gohman [Fri, 27 Feb 2009 00:20:19 +0000 (00:20 +0000)]
Update another test for the LoopInfo::print changes.

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

15 years agoUpdate this test for the LoopInfo::print changes.
Dan Gohman [Fri, 27 Feb 2009 00:17:49 +0000 (00:17 +0000)]
Update this test for the LoopInfo::print changes.

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

15 years agoMake LoopInfo::print() identify header, exit, and latch blocks,
Dan Gohman [Fri, 27 Feb 2009 00:05:54 +0000 (00:05 +0000)]
Make LoopInfo::print() identify header, exit, and latch blocks,
and print the loop depth.

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

15 years agoMachineLICM CSE should match destination register classes; avoid hoisting implicit_def's.
Evan Cheng [Fri, 27 Feb 2009 00:02:22 +0000 (00:02 +0000)]
MachineLICM CSE should match destination register classes; avoid hoisting implicit_def's.

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

15 years agodrop some un-edited text for pure and ldc in here.
Chris Lattner [Thu, 26 Feb 2009 22:33:38 +0000 (22:33 +0000)]
drop some un-edited text for pure and ldc in here.

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

15 years agoremove deleteNode definition, it is inherited in an identical fashion
Gabor Greif [Thu, 26 Feb 2009 19:37:54 +0000 (19:37 +0000)]
remove deleteNode definition, it is inherited in an identical fashion

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

15 years agomake sure that make fully evaluates variables when determining how compile_c and
Chris Lattner [Thu, 26 Feb 2009 19:19:26 +0000 (19:19 +0000)]
make sure that make fully evaluates variables when determining how compile_c and
friends should work.  This fixes 2006-11-30-Pubnames.cpp and friends on darwin
with the new -mmacosx-version-min change.

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

15 years agoFix universal builds to not use -XCClinker (a libtool thing) now that
Chris Lattner [Thu, 26 Feb 2009 19:08:30 +0000 (19:08 +0000)]
Fix universal builds to not use -XCClinker (a libtool thing) now that
libtool doesn't exist.

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

15 years agothese utils don't need exports.
Chris Lattner [Thu, 26 Feb 2009 19:02:23 +0000 (19:02 +0000)]
these utils don't need exports.

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

15 years agodisable exports from a bunch more tools, those without plugins.
Chris Lattner [Thu, 26 Feb 2009 19:01:11 +0000 (19:01 +0000)]
disable exports from a bunch more tools, those without plugins.

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

15 years agono really, use the right path.
Chris Lattner [Thu, 26 Feb 2009 18:38:40 +0000 (18:38 +0000)]
no really, use the right path.

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

15 years agoSearch for the export map in a place that it can be found.
Chris Lattner [Thu, 26 Feb 2009 18:37:59 +0000 (18:37 +0000)]
Search for the export map in a place that it can be found.

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

15 years agouse TOOL_NO_EXPORTS, this shrinks the llvm-as binary from 1825296 to
Chris Lattner [Thu, 26 Feb 2009 18:29:42 +0000 (18:29 +0000)]
use TOOL_NO_EXPORTS, this shrinks the llvm-as binary from 1825296 to
1662184 bytes (~10%)

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

15 years agostrip exported symbols from tools that build with TOOL_NO_EXPORTS=1.
Chris Lattner [Thu, 26 Feb 2009 17:47:49 +0000 (17:47 +0000)]
strip exported symbols from tools that build with TOOL_NO_EXPORTS=1.

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

15 years agopass -mmacosx-version-min to the compiler and linker, which makes the build
Chris Lattner [Thu, 26 Feb 2009 17:44:38 +0000 (17:44 +0000)]
pass -mmacosx-version-min to the compiler and linker, which makes the build
substantially happier on some versions of Mac OS/X.

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

15 years agoAnother great year for LLVM!
John Criswell [Thu, 26 Feb 2009 15:17:13 +0000 (15:17 +0000)]
Another great year for LLVM!

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

15 years agoTabs to spaces presto chango! Pointed out by Duncan Sands.
Nick Lewycky [Thu, 26 Feb 2009 09:08:43 +0000 (09:08 +0000)]
Tabs to spaces presto chango! Pointed out by Duncan Sands.

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

15 years agoFix typo.
Nick Lewycky [Thu, 26 Feb 2009 08:48:14 +0000 (08:48 +0000)]
Fix typo.

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

15 years agoFix typo!
Nick Lewycky [Thu, 26 Feb 2009 08:03:36 +0000 (08:03 +0000)]
Fix typo!

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

15 years agoForce 'llvm-config' to go first, optionally followed by lto and gold mixed in
Nick Lewycky [Thu, 26 Feb 2009 07:56:49 +0000 (07:56 +0000)]
Force 'llvm-config' to go first, optionally followed by lto and gold mixed in
with the rest of the parallel directories.

Build lto when possible on all platforms. Make gold to explicitly depend on
libLTO.

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

15 years agoRemove libtool.
Nick Lewycky [Thu, 26 Feb 2009 07:44:16 +0000 (07:44 +0000)]
Remove libtool.

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

15 years agopic16 notes from Sanjiv. Just dumped in for now, will rearrange later.
Chris Lattner [Thu, 26 Feb 2009 07:32:11 +0000 (07:32 +0000)]
pic16 notes from Sanjiv.  Just dumped in for now, will rearrange later.

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

15 years agofinal random and incoherent notes after making it through all the commits.
Chris Lattner [Thu, 26 Feb 2009 07:29:17 +0000 (07:29 +0000)]
final random and incoherent notes after making it through all the commits.
Next step: making them more coherent.

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

15 years agoIgnore dbg info intrinsics when folding conditional branch to
Zhou Sheng [Thu, 26 Feb 2009 06:56:37 +0000 (06:56 +0000)]
Ignore dbg info intrinsics when folding conditional branch to
conditional branch predecessors.

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

15 years agoAdd the function attributes pass during LTO time.
Nick Lewycky [Thu, 26 Feb 2009 06:56:16 +0000 (06:56 +0000)]
Add the function attributes pass during LTO time.

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

15 years agomore notes.
Chris Lattner [Thu, 26 Feb 2009 06:47:09 +0000 (06:47 +0000)]
more notes.

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

15 years agoadd some notes from Nicolas G.
Chris Lattner [Thu, 26 Feb 2009 05:20:36 +0000 (05:20 +0000)]
add some notes from Nicolas G.

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

15 years agoEnable stack slot coloring DCE. Evan's spiller fixes were needed before this could...
Owen Anderson [Thu, 26 Feb 2009 04:47:57 +0000 (04:47 +0000)]
Enable stack slot coloring DCE.  Evan's spiller fixes were needed before this could happen.

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

15 years agoADDS{D|S}rr_Int and MULS{D|S}rr_Int are not commutable. The users of these intrinsics...
Evan Cheng [Thu, 26 Feb 2009 03:12:02 +0000 (03:12 +0000)]
ADDS{D|S}rr_Int and MULS{D|S}rr_Int are not commutable. The users of these intrinsics expect the high bits will not be modified.

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

15 years agoThe last commit was overly conservative. It's ok to reuse value that's already marked...
Evan Cheng [Thu, 26 Feb 2009 03:02:21 +0000 (03:02 +0000)]
The last commit was overly conservative. It's ok to reuse value that's already marked livein.

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

15 years agoIf an available register falls through to a succ block, unset the last kill. Sorry...
Evan Cheng [Thu, 26 Feb 2009 02:30:42 +0000 (02:30 +0000)]
If an available register falls through to a succ block, unset the last kill. Sorry, it's impossible to reduce a sensible test case. It basically requires the moon and stars to align in order to cause a failure.

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

15 years agoFix a duplicated word in a comment.
Bob Wilson [Thu, 26 Feb 2009 00:58:09 +0000 (00:58 +0000)]
Fix a duplicated word in a comment.

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

15 years agoFix a typo that prevents hello.mm from running (and runs hello.m twice).
Julien Lerouge [Thu, 26 Feb 2009 00:16:33 +0000 (00:16 +0000)]
Fix a typo that prevents hello.mm from running (and runs hello.m twice).

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

15 years agoRevert BuildVectorSDNode related patches: 65426, 65427, and 65296.
Evan Cheng [Wed, 25 Feb 2009 22:49:59 +0000 (22:49 +0000)]
Revert BuildVectorSDNode related patches: 65426, 65427, and 65296.

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

15 years agoFix big-endian codegen bug. We're splitting up
Dale Johannesen [Wed, 25 Feb 2009 22:39:13 +0000 (22:39 +0000)]
Fix big-endian codegen bug.  We're splitting up
overly long ints, e.g. i96, into pieces at PHIs
and the nodes that feed into them; however big-endian
reverses the order of the pieces (for some reason), and
wasn't doing it the same way on both sides, so
the pieces didn't match and runtime failures ensued.
Fixes 188.ammp and sqlite3 on ppc32.

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

15 years agoPrint variable's display name in dwarf DIE.
Devang Patel [Wed, 25 Feb 2009 19:41:35 +0000 (19:41 +0000)]
Print variable's display name in dwarf DIE.

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

15 years agoFix PR3667
Chris Lattner [Wed, 25 Feb 2009 18:20:01 +0000 (18:20 +0000)]
Fix PR3667

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

15 years agoCheck that records with a known constant size are not
Duncan Sands [Wed, 25 Feb 2009 18:10:49 +0000 (18:10 +0000)]
Check that records with a known constant size are not
copied field by LLVM field if the record has a variable
sized field in it.  The problem is that the LLVM field
will not completely cover the variable sized gcc field.

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

15 years agoDon't block basic block with only SwitchInst to fold into predecessors.
Zhou Sheng [Wed, 25 Feb 2009 15:34:27 +0000 (15:34 +0000)]
Don't block basic block with only SwitchInst to fold into predecessors.

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

15 years agoFlesh out the Ada section a little.
Duncan Sands [Wed, 25 Feb 2009 11:59:06 +0000 (11:59 +0000)]
Flesh out the Ada section a little.

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

15 years agoThe C backend does not support arbitrary precision integers.
Duncan Sands [Wed, 25 Feb 2009 11:51:54 +0000 (11:51 +0000)]
The C backend does not support arbitrary precision integers.

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

15 years agoNote on new type legalizer.
Duncan Sands [Wed, 25 Feb 2009 11:50:08 +0000 (11:50 +0000)]
Note on new type legalizer.

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

15 years agoAdd note on support for arbitrary precision integers.
Duncan Sands [Wed, 25 Feb 2009 11:37:39 +0000 (11:37 +0000)]
Add note on support for arbitrary precision integers.

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

15 years agomore notes.
Chris Lattner [Wed, 25 Feb 2009 07:32:53 +0000 (07:32 +0000)]
more notes.

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

15 years agoClean up dwarf writer, part 1. This eliminated the horrible recursive getGlobalVariab...
Evan Cheng [Wed, 25 Feb 2009 07:04:34 +0000 (07:04 +0000)]
Clean up dwarf writer, part 1. This eliminated the horrible recursive getGlobalVariablesUsing and replaced it something readable. It eliminated use of slow UniqueVector and replaced it with StringMap, SmallVector, and DenseMap, etc. It also fixed some non-deterministic behavior.

This is a very minor compile time win.

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

15 years agoAdd a totally synthetic situation I came up with while looking at a bug in
Nick Lewycky [Wed, 25 Feb 2009 06:52:48 +0000 (06:52 +0000)]
Add a totally synthetic situation I came up with while looking at a bug in
related code.

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

15 years agorandom notes
Chris Lattner [Wed, 25 Feb 2009 06:34:50 +0000 (06:34 +0000)]
random notes

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

15 years agoRecommend against using Gold to build LLVM.
Nick Lewycky [Wed, 25 Feb 2009 06:29:47 +0000 (06:29 +0000)]
Recommend against using Gold to build LLVM.

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

15 years agodon't know if there is a vmkit release to match 2.5
Chris Lattner [Wed, 25 Feb 2009 05:45:05 +0000 (05:45 +0000)]
don't know if there is a vmkit release to match 2.5

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

15 years agoupdate clang section
Chris Lattner [Wed, 25 Feb 2009 05:09:54 +0000 (05:09 +0000)]
update clang section

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

15 years agorip out llvm 2.4 details to make room for 2.5
Chris Lattner [Wed, 25 Feb 2009 04:41:31 +0000 (04:41 +0000)]
rip out llvm 2.4 details to make room for 2.5

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

15 years agoExpand tabs to spaces (overlooked in previous commit)
Scott Michel [Wed, 25 Feb 2009 03:57:49 +0000 (03:57 +0000)]
Expand tabs to spaces (overlooked in previous commit)

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

15 years agoRemove all "cached" data from BuildVectorSDNode, preferring to retrieve
Scott Michel [Wed, 25 Feb 2009 03:12:50 +0000 (03:12 +0000)]
Remove all "cached" data from BuildVectorSDNode, preferring to retrieve
results via reference parameters.

This patch also appears to fix Evan's reported problem supplied as a
reduced bugpoint test case.

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

15 years agoAdded support to have TableGen provide information if an intrinsic (core
Mon P Wang [Tue, 24 Feb 2009 23:17:49 +0000 (23:17 +0000)]
Added support to have TableGen provide information if an intrinsic (core
or target) can be overloaded or not.

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

15 years agoIf compile unit's language is not set then don't crash while dump'ing compile unit.
Devang Patel [Tue, 24 Feb 2009 23:15:09 +0000 (23:15 +0000)]
If compile unit's language is not set then don't crash while dump'ing compile unit.

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

15 years agoExtension of GEP in constant folder was broken (apparently this code
Daniel Dunbar [Tue, 24 Feb 2009 19:10:46 +0000 (19:10 +0000)]
Extension of GEP in constant folder was broken (apparently this code
has never been run!).
 - Sorry, don't know how to make an LLVM test case for this.

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

15 years agoRename ScalarEvolution's getIterationCount to getBackedgeTakenCount,
Dan Gohman [Tue, 24 Feb 2009 18:55:53 +0000 (18:55 +0000)]
Rename ScalarEvolution's getIterationCount to getBackedgeTakenCount,
to more accurately describe what it does. Expand its doxygen comment
to describe what the backedge-taken count is and how it differs
from the actual iteration count of the loop. Adjust names and
comments in associated code accordingly.

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

15 years agoOverhaul my earlier submission due to feedback. It's a large patch, but most of
Bill Wendling [Tue, 24 Feb 2009 08:30:20 +0000 (08:30 +0000)]
Overhaul my earlier submission due to feedback. It's a large patch, but most of
them are generic changes.

- Use the "fast" flag that's already being passed into the asm printers instead
  of shoving it into the DwarfWriter.

- Instead of calling "MI->getParent()->getParent()" for every MI, set the
  machine function when calling "runOnMachineFunction" in the asm printers.

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

15 years agoAdd a debugging option for SSC DCE.
Owen Anderson [Tue, 24 Feb 2009 05:44:18 +0000 (05:44 +0000)]
Add a debugging option for SSC DCE.

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

15 years ago- Use the "Fast" flag instead of "OptimizeForSize" to determine whether to emit
Bill Wendling [Tue, 24 Feb 2009 02:35:30 +0000 (02:35 +0000)]
- Use the "Fast" flag instead of "OptimizeForSize" to determine whether to emit
  a DBG_LABEL or not. We want to fall back to the original way of emitting debug
  info when we're in -O0/-fast mode.
- Add plumbing in to pass the "Fast" flag to places that need it.
- XFAIL DebugInfo/deaddebuglabel.ll. This is finding 11 labels instead of 8. I
  need to investigate still.

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

15 years agoAdd a testcase for the problem fixed in r65289.
Dan Gohman [Tue, 24 Feb 2009 02:17:42 +0000 (02:17 +0000)]
Add a testcase for the problem fixed in r65289.

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

15 years agoFix a ValueTracking rule: RHS means operand 1, not 0. Add a simple
Dan Gohman [Tue, 24 Feb 2009 02:00:40 +0000 (02:00 +0000)]
Fix a ValueTracking rule: RHS means operand 1, not 0. Add a simple
ashr instcombine to help expose this code. And apply the fix to
SelectionDAG's copy of this code too.

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

15 years agoGeneralize the ChangeCompareStride code, in preparation for
Dan Gohman [Tue, 24 Feb 2009 01:58:00 +0000 (01:58 +0000)]
Generalize the ChangeCompareStride code, in preparation for
handling non-constant strides. No functionality change.

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

15 years agoPreserve the DominanceFrontier analysis in the LoopDeletion pass.
Dan Gohman [Tue, 24 Feb 2009 01:21:53 +0000 (01:21 +0000)]
Preserve the DominanceFrontier analysis in the LoopDeletion pass.

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

15 years agogdb uses DW_AT_prototyped to identify K&R style in C based languages.
Devang Patel [Tue, 24 Feb 2009 00:52:19 +0000 (00:52 +0000)]
gdb uses DW_AT_prototyped to identify K&R style in C based languages.
This fixes objc.dg/dwarf-prototypes.m scan-assembler DW_AT_prototyped from llvmgcc42 test suite.

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

15 years agoUn-XFAIL this test.
Bill Wendling [Tue, 24 Feb 2009 00:37:28 +0000 (00:37 +0000)]
Un-XFAIL this test.

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

15 years agoWhile folding unconditional return move DbgRegionEndInst into the predecessor, instea...
Devang Patel [Tue, 24 Feb 2009 00:05:16 +0000 (00:05 +0000)]
While folding unconditional return move DbgRegionEndInst into the predecessor, instead of removing it. This fixes following tests from llvmgcc42 testsuite.

gcc.c-torture/execute/20000605-3.c
gcc.c-torture/execute/20020619-1.c
gcc.c-torture/execute/20030920-1.c
gcc.c-torture/execute/loop-ivopts-1.c

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

15 years agoIf there is not any debug info available for any global variables and any subprograms...
Devang Patel [Tue, 24 Feb 2009 00:02:15 +0000 (00:02 +0000)]
If there is not any debug info available for any global variables and any subprograms then there is not any debug info to emit.

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

15 years agoBack out the change in 64918 that used sign-extensions when promoting
Dan Gohman [Mon, 23 Feb 2009 23:20:35 +0000 (23:20 +0000)]
Back out the change in 64918 that used sign-extensions when promoting
trip counts that use signed comparisons. It's not obviously the best
approach for preserving trip count information, and at any rate there
isn't anything in the tree right now that makes use of that, so for
now always using zero-extensions is preferable.

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