Commit Graph

48776 Commits

Author SHA1 Message Date
Gabor Greif 355f81cd16 typo and formatting tweaks
llvm-svn: 57485
2008-10-14 11:00:32 +00:00
Nuno Lopes a67f06b9c7 little optimization: reuse getPointerToGlobalIfAvailable(CGV) value in emitGlobals()
llvm-svn: 57484
2008-10-14 10:04:52 +00:00
Duncan Sands 6e9c3cbe30 Mention the different constant folders that IRBuilder
can use.

llvm-svn: 57483
2008-10-14 07:06:37 +00:00
Chris Lattner acc2eb484b new testcase for PR2797
llvm-svn: 57481
2008-10-14 06:56:04 +00:00
Chris Lattner 6f21daaec1 add some upgrading notes from Pekka.
llvm-svn: 57480
2008-10-14 06:37:11 +00:00
Chris Lattner 3211159cab add a testcase.
llvm-svn: 57479
2008-10-14 06:32:07 +00:00
Chris Lattner 0597229d3e add LSR and frameaddress info.
llvm-svn: 57478
2008-10-14 06:02:29 +00:00
Daniel Dunbar 1be9f88a2f Fix test suite regression, getFloatTypeSemantics shouldn't be called
on non-float types.

llvm-svn: 57477
2008-10-14 05:41:12 +00:00
Daniel Dunbar 5460374cd9 Add Sema implementation of #pragma pack stack.
- Follows the MSVC (original) implementation, including support of
   pack(show) (useful for testing).
 - Implements support for named pack records which gcc seems to
   ignore (or implements incorrectly).
 - Not currently wired to anything, only functionality change is the
   type checking of the pragma.

llvm-svn: 57476
2008-10-14 05:35:18 +00:00
Ted Kremenek 3db01846db Add static analyzer notes.
llvm-svn: 57475
2008-10-14 05:14:21 +00:00
Daniel Dunbar 654976ff1e Remove stale src, core directories.
llvm-svn: 57473
2008-10-14 03:56:55 +00:00
Chris Lattner bcffa5af89 more minor updates
llvm-svn: 57472
2008-10-14 00:52:49 +00:00
Chris Lattner 934e2d4939 more changes.
llvm-svn: 57470
2008-10-13 22:06:31 +00:00
Chris Lattner 25879d7d82 optimizer and codegen
llvm-svn: 57468
2008-10-13 21:50:36 +00:00
Ted Kremenek d323ccd29c Use 'realpath' to resolve the absolute path to clang and ccc-analyzer.
Add "-analyze-headers" option to scan-build that passes the option -analyzer-opt-analyze-headers to clang.

llvm-svn: 57467
2008-10-13 21:46:42 +00:00
Chris Lattner 0327f0bc91 more updates.
llvm-svn: 57466
2008-10-13 20:59:32 +00:00
Dan Gohman 56b6885104 When doing the very-late shift-and address-mode optimization,
create a new DAG node to represent the new shift to keep the
DAG consistent, even though it'll almost always be folded into
the address.

If a user of the resulting address has multiple uses, the
nodes may get revisited by a later MatchAddress call, in which
case DAG inconsistencies do matter.

This fixes PR2849.

llvm-svn: 57465
2008-10-13 20:52:04 +00:00
Chris Lattner 591ef273e3 describe major new features and llvm-gcc features.
llvm-svn: 57463
2008-10-13 20:47:20 +00:00
Duncan Sands 1db4fbdfbe 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.

llvm-svn: 57462
2008-10-13 19:56:36 +00:00
Evan Cheng da9b752883 FIX PR2794. Make sure SIGN_EXTEND_INREG nodes introduced by LegalizeSetCCOperands are leglized. Patch by Richard Pennington.
llvm-svn: 57460
2008-10-13 18:46:18 +00:00
Duncan Sands 8547c2d56f MarkModRef -> AddReadAttrs.
llvm-svn: 57459
2008-10-13 18:42:43 +00:00
Evan Cheng 4c499c4fa6 Also update sub-register intervals after a trivial computation is rematt'ed for a copy instruction. PR2775.
llvm-svn: 57458
2008-10-13 18:35:52 +00:00
Duncan Sands b34d5906b8 Add some llvm-gcc changes that may be worth
detailing.

llvm-svn: 57457
2008-10-13 18:33:28 +00:00
Evan Cheng 762f0f53ec Add a test case for _Complex passed as a FCA.
llvm-svn: 57456
2008-10-13 18:13:07 +00:00
Chris Lattner 44c09cd164 give the static analyzer its own section.
llvm-svn: 57455
2008-10-13 18:11:54 +00:00
Chris Lattner f5cd98683e more rearranging.
llvm-svn: 57453
2008-10-13 18:01:01 +00:00
Chris Lattner 1e4d5bc071 move major changes down.
llvm-svn: 57452
2008-10-13 17:57:36 +00:00
Duncan Sands 719f778de5 Fix typo. Add note on trampoline support.
llvm-svn: 57450
2008-10-13 17:32:15 +00:00
Evan Cheng be688ffced Clarify meaning of copyRegToReg's return value.
llvm-svn: 57449
2008-10-13 17:30:56 +00:00
Duncan Sands aef747fc53 Update the Ada part.
llvm-svn: 57447
2008-10-13 17:27:23 +00:00
Chris Lattner 3fc6e59083 final note.
llvm-svn: 57446
2008-10-13 17:12:51 +00:00
Daniel Dunbar d9eff3d4e4 Lift out ABIInfo abstract base class.
- Currently still lives in CGCall.cpp but is intended to be the
   target specific place for hooking ABI information.
 - Select ABIInfo to use based on Target's prefix and pointer width.

llvm-svn: 57445
2008-10-13 17:02:26 +00:00
Chris Lattner 0ae020952b fix some crazily long lines.
llvm-svn: 57444
2008-10-13 16:55:18 +00:00
Matthijs Kooijman f7d3cb5435 Make InstructionCombining::getBitCastOperand() recognize GEP instructions and
constant expression with all zero indices as being the same as a bitcast.

llvm-svn: 57442
2008-10-13 15:17:01 +00:00
Matthijs Kooijman 0e2682781c 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.

llvm-svn: 57440
2008-10-13 13:44:15 +00:00
Matthijs Kooijman 43686a6665 * Make TargetLowering not crash when TargetMachine::getTargetAsmInfo() returns
null. This assumes that any target that does not have AsmInfo, does not
   support "LocAndDot".

llvm-svn: 57438
2008-10-13 12:41:46 +00:00
Matthijs Kooijman c8d7988da8 Make MachineFunction not crash when TargetMachine::getRegisterInfo() returns
NULL, but just hide some debug output then.

llvm-svn: 57437
2008-10-13 12:37:16 +00:00
Gabor Greif 35e1387ac6 fix typo's
llvm-svn: 57435
2008-10-13 10:28:12 +00:00
Gabor Greif da83472fa6 remove a deprecated internal interface
llvm-svn: 57434
2008-10-13 10:25:27 +00:00
Gabor Greif cf1d1b7fbc do not use deprecated interfaces
llvm-svn: 57433
2008-10-13 10:21:17 +00:00
Gabor Greif dae874ced9 ignore the standard output dirs
llvm-svn: 57432
2008-10-13 09:38:08 +00:00
Nick Lewycky 707663eda8 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.

llvm-svn: 57431
2008-10-13 03:58:02 +00:00
Mikhail Glushenkov d3ec89e733 Add whitespace before a parenthesis.
llvm-svn: 57430
2008-10-13 02:46:01 +00:00
Mikhail Glushenkov 024f7cf859 Add a note on llvmc2 plugins + remove some trailing whitespace (my Emacs does this automatically).
llvm-svn: 57429
2008-10-13 02:08:34 +00:00
Chris Lattner c52af45304 calls can be supported.
llvm-svn: 57428
2008-10-13 01:59:13 +00:00
Chris Lattner e3df07e417 more notes
llvm-svn: 57427
2008-10-12 22:57:58 +00:00
Dale Johannesen cc98e28f37 Change TAG_ names to DW_TAG for gcc (testsuite) compatibility.
llvm-svn: 57425
2008-10-12 21:23:01 +00:00
Owen Anderson fe1f3d6e08 Fix a bug in live-in detection that caused lost-copy problems to show up.
llvm-svn: 57424
2008-10-12 20:39:30 +00:00
Chris Lattner c4d68546e3 add some more notes
llvm-svn: 57423
2008-10-12 19:47:48 +00:00
Chris Lattner 2824ba52c3 this was to be removed after 2.4 branched.
llvm-svn: 57422
2008-10-12 18:57:09 +00:00