summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* When finishing a function definition, leave the function definition *after*John McCall2010-03-252-2/+15
| | | | | | | doing all the cleanup tasks and checks. This gives us the proper context for checking access to base and member destructors. llvm-svn: 99559
* Fix a code gen. bug involving generation of getter methodFariborz Jahanian2010-03-252-2/+22
| | | | | | from properties of _Complex type. (radar 7351147). llvm-svn: 99558
* Add NVDupLnFrm and change NVDupLane class to use that format.Johnny Chen2010-03-251-1/+2
| | | | llvm-svn: 99557
* Don't add address points for virtual primary bases that aren't primary bases ↵Anders Carlsson2010-03-253-29/+29
| | | | | | in the complete class. llvm-svn: 99555
* Fix a very minor oversight in privileges-elevation: we were only consideringJohn McCall2010-03-252-1/+17
| | | | | | | friendship for a derived class if the base class specifier was non-public, and thus not considering friendship for non-public members of public bases. llvm-svn: 99554
* Handle simple friend-class decls in class templates better by ensuring thatJohn McCall2010-03-253-61/+113
| | | | | | | we look for shadow friend decls in the appropriate scope before injecting a new declaration. llvm-svn: 99552
* ARM cortex-a8 doesn't do vmla/vmls well. disable them by default for that cpuJim Grosbach2010-03-251-0/+6
| | | | llvm-svn: 99549
* Add NVCVTFrm (NEON Convert with fractional bits immediate) and modify N2VImm toJohnny Chen2010-03-252-19/+20
| | | | | | expect a Format arg. N2VCvtD/N2VCvtQ are modified to use the NVCVTFrm format. llvm-svn: 99548
* Add nounwind.Evan Cheng2010-03-251-1/+1
| | | | llvm-svn: 99546
* Code clean up.Evan Cheng2010-03-251-11/+10
| | | | llvm-svn: 99544
* MC: Stop restarting layout on every relaxation.Daniel Dunbar2010-03-253-6/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Still O(N^2), just a faster form, and now its the MCAsmLayout's fault. On the .s I am tuning against (combine.s from 403.gcc): -- ddunbar@lordcrumb:MC$ diff stats-before.txt stats-after.txt 5,10c5,10 < 1728 assembler - Number of assembler layout and relaxation steps < 7707 assembler - Number of emitted assembler fragments < 120588 assembler - Number of emitted object file bytes < 2233448 assembler - Number of evaluated fixups < 1727 assembler - Number of relaxed instructions < 6723845 mcexpr - Number of MCExpr evaluations --- > 3 assembler - Number of assembler layout and relaxation steps > 7707 assembler - Number of emitted assembler fragments > 120588 assembler - Number of emitted object file bytes > 14796 assembler - Number of evaluated fixups > 1727 assembler - Number of relaxed instructions > 67889 mcexpr - Number of MCExpr evaluations -- Feel free to LOL at the -before numbers, if you like. I am a little surprised we make more than 2 relaxation passes. It's pretty trivial for us to do relaxation out-of-order if that would give a speedup. llvm-svn: 99543
* Fix -Asserts warning, again.Daniel Dunbar2010-03-251-0/+1
| | | | llvm-svn: 99542
* Tag SSE2 integer instructions as SSEPackedInt.Jakob Stoklund Olesen2010-03-251-2/+11
| | | | llvm-svn: 99540
* Teach TableGen to understand X.Y notation in the TSFlagsFields strings.Jakob Stoklund Olesen2010-03-256-11/+21
| | | | | | | Remove much horribleness from X86InstrFormats as a result. Similar simplifications are probably possible for other targets. llvm-svn: 99539
* fix a valgrind error on copy-constructor-synthesis.cpp, which is caused whenChris Lattner2010-03-251-2/+3
| | | | | | | | the custom insertion hook deletes the instruction, then we try to set dead flags on it. Neither the code that I added nor the code that was there before was safe. llvm-svn: 99538
* Remove an unused option.Evan Cheng2010-03-251-59/+29
| | | | llvm-svn: 99537
* MC: Simplify main section layout process by moving alignment into LayoutSection.Daniel Dunbar2010-03-252-32/+36
| | | | llvm-svn: 99529
* MC: Sink Section address assignment into LayoutSection.Daniel Dunbar2010-03-252-10/+11
| | | | llvm-svn: 99528
* Check for some code gen. for PR6641 test.Fariborz Jahanian2010-03-251-1/+6
| | | | llvm-svn: 99526
* Preserve type-source information in friend declarations.John McCall2010-03-256-18/+27
| | | | llvm-svn: 99525
* Add a late SSEDomainFix pass that twiddles SSE instructions to avoid domain ↵Jakob Stoklund Olesen2010-03-259-21/+223
| | | | | | | | | | | | | | | | | | | | | | crossings. On Nehalem and newer CPUs there is a 2 cycle latency penalty on using a register in a different domain than where it was defined. Some instructions have equvivalents for different domains, like por/orps/orpd. The SSEDomainFix pass tries to minimize the number of domain crossings by changing between equvivalent opcodes where possible. This is a work in progress, in particular the pass doesn't do anything yet. SSE instructions are tagged with their execution domain in TableGen using the last two bits of TSFlags. Note that not all instructions are tagged correctly. Life just isn't that simple. The SSE execution domain issue is very similar to the ARM NEON/VFP pipeline issue handled by NEONMoveFixPass. This pass may become target independent to handle both. llvm-svn: 99524
* Remove support for nand atomic builtins. They are inconsistently implemented inDaniel Dunbar2010-03-254-51/+11
| | | | | | | gcc, and the common expectation seems to be that they are unused. If and when someone cares we can add them back with well documented demantics. llvm-svn: 99522
* Added a new instruction class NVDupLane to be inherited by VDUPLND and VDUPLNQ,Johnny Chen2010-03-252-20/+31
| | | | | | | instead of the current N2V. Format of NVDupLane instances are set to NEONFrm currently. llvm-svn: 99518
* Use the new vtable layout code for construction vtables.Anders Carlsson2010-03-251-3/+95
| | | | llvm-svn: 99516
* Use Daniel's trick for XFAIL'd testsDouglas Gregor2010-03-251-17/+19
| | | | llvm-svn: 99515
* Reapply Kevin's change 94440, now that Chris has fixed the limitation onBob Wilson2010-03-256-1/+152
| | | | | | opcode values fitting in one byte (svn r99494). llvm-svn: 99514
* PS3 needs __PPC__. Should this be in the PPC target?John Thompson2010-03-251-0/+1
| | | | llvm-svn: 99513
* Sketch a few Clang release notes.Daniel Dunbar2010-03-251-2/+15
| | | | llvm-svn: 99512
* Add another test for weird substitutions into function types during template ↵Douglas Gregor2010-03-251-0/+13
| | | | | | argument deduction llvm-svn: 99510
* Improve our handling of local instantiation scopes in two related ways:Douglas Gregor2010-03-254-13/+44
| | | | | | | | | | | | | | | - When substituting template arguments as part of template argument deduction, introduce a new local instantiation scope. - When substituting into a function prototype type, introduce a new "temporary" local instantiation scope that merges with its outer scope but also keeps track of any additions it makes, removing them when we exit that scope. Fixes PR6700, where we were getting too much mixing of local instantiation scopes due to template argument deduction that substituted results into function types. llvm-svn: 99509
* When -fdump-vtable-layouts is specified, construction vtable initializers ↵Anders Carlsson2010-03-252-18/+145
| | | | | | will be generated using the new vtable layout code. (The code is still not completely in place but this is a huge step forward). llvm-svn: 99508
* Add comment.Devang Patel2010-03-251-0/+3
| | | | llvm-svn: 99507
* Fixed spurious warning problem noticed by Daniel Dunbar. The configure scriptJohn Criswell2010-03-252-1/+11
| | | | | | | now configures prerequisite projects individually but also ignores them in the big project switch statement to avoid the incorrect warning. llvm-svn: 99506
* add dump() method to CanQual for debugging purposesNuno Lopes2010-03-251-0/+2
| | | | llvm-svn: 99505
* MC/Mach-O: Switch to MCSectionData::getOrdinal.Daniel Dunbar2010-03-251-18/+4
| | | | llvm-svn: 99504
* Scheduler assumes SDDbgValue nodes are in source order. That's true ↵Evan Cheng2010-03-251-0/+8
| | | | | | currently. But add an assertion to verify it. llvm-svn: 99501
* MC: Explicity track section and fragment ordinals.Daniel Dunbar2010-03-252-0/+28
| | | | llvm-svn: 99500
* Fix -Asserts warning.Daniel Dunbar2010-03-251-2/+1
| | | | llvm-svn: 99499
* lit: Add LitTestCase and lit.load_test_suite, for adapting lit based suites forDaniel Dunbar2010-03-253-2/+75
| | | | | | use with Python's unittest. llvm-svn: 99498
* Properly instantiate friend class template declarations and link them intoJohn McCall2010-03-254-28/+130
| | | | | | | the redeclaration chain. Recommitted from r99477 with a fix: we need to merge in default template arguments from previous declarations. llvm-svn: 99496
* Add a utility method.Zhongxing Xu2010-03-251-0/+1
| | | | llvm-svn: 99495
* Change tblgen to emit FOOISD opcode names as twoChris Lattner2010-03-252-13/+20
| | | | | | | | | | | | | | bytes instead of one byte. This is important because we're running up to too many opcodes to fit in a byte and it is aggrevated by FIRST_TARGET_MEMORY_OPCODE making the numbering sparse. This just bites the bullet and bloats out the table. In practice, this increases the size of the x86 isel table from 74.5K to 76K. I think we'll cope :) This fixes rdar://7791648 llvm-svn: 99494
* Fix typo.Devang Patel2010-03-251-4/+4
| | | | llvm-svn: 99493
* Fix evil TableGen bug in template parameters with defaults.Jakob Stoklund Olesen2010-03-253-11/+61
| | | | | | | | | | If a TableGen class has an initializer expression containing an X.Y subexpression, AND X depends on template parameters, AND those template parameters have defaults, AND some parameters with defaults are beyond position 1, THEN parts of the initializer expression are evaluated prematurely with the default values when the first explicit template parameter is substituted, before the remaining explicit template parameters have been substituted. llvm-svn: 99492
* Include isFunctionLocal while calculating folding node set profile for a MDNode.Devang Patel2010-03-251-13/+14
| | | | llvm-svn: 99490
* Remove a fixme that doesn't make sense any more.Evan Cheng2010-03-251-2/+0
| | | | llvm-svn: 99489
* fix PR6642, GVN forwarding from memset to load of the base of the memset.Chris Lattner2010-03-252-7/+19
| | | | llvm-svn: 99488
* Make sure SDDbgValue.Invalid is initialized to false by all the constructors.Evan Cheng2010-03-251-2/+2
| | | | llvm-svn: 99487
* eliminate a bunch more parallels now that schedulingChris Lattner2010-03-251-205/+150
| | | | | | | handles dead implicit results more aggressively. More to come, I think this is now just a data entry problem. llvm-svn: 99486
* Make the NDEBUG assertion stronger and more clear what is Chris Lattner2010-03-257-11/+25
| | | | | | | | | | | | | | | | | | | | | happening. Enhance scheduling to set the DEAD flag on implicit defs more aggressively. Before, we'd set an implicit def operand to dead if it were present in the SDNode corresponding to the machineinstr but had no use. Now we do it in this case AND if the implicit def does not exist in the SDNode at all. This exposes a couple of problems: one is the FIXME, which causes a live intervals crash on CodeGen/X86/sibcall.ll. The second is that it makes machinecse and licm more aggressive (which is a good thing) but also exposes a case where licm hoists a set0 and then it doesn't get resunk. Talking to codegen folks about both these issues, but I need this patch in in the meantime. llvm-svn: 99485
OpenPOWER on IntegriCloud