summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make Template Arg Names InitsDavid Greene2011-10-194-38/+53
| | | | | | | | Allow template arg names to be Inits. This is further work to implement paste as it allows template names to participate in paste operations. llvm-svn: 142500
* Let SetValue Take and Init NameDavid Greene2011-10-192-9/+17
| | | | | | | Convert SetValue to take the value name as an Init. This allows us to set values for variables whose names are not yet fully resolved. llvm-svn: 142499
* Add Utility to Scope NamesDavid Greene2011-10-192-0/+46
| | | | | | | | Add a couple of utility functions to take a variable name and qualify it with the namespace of the enclosing class and/or multiclass. This is inpreparation for making template arg names first-class Inits. llvm-svn: 142498
* Make VarInit Name an InitDavid Greene2011-10-192-4/+22
| | | | | | | | Make the VarInit name an Init itself. We need this to implement paste functionality so we can reference variables whose names are not yet completely resolved. llvm-svn: 142497
* Add Value AccessorsDavid Greene2011-10-192-2/+21
| | | | | | | | Add accessors to get Record values by Init name. This lets us look up Record values whose names are not yet fully resolved. More work toward paste. llvm-svn: 142496
* Add Name Init AccessorsDavid Greene2011-10-191-0/+7
| | | | | | | Add a utility to get the name init and get the string representation of the name. This will be used for paste functionality. llvm-svn: 142495
* Add Init AccessorsDavid Greene2011-10-191-0/+4
| | | | | | | Add a couple of utility functions to get at the name init and return the name init as a string. This will be used for paste functionality. llvm-svn: 142494
* Generalize the reading of probability metadata to work for both branchesChandler Carruth2011-10-192-16/+67
| | | | | | | | | and switches, with arbitrary numbers of successors. Still optimized for the common case of 2 successors for a conditional branch. Add a test case for switch metadata showing up in the BlockFrequencyInfo pass. llvm-svn: 142493
* Teach the BranchProbabilityInfo analysis pass to read any metadataChandler Carruth2011-10-192-0/+63
| | | | | | | | | | | encoding of probabilities. In the absense of metadata, it continues to fall back on static heuristics. This allows __builtin_expect, after lowering through llvm.expect a branch instruction's metadata, to actually enter the branch probability model. This is one component of resolving PR2577. llvm-svn: 142492
* Add pass printing support to BlockFrequencyInfo pass. The implementationChandler Carruth2011-10-194-0/+32
| | | | | | | | | | | | | layer already had support for printing the results of this analysis, but the wiring was missing. Now that printing the analysis works, actually bring some of this analysis, and the BranchProbabilityInfo analysis that it wraps, under test! I'm planning on fixing some bugs and doing other work here, so having a nice place to add regression tests and a way to observe the results is really useful. llvm-svn: 142491
* Duncan pointed out that sometimes CC and CXX are used to specify the ↵Bill Wendling2011-10-191-20/+2
| | | | | | compiler. Also that the configure script takes care of finding an appropriate compiler if one's not specified. llvm-svn: 142489
* Add support for the vector-widening of vselect and vector-setccNadav Rotem2011-10-193-1/+96
| | | | llvm-svn: 142488
* Use bash instead.Bill Wendling2011-10-191-1/+1
| | | | llvm-svn: 142486
* Make sure we emit the 'movw' and 'movt' only if it's supported. Otherwise, ↵Bill Wendling2011-10-191-5/+27
| | | | | | use a constant pool. llvm-svn: 142485
* Remove some dead code.Bill Wendling2011-10-191-6/+0
| | | | llvm-svn: 142484
* Make changes so that this runs on FreeBSD.Bill Wendling2011-10-191-7/+13
| | | | llvm-svn: 142482
* Break out ssize_t test from Sema/format-strings-fixit.cHans Wennborg2011-10-192-2/+18
| | | | | | | Move to a separate test that sets a specific target triple so that the type of ssize_t is known. llvm-svn: 142481
* Rename PEXTR to PEXT. Add intrinsics for BMI instructions.Craig Topper2011-10-196-39/+223
| | | | llvm-svn: 142480
* Improve the warning for cv-qualifiers on free functions, from Ahmed Charles!Douglas Gregor2011-10-198-6/+76
| | | | llvm-svn: 142478
* Add support for constant arrays, from Anders Waldenborg!.Douglas Gregor2011-10-192-0/+24
| | | | llvm-svn: 142477
* Add TypeKind.CONSTANTARRAY, from Anders Waldenborg!Douglas Gregor2011-10-192-1/+20
| | | | llvm-svn: 142476
* Fix error message for unknown type kind, from Anders Waldenborg!Douglas Gregor2011-10-191-1/+1
| | | | llvm-svn: 142475
* This new field was introduced in clang-c in r141277Douglas Gregor2011-10-191-1/+1
| | | | | | | Python needs this in its structure definition so it allocates enough memory. From Anders Waldenborg! llvm-svn: 142474
* Fix pr9789, assert-on-invalid while instantiating an (invalid) class ↵David Blaikie2011-10-192-18/+18
| | | | | | template with a non-final parameter pack. Also improve the warning for non-final parameter packs in this scenario so it only fires once, rather than once for every template parameter after the non-final parameter pack. llvm-svn: 142473
* Tweak this test to test more directly what we want, and hopefully work ↵Douglas Gregor2011-10-191-2/+10
| | | | | | around the brokenness of code completion under -fdelayed-template-parsing llvm-svn: 142472
* Don't forget to complete the objc interface before asking for information,Argyrios Kyrtzidis2011-10-192-1/+11
| | | | | | otherwise lldb will suffer. llvm-svn: 142471
* Extract the run hooks functionality into the base class lldbtest.Base.Johnny Chen2011-10-192-6/+16
| | | | llvm-svn: 142469
* Add a -Wc++98-compat warning for friend functions of class templates which wouldRichard Smith2011-10-193-7/+39
| | | | | | be implicitly instantiated (resulting in a redefinition) in C++98. llvm-svn: 142468
* Add block information for ObjC @catch blocks.Eric Christopher2011-10-192-1/+17
| | | | | | Fixes rdar://10282889 llvm-svn: 142467
* Add a new subclass of RunCleanupScopes that also handles creating newEric Christopher2011-10-191-3/+41
| | | | | | lexical blocks for debug info. llvm-svn: 142466
* Move static array parameter checks to SemaExpr, per Doug's requestPeter Collingbourne2011-10-193-67/+63
| | | | llvm-svn: 142465
* Adding dependencies to allow -DBUILD_SHARED_LIBS=true to complete.Joe Abbey2011-10-192-0/+9
| | | | llvm-svn: 142464
* -Wc++98-compat: warn if a SFINAE substitution in C++11 suppresses an accessRichard Smith2011-10-194-7/+42
| | | | | | control diagnostic. llvm-svn: 142463
* Added testcase for <rdar://problem/10215997>Lang Hames2011-10-181-0/+29
| | | | llvm-svn: 142462
* Changed lldb_private::Type over to use the intrusive ref counted pointersGreg Clayton2011-10-188-64/+50
| | | | | | | | | | | so we don't have to lookup types in a type list by ID. Changed the DWARF parser to remove the "can externally complete myself" bits from the type when we are in the process of completing the type itself to avoid an onslaught of external visible decl requests from the clang::ExternalASTSource. llvm-svn: 142461
* Emit the MOVT instruction only if the # LPads is > 64K.Bill Wendling2011-10-181-10/+20
| | | | llvm-svn: 142460
* objc: allow class name qualified with protocols inFariborz Jahanian2011-10-182-2/+12
| | | | | | | iboutletcollection attribute. But ignore protocol list. // rdar://10296078 llvm-svn: 142459
* For Thumb mode, we need to use a constant pool if the value is too large to beBill Wendling2011-10-181-3/+20
| | | | | | used with the CMP instruction. llvm-svn: 142458
* Regenerate projects/sample/configure.Daniel Dunbar2011-10-181-24/+19725
| | | | llvm-svn: 142457
* projects/sample: Import adapted form of current LLVM autoconf/Makefile setup ↵Daniel Dunbar2011-10-1832-48/+18811
| | | | | | | | | | so that projects/sample is standalone and not tied to the LLVM build setup. - This currently just moves over all of the behavior from LLVM. Eventually all of the configure checks that are directly needed by the LLVM build setup should probably go away, and the project should manage their own configuration checks if necessary. - This is the 1st half of this work, the actual Makefile.common hasn't moved over yet. I've tried to stage this in such a way that incremental builds will properly reconfigure for most active developers (the Makefiles don't handle reconfiguring in a perfectly reliable way, and I haven't found an easy way to make them do so). llvm-svn: 142456
* Revert "Turn on the vzeroupper pass by default."Eric Christopher2011-10-181-1/+1
| | | | | | This reverts commit 494f7ac3e8d2ab3d94e52317abf9c42a949fe1f3. llvm-svn: 142455
* [analyzer] Move predecessor into the NodeBuilder context.Anna Zaks2011-10-184-28/+25
| | | | llvm-svn: 142454
* [analyzer] Make NodeBuilder and Pred node loosely coupledAnna Zaks2011-10-189-79/+66
| | | | | | NodeBuilder should not assume it's dealing with a single predecessor. Remove predecessor getters. Modify the BranchNodeBuilder to not be responsible for doing auto-transitions (which depend on a predecessor). llvm-svn: 142453
* [analyzer] Remove StmtNodeBuilder from CheckerContextAnna Zaks2011-10-184-25/+20
| | | | | | It now only depends on a generic NodeBuilder instead. As part of this change, make the generic node builder results finalized by default. llvm-svn: 142452
* [analyzer] Subclassing StmtBuilder from the NodeBuilderAnna Zaks2011-10-184-98/+38
| | | | llvm-svn: 142451
* [analyzer] Remove dead code.Anna Zaks2011-10-183-82/+1
| | | | | | ExprEngineBuilders is not used. llvm-svn: 142450
* [analyzer] Remove redundant method + whitespace.Anna Zaks2011-10-181-6/+3
| | | | llvm-svn: 142449
* [analyzer] Modularize builder use in processBranch.Anna Zaks2011-10-188-83/+86
| | | | | | Take advantage of the new builders for branch processing. As part of this change pass generic NodeBuilder (instead of BranchNodeBuilder) to the BranchCondition callback and remove the unused methods form BranchBuilder. llvm-svn: 142448
* [analyzer] Pull Pred out of NodeBuilderContext.Anna Zaks2011-10-186-24/+31
| | | | | | Each builder will have a different one, so it doesn't make sense to keep it in the context. llvm-svn: 142447
* [analyzer] Rely only on NodeBuilder inside CheckerContext.Anna Zaks2011-10-181-1/+1
| | | | llvm-svn: 142446
OpenPOWER on IntegriCloud