oota-llvm.git
15 years agoDon't barf on 32 bit platforms if llvm-gcc is
Duncan Sands [Mon, 13 Oct 2008 19:56:36 +0000 (19:56 +0000)]
Don't barf on 32 bit platforms if llvm-gcc is
not built with 64 bit support.  Since this test
passes without -m64 on x86-32-linux, just remove
the -m64.

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

15 years agoFIX PR2794. Make sure SIGN_EXTEND_INREG nodes introduced by LegalizeSetCCOperands...
Evan Cheng [Mon, 13 Oct 2008 18:46:18 +0000 (18:46 +0000)]
FIX PR2794. Make sure SIGN_EXTEND_INREG nodes introduced by LegalizeSetCCOperands are leglized. Patch by Richard Pennington.

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

15 years agoMarkModRef -> AddReadAttrs.
Duncan Sands [Mon, 13 Oct 2008 18:42:43 +0000 (18:42 +0000)]
MarkModRef -> AddReadAttrs.

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

15 years agoAlso update sub-register intervals after a trivial computation is rematt'ed for a...
Evan Cheng [Mon, 13 Oct 2008 18:35:52 +0000 (18:35 +0000)]
Also update sub-register intervals after a trivial computation is rematt'ed for a copy instruction. PR2775.

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

15 years agoAdd some llvm-gcc changes that may be worth
Duncan Sands [Mon, 13 Oct 2008 18:33:28 +0000 (18:33 +0000)]
Add some llvm-gcc changes that may be worth
detailing.

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

15 years agoAdd a test case for _Complex passed as a FCA.
Evan Cheng [Mon, 13 Oct 2008 18:13:07 +0000 (18:13 +0000)]
Add a test case for _Complex passed as a FCA.

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

15 years agogive the static analyzer its own section.
Chris Lattner [Mon, 13 Oct 2008 18:11:54 +0000 (18:11 +0000)]
give the static analyzer its own section.

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

15 years agomore rearranging.
Chris Lattner [Mon, 13 Oct 2008 18:01:01 +0000 (18:01 +0000)]
more rearranging.

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

15 years agomove major changes down.
Chris Lattner [Mon, 13 Oct 2008 17:57:36 +0000 (17:57 +0000)]
move major changes down.

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

15 years agoFix typo. Add note on trampoline support.
Duncan Sands [Mon, 13 Oct 2008 17:32:15 +0000 (17:32 +0000)]
Fix typo.  Add note on trampoline support.

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

15 years agoClarify meaning of copyRegToReg's return value.
Evan Cheng [Mon, 13 Oct 2008 17:30:56 +0000 (17:30 +0000)]
Clarify meaning of copyRegToReg's return value.

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

15 years agoUpdate the Ada part.
Duncan Sands [Mon, 13 Oct 2008 17:27:23 +0000 (17:27 +0000)]
Update the Ada part.

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

15 years agofinal note.
Chris Lattner [Mon, 13 Oct 2008 17:12:51 +0000 (17:12 +0000)]
final note.

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

15 years agofix some crazily long lines.
Chris Lattner [Mon, 13 Oct 2008 16:55:18 +0000 (16:55 +0000)]
fix some crazily long lines.

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

15 years agoMake InstructionCombining::getBitCastOperand() recognize GEP instructions and
Matthijs Kooijman [Mon, 13 Oct 2008 15:17:01 +0000 (15:17 +0000)]
Make InstructionCombining::getBitCastOperand() recognize GEP instructions and
constant expression with all zero indices as being the same as a bitcast.

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

15 years agoImprove the description on the getelementptr instruction. It should now better
Matthijs Kooijman [Mon, 13 Oct 2008 13:44:15 +0000 (13:44 +0000)]
Improve the description on the getelementptr instruction. It should now better
define what the instruction does. This also makes it clear that getelementptr
can index into a vector type.

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

15 years ago * Make TargetLowering not crash when TargetMachine::getTargetAsmInfo() returns
Matthijs Kooijman [Mon, 13 Oct 2008 12:41:46 +0000 (12:41 +0000)]
 * Make TargetLowering not crash when TargetMachine::getTargetAsmInfo() returns
   null. This assumes that any target that does not have AsmInfo, does not
   support "LocAndDot".

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

15 years agoMake MachineFunction not crash when TargetMachine::getRegisterInfo() returns
Matthijs Kooijman [Mon, 13 Oct 2008 12:37:16 +0000 (12:37 +0000)]
Make MachineFunction not crash when TargetMachine::getRegisterInfo() returns
NULL, but just hide some debug output then.

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

15 years agofix typo's
Gabor Greif [Mon, 13 Oct 2008 10:28:12 +0000 (10:28 +0000)]
fix typo's

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

15 years agoremove a deprecated internal interface
Gabor Greif [Mon, 13 Oct 2008 10:25:27 +0000 (10:25 +0000)]
remove a deprecated internal interface

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

15 years agodo not use deprecated interfaces
Gabor Greif [Mon, 13 Oct 2008 10:21:17 +0000 (10:21 +0000)]
do not use deprecated interfaces

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

15 years agoignore the standard output dirs
Gabor Greif [Mon, 13 Oct 2008 09:38:08 +0000 (09:38 +0000)]
ignore the standard output dirs

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

15 years agoDisallow the construction of SCEVs with could-not-compute operands. Catch CNCs
Nick Lewycky [Mon, 13 Oct 2008 03:58:02 +0000 (03:58 +0000)]
Disallow the construction of SCEVs with could-not-compute operands. Catch CNCs
returned by BinomialCoefficient and don't try to operate with them. This
replaces the previous fix for PR2857.

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

15 years agoAdd whitespace before a parenthesis.
Mikhail Glushenkov [Mon, 13 Oct 2008 02:46:01 +0000 (02:46 +0000)]
Add whitespace before a parenthesis.

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

15 years agoAdd a note on llvmc2 plugins + remove some trailing whitespace (my Emacs does this...
Mikhail Glushenkov [Mon, 13 Oct 2008 02:08:34 +0000 (02:08 +0000)]
Add a note on llvmc2 plugins + remove some trailing whitespace (my Emacs does this automatically).

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

15 years agocalls can be supported.
Chris Lattner [Mon, 13 Oct 2008 01:59:13 +0000 (01:59 +0000)]
calls can be supported.

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

15 years agomore notes
Chris Lattner [Sun, 12 Oct 2008 22:57:58 +0000 (22:57 +0000)]
more notes

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

15 years agoChange TAG_ names to DW_TAG for gcc (testsuite) compatibility.
Dale Johannesen [Sun, 12 Oct 2008 21:23:01 +0000 (21:23 +0000)]
Change TAG_ names to DW_TAG for gcc (testsuite) compatibility.

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

15 years agoFix a bug in live-in detection that caused lost-copy problems to show up.
Owen Anderson [Sun, 12 Oct 2008 20:39:30 +0000 (20:39 +0000)]
Fix a bug in live-in detection that caused lost-copy problems to show up.

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

15 years agoadd some more notes
Chris Lattner [Sun, 12 Oct 2008 19:47:48 +0000 (19:47 +0000)]
add some more notes

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

15 years agothis was to be removed after 2.4 branched.
Chris Lattner [Sun, 12 Oct 2008 18:57:09 +0000 (18:57 +0000)]
this was to be removed after 2.4 branched.

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

15 years agoRemove "long" variants so these will pass on a 64-bit host.
Dale Johannesen [Sun, 12 Oct 2008 18:40:49 +0000 (18:40 +0000)]
Remove "long" variants so these will pass on a 64-bit host.

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

15 years agoadd some notes
Chris Lattner [Sun, 12 Oct 2008 18:30:33 +0000 (18:30 +0000)]
add some notes

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

15 years agoUpdate size of inst correctly with segment override.
Anton Korobeynikov [Sun, 12 Oct 2008 10:30:11 +0000 (10:30 +0000)]
Update size of inst correctly with segment override.

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

15 years agoAdd special-case code to allow null-guards on calls to malloc.
Owen Anderson [Sun, 12 Oct 2008 08:10:46 +0000 (08:10 +0000)]
Add special-case code to allow null-guards on calls to malloc.

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

15 years agoMake Escape Analysis work for any pointer.
Owen Anderson [Sun, 12 Oct 2008 07:33:29 +0000 (07:33 +0000)]
Make Escape Analysis work for any pointer.

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

15 years agoAdd EscapeAnalysis.
Owen Anderson [Sun, 12 Oct 2008 06:49:21 +0000 (06:49 +0000)]
Add EscapeAnalysis.

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

15 years agoChange Dwarf comments starting with AT_ to DW_AT_ to
Dale Johannesen [Sun, 12 Oct 2008 06:20:47 +0000 (06:20 +0000)]
Change Dwarf comments starting with AT_ to DW_AT_ to
match gcc.  Helps with the testsuite.

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

15 years agoFix crashes and infinite loops.
Owen Anderson [Sun, 12 Oct 2008 06:03:38 +0000 (06:03 +0000)]
Fix crashes and infinite loops.

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

15 years agoDuncan convinced me that it's not possible to transform control-based escapes into
Owen Anderson [Sun, 12 Oct 2008 03:59:45 +0000 (03:59 +0000)]
Duncan convinced me that it's not possible to transform control-based escapes into
data-based ones.  Just be conservative when analyzing control-based escapes.

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

15 years agofix typo
Chris Lattner [Sat, 11 Oct 2008 23:59:03 +0000 (23:59 +0000)]
fix typo

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

15 years agoFix PR2697 by rewriting the '(X / pos) op neg' logic. This also changes
Chris Lattner [Sat, 11 Oct 2008 22:55:00 +0000 (22:55 +0000)]
Fix PR2697 by rewriting the '(X / pos) op neg' logic.  This also changes
a couple other cases for clarity, but shouldn't affect correctness.

Patch by Eli Friedman!

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

15 years agoupdate win32 project file, patch provided by OvermindDL1 on llvmdev.
Chris Lattner [Sat, 11 Oct 2008 22:14:59 +0000 (22:14 +0000)]
update win32 project file, patch provided by OvermindDL1 on llvmdev.

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

15 years agoChange CALLSEQ_BEGIN and CALLSEQ_END to take TargetConstant's as
Chris Lattner [Sat, 11 Oct 2008 22:08:30 +0000 (22:08 +0000)]
Change CALLSEQ_BEGIN and CALLSEQ_END to take TargetConstant's as
parameters instead of raw Constants.  This prevents the constants from
being selected by the isel pass, fixing PR2735.

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

15 years agorearrange some code.
Chris Lattner [Sat, 11 Oct 2008 22:07:19 +0000 (22:07 +0000)]
rearrange some code.

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

15 years agorandom cleanup
Chris Lattner [Sat, 11 Oct 2008 22:06:50 +0000 (22:06 +0000)]
random cleanup

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

15 years agoAdd API changes which affected me to release notes:
Daniel Dunbar [Sat, 11 Oct 2008 21:26:56 +0000 (21:26 +0000)]
Add API changes which affected me to release notes:
 - DbgStopPointInst
 - Attributes (needs filling in)

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

15 years agoFix comment typo.
Duncan Sands [Sat, 11 Oct 2008 19:34:24 +0000 (19:34 +0000)]
Fix comment typo.

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

15 years agoAdd ability to override segment (mostly for code emitter purposes).
Anton Korobeynikov [Sat, 11 Oct 2008 19:09:15 +0000 (19:09 +0000)]
Add ability to override segment (mostly for code emitter purposes).

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

15 years agoAdd GCC 4.1.2 from Debian to known bad GCC list.
Daniel Dunbar [Sat, 11 Oct 2008 18:40:33 +0000 (18:40 +0000)]
Add GCC 4.1.2 from Debian to known bad GCC list.

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

15 years agoNote EH stuff for x86-64/linux
Anton Korobeynikov [Sat, 11 Oct 2008 18:27:16 +0000 (18:27 +0000)]
Note EH stuff for x86-64/linux

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

15 years agoWe do support PIC on x86-64/linux
Anton Korobeynikov [Sat, 11 Oct 2008 18:27:00 +0000 (18:27 +0000)]
We do support PIC on x86-64/linux

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

15 years agoStrip out 2.3 info, make space for 2.4 info. I'd appreciate it if
Chris Lattner [Sat, 11 Oct 2008 18:18:28 +0000 (18:18 +0000)]
Strip out 2.3 info, make space for 2.4 info.  I'd appreciate it if
various component owners could look through and update their areas
in the known-problems section.

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

15 years agoUnbreak DbgStopPointInst::getFileName().
Daniel Dunbar [Sat, 11 Oct 2008 06:40:56 +0000 (06:40 +0000)]
Unbreak DbgStopPointInst::getFileName().

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

15 years agosimplify comparison
Chris Lattner [Sat, 11 Oct 2008 00:08:02 +0000 (00:08 +0000)]
simplify comparison

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

15 years agoFix SSE4.1 roundss, roundsd. While the instructions have
Dale Johannesen [Fri, 10 Oct 2008 23:51:03 +0000 (23:51 +0000)]
Fix SSE4.1 roundss, roundsd.  While the instructions have
the same pattern as roundpd/roundps, the Intel compiler
builtins do not:  rounds* has an extra operand.  Fixes
gcc.target/i386/sse4_1-rounds[sd]-[1234].c

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

15 years agoCheck loop exit predicate properly while eliminating one iteration loop.
Devang Patel [Fri, 10 Oct 2008 22:02:57 +0000 (22:02 +0000)]
Check loop exit predicate properly while eliminating one iteration loop.
This patch fixes PR 2869

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

15 years agoFix a thinko and unbreak sparc default CC
Anton Korobeynikov [Fri, 10 Oct 2008 21:47:37 +0000 (21:47 +0000)]
Fix a thinko and unbreak sparc default CC

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

15 years agoRemove some overzealous checks that were rejecting
Dale Johannesen [Fri, 10 Oct 2008 21:04:42 +0000 (21:04 +0000)]
Remove some overzealous checks that were rejecting
valid comments in inline assembly.
gcc.target/i386/20011009-1.c

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

15 years agoExtend set of return registers on sparc until someone will implement MRV support...
Anton Korobeynikov [Fri, 10 Oct 2008 20:30:14 +0000 (20:30 +0000)]
Extend set of return registers on sparc until someone will implement MRV support there. At least, this will allow libgcc compile, however we are not ABI-compatible with stuff compiled with native gcc.

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

15 years agoIgnore extra 'r' modifier for now
Anton Korobeynikov [Fri, 10 Oct 2008 20:29:50 +0000 (20:29 +0000)]
Ignore extra 'r' modifier for now

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

15 years agoUse expand for smul_lohi for now
Anton Korobeynikov [Fri, 10 Oct 2008 20:29:31 +0000 (20:29 +0000)]
Use expand for smul_lohi for now

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

15 years agoAdd testcase for 'r' inline asm operand
Anton Korobeynikov [Fri, 10 Oct 2008 20:28:59 +0000 (20:28 +0000)]
Add testcase for 'r' inline asm operand

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

15 years agoThis does not fail anymore
Anton Korobeynikov [Fri, 10 Oct 2008 20:28:32 +0000 (20:28 +0000)]
This does not fail anymore

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

15 years agoAdd rudimentary support for 'r' register operand
Anton Korobeynikov [Fri, 10 Oct 2008 20:28:10 +0000 (20:28 +0000)]
Add rudimentary support for 'r' register operand

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

15 years agoCleanup
Anton Korobeynikov [Fri, 10 Oct 2008 20:27:31 +0000 (20:27 +0000)]
Cleanup

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

15 years agoCMake: updated lib/Analysis/CMakeLists.txt.
Oscar Fuentes [Fri, 10 Oct 2008 18:51:36 +0000 (18:51 +0000)]
CMake: updated lib/Analysis/CMakeLists.txt.

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

15 years agoRevert r57340 move guard mutex in getPointerToFunction as this can cause
Mon P Wang [Fri, 10 Oct 2008 18:07:10 +0000 (18:07 +0000)]
Revert r57340 move guard mutex in getPointerToFunction as this can cause
deadlock issues with java

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

15 years agoFix build failure.
Devang Patel [Fri, 10 Oct 2008 17:57:50 +0000 (17:57 +0000)]
Fix build failure.
Patch by Erick Tryzelaar.

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

15 years agofix memleak by cleaning the global sets on pass exit
Nuno Lopes [Fri, 10 Oct 2008 16:25:50 +0000 (16:25 +0000)]
fix memleak by cleaning the global sets on pass exit

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

15 years agoAdd sparc test for memory operand used in inline asm
Anton Korobeynikov [Fri, 10 Oct 2008 10:15:33 +0000 (10:15 +0000)]
Add sparc test for memory operand used in inline asm

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

15 years agoThis is not failing anymore
Anton Korobeynikov [Fri, 10 Oct 2008 10:15:18 +0000 (10:15 +0000)]
This is not failing anymore

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

15 years agoAdd rudimentary asmprinter support for printing inline asm operands for sparc.
Anton Korobeynikov [Fri, 10 Oct 2008 10:15:03 +0000 (10:15 +0000)]
Add rudimentary asmprinter support for printing inline asm operands for sparc.

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

15 years agoAdd dummy 'm' inline asm constraint handler for Sparc. I'm not sure, whether it is...
Anton Korobeynikov [Fri, 10 Oct 2008 10:14:47 +0000 (10:14 +0000)]
Add dummy 'm' inline asm constraint handler for Sparc. I'm not sure, whether it is correct, however :)

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

15 years agoCleanup
Anton Korobeynikov [Fri, 10 Oct 2008 10:14:15 +0000 (10:14 +0000)]
Cleanup

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

15 years agoFix copy-and-paste-o.
Owen Anderson [Fri, 10 Oct 2008 08:53:07 +0000 (08:53 +0000)]
Fix copy-and-paste-o.

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

15 years agoAdd a basic intra-procedural escape analysis. This hasn't be extensively tested...
Owen Anderson [Fri, 10 Oct 2008 08:36:25 +0000 (08:36 +0000)]
Add a basic intra-procedural escape analysis.  This hasn't be extensively tested yet, but feedback is welcome.

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

15 years agoMoved guard mutex upwards to guard materializing a function
Mon P Wang [Fri, 10 Oct 2008 01:47:42 +0000 (01:47 +0000)]
Moved guard mutex upwards to guard materializing a function
in getPointerToFunction

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

15 years agoAdded missing print functions that take a raw_ostream
Mon P Wang [Fri, 10 Oct 2008 01:43:55 +0000 (01:43 +0000)]
Added missing print functions that take a raw_ostream

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

15 years agoFixed definition of llvm_anyptr_ty
Mon P Wang [Fri, 10 Oct 2008 01:41:18 +0000 (01:41 +0000)]
Fixed definition of llvm_anyptr_ty

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

15 years agoGenerated files for previous checkin.
Dale Johannesen [Thu, 9 Oct 2008 23:01:34 +0000 (23:01 +0000)]
Generated files for previous checkin.

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

15 years agoA file missed from previous checkin.
Dale Johannesen [Thu, 9 Oct 2008 23:01:07 +0000 (23:01 +0000)]
A file missed from previous checkin.

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

15 years agoAdd a "loses information" return value to APFloat::convert
Dale Johannesen [Thu, 9 Oct 2008 23:00:39 +0000 (23:00 +0000)]
Add a "loses information" return value to APFloat::convert
and APFloat::convertToInteger.  Restore return value to
IEEE754.  Adjust all users accordingly.

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

15 years agoRename APFloat::convertToAPInt to bitcastToAPInt to
Dale Johannesen [Thu, 9 Oct 2008 18:53:47 +0000 (18:53 +0000)]
Rename APFloat::convertToAPInt to bitcastToAPInt to
make it clearer what the function does.  No functional
change.

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

15 years agoDon't drop alignment on globals when cloning.
Nick Lewycky [Thu, 9 Oct 2008 06:27:14 +0000 (06:27 +0000)]
Don't drop alignment on globals when cloning.

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

15 years agoget CodeGen/Alpha/mul128.ll to work.
Chris Lattner [Thu, 9 Oct 2008 04:50:56 +0000 (04:50 +0000)]
get CodeGen/Alpha/mul128.ll to work.

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

15 years agoAlign EH tables before label is emitted, not after,
Dale Johannesen [Wed, 8 Oct 2008 21:50:21 +0000 (21:50 +0000)]
Align EH tables before label is emitted, not after,
thus aligning the label.

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

15 years ago(re)Put const weak strings in appropriate section on Darwin.
Dale Johannesen [Wed, 8 Oct 2008 21:49:47 +0000 (21:49 +0000)]
(re)Put const weak strings in appropriate section on Darwin.
g++dg/abi/key2.C

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

15 years agodont specialize weak functions and the like
Nuno Lopes [Wed, 8 Oct 2008 18:45:59 +0000 (18:45 +0000)]
dont specialize weak functions and the like

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

15 years agoComment to be explicit that the enumeration values for CondCodes matter.
Jim Grosbach [Wed, 8 Oct 2008 16:24:35 +0000 (16:24 +0000)]
Comment to be explicit that the enumeration values for CondCodes matter.

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

15 years agoUse template to distinguish between function variants.
Duncan Sands [Wed, 8 Oct 2008 07:44:52 +0000 (07:44 +0000)]
Use template to distinguish between function variants.
GCC 4.4.0 gives an error on the "int" declaration for example
saying that it has already been declared (using the "short"
one). Using templates here allow the compiler to distinguish
between the function to choose.

Also, "llvm/Support/DataTypes.h" was not included, leading to
error messages about not knowing "uint32_t" for example.

Patch by Samuel Tardieu.

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

15 years agoAdd <cstdio> include where needed by gcc-4.4.
Duncan Sands [Wed, 8 Oct 2008 07:23:46 +0000 (07:23 +0000)]
Add <cstdio> include where needed by gcc-4.4.
Patch by Samuel Tardieu.

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

15 years agoregenerate
Chris Lattner [Wed, 8 Oct 2008 06:44:45 +0000 (06:44 +0000)]
regenerate

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

15 years agoAdd missing semicolumns in parser rules, those missing semicolumns
Chris Lattner [Wed, 8 Oct 2008 06:44:36 +0000 (06:44 +0000)]
Add missing semicolumns in parser rules, those missing semicolumns
are required to compile with the latest Bison.

Patch by Samuel Tardieu!

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

15 years agoAdd parentheses to avoid warnings in GCC 4.4.0,
Chris Lattner [Wed, 8 Oct 2008 06:42:28 +0000 (06:42 +0000)]
Add parentheses to avoid warnings in GCC 4.4.0,
patch by Samuel Tardieu!

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

15 years agofix typo
Chris Lattner [Wed, 8 Oct 2008 06:26:11 +0000 (06:26 +0000)]
fix typo

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

15 years agoFix the case where an instruction is not properly marked as using all registers that...
Owen Anderson [Wed, 8 Oct 2008 04:30:51 +0000 (04:30 +0000)]
Fix the case where an instruction is not properly marked as using all registers that alias its inputs.

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

15 years agoRemove -disable-fast-isel. Use cl::boolOrDefault with -fast-isel
Dan Gohman [Tue, 7 Oct 2008 23:00:56 +0000 (23:00 +0000)]
Remove -disable-fast-isel. Use cl::boolOrDefault with -fast-isel
instead.

So now: -fast-isel or -fast-isel=true enable fast-isel, and
-fast-isel=false disables it. Fast-isel is also on by default
with -fast, and off by default otherwise.

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

15 years agoFix disagreement about where the attributes are
Eric Christopher [Tue, 7 Oct 2008 22:33:44 +0000 (22:33 +0000)]
Fix disagreement about where the attributes are
~0 != ~0U.

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

15 years agoFix configure issue where configure
Tanya Lattner [Tue, 7 Oct 2008 22:21:03 +0000 (22:21 +0000)]
Fix configure issue where configure
turned "obj-c++" into "obj" in the langs line.
Update configure script.

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