summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix thinko (-fno-builtin != -nobuiltininc).Daniel Dunbar2009-11-261-1/+1
| | | | llvm-svn: 89918
* Add clang -cc1 parsing for preprocessor options.Daniel Dunbar2009-11-263-11/+55
| | | | llvm-svn: 89917
* Add clang -cc1 parsing for header search options.Daniel Dunbar2009-11-262-2/+42
| | | | llvm-svn: 89916
* Implement a new DecomposeGEPExpression method, which decomposes a GEP into a ↵Chris Lattner2009-11-261-40/+121
| | | | | | list of scaled offsets. Use this to eliminate some previous ad-hoc code which was subtly broken (it assumed all Constant*'s were non-zero, but strange constant express could be zero). llvm-svn: 89915
* Use GEPOperator more pervasively to simplify code.Chris Lattner2009-11-261-29/+27
| | | | llvm-svn: 89914
* update some notes slightlyChris Lattner2009-11-261-3/+5
| | | | llvm-svn: 89913
* remove some redundant bracesChris Lattner2009-11-261-4/+2
| | | | llvm-svn: 89912
* Refactor our handling of expression evaluation contexts, so that SemaDouglas Gregor2009-11-266-65/+122
| | | | | | | | | | | | maintains a stack of evaluation contexts rather than having the parser do it. This change made it simpler to track in which contexts temporaries were created, so that we could... "Forget" about temporaries created within unevaluated contexts, so that we don't build a CXXExprWithTemporaries and, therefore, destroy the integral-constness of our expressions. Fixes PR5609. llvm-svn: 89908
* Test for 89905.Evan Cheng2009-11-261-0/+116
| | | | llvm-svn: 89906
* When all defs of a vr are implicit_def, delete all of the defs.Evan Cheng2009-11-261-2/+6
| | | | llvm-svn: 89905
* Split tail duplication into a separate pass. This is needed to avoidBob Wilson2009-11-268-239/+320
| | | | | | | | | running tail duplication when doing branch folding for if-conversion, and we also want to be able to run tail duplication earlier to fix some reg alloc problems. Move the CanFallThrough function from BranchFolding to MachineBasicBlock so that it can be shared by TailDuplication. llvm-svn: 89904
* Add missing case in switch statement.Ted Kremenek2009-11-251-1/+2
| | | | llvm-svn: 89903
* Refine MemRegions for blocks. Add a new region calledTed Kremenek2009-11-257-9/+107
| | | | | | | | | | | 'BlockDataRegion' to distinguish between the code associated with a block (which is represented by 'BlockTextRegion') and an instance of a block, which includes both code and data. 'BlockDataRegion' has an associated LocationContext, which can be used to eventually model the lifetime of a block object once LocationContexts can represent scopes (and iterations around a loop, etc.). llvm-svn: 89900
* Test for llvm-gcc checkin 89898.Dale Johannesen2009-11-251-0/+17
| | | | llvm-svn: 89899
* Remove recently added FIXME. The appropriate FIXME is already in ↵Ted Kremenek2009-11-251-2/+0
| | | | | | MemRegionManager::getVarRegion(). llvm-svn: 89897
* Update to reflect recent debugging information encoding changes.Devang Patel2009-11-251-219/+118
| | | | llvm-svn: 89896
* Allow user re-definition of SEL as well as accessing its fields.Fariborz Jahanian2009-11-258-6/+31
| | | | | | This fixes pr5611. llvm-svn: 89895
* Fix attribute between function decl ')' and '{' or '=0'John Thompson2009-11-253-0/+17
| | | | llvm-svn: 89894
* Rollback changes r89516: Added two SubtargetFeatures::AddFeatures methods, ↵Viktor Kutuzov2009-11-253-44/+3
| | | | | | which accept a comma-separated string or already parsed command line parameters as input, and some code re-factoring to use these new methods. llvm-svn: 89893
* Add FIXME.Ted Kremenek2009-11-251-0/+2
| | | | llvm-svn: 89892
* Implement the rules in C++ [basic.link] and C99 6.2.2 for computingDouglas Gregor2009-11-256-10/+240
| | | | | | | | | | | the linkage of a declaration. Switch the lame (and completely wrong) NamedDecl::hasLinkage() over to using the new NamedDecl::getLinkage(), along with the "can this declaration be a template argument?" check that started all of this. Fixes -fsyntax-only for PR5597. llvm-svn: 89891
* Add post-visit Checker support in GRExprEngine for BlockExpr.Ted Kremenek2009-11-252-1/+8
| | | | llvm-svn: 89890
* Add a new RetainReleaseChecker class (that subclasses CheckerVisitor) to ↵Ted Kremenek2009-11-251-0/+22
| | | | | | extend the functionality of the retain/release checker using the new Checker interface. Pieces of CFRefCount will gradually be migrated to this new class over time. llvm-svn: 89889
* Move RegisterChecks() to the end of the file. No functionality change.Ted Kremenek2009-11-251-57/+59
| | | | llvm-svn: 89888
* Call GRExprEngine::setTransferFunctions() after registering all Checkers. ↵Ted Kremenek2009-11-251-2/+2
| | | | | | This allows GRTransferFuncs::RegisterChecks() to always be called after all checkers have been registered. llvm-svn: 89887
* Consolidate logic in ActionInlineCall by having it call ActionGRExprEngine ↵Ted Kremenek2009-11-251-19/+3
| | | | | | instead of replicating most of its logic (and missing pieces). llvm-svn: 89886
* Better diagnostic on deleted constructor when noFariborz Jahanian2009-11-251-2/+5
| | | | | | initializer name is available. llvm-svn: 89885
* Make RegisterInternalChecks() part of GRExprEngine's private implementation ↵Ted Kremenek2009-11-253-33/+32
| | | | | | by making it a static function within GRExprEngine.cpp. llvm-svn: 89884
* Register internal checks with GRExprEngine when it is constructed, not ↵Ted Kremenek2009-11-252-3/+5
| | | | | | manually in AnalysisConsumer.cpp. llvm-svn: 89883
* When dispatching to Checker objects in GRExprEngine::CheckerVisit(),Ted Kremenek2009-11-251-4/+12
| | | | | | | | | only stop processing the checkers after all the nodes for a current check have been processed. This (I believe) handles the case where PredSet (the input nodes) contains more than one node due to state bifurcation. Zhongxing: can you review this? llvm-svn: 89882
* ProcessImplicitDefs should watch out for invalidated iterator and extra ↵Evan Cheng2009-11-252-14/+101
| | | | | | implicit operands on copies. llvm-svn: 89880
* Tail duplicate indirect branches for PowerPC, too.Bob Wilson2009-11-251-0/+2
| | | | | | | With the testcase for pr3120, the "threaded interpreter" runtime decreases from 1788 to 1413 with this change. llvm-svn: 89877
* Tweak expected error to match what should happen, once using declarations workDouglas Gregor2009-11-251-3/+2
| | | | llvm-svn: 89876
* Tweak expected error message, although we still fail this testDouglas Gregor2009-11-251-1/+1
| | | | llvm-svn: 89875
* Implement support for default template arguments of function templates.Douglas Gregor2009-11-256-18/+136
| | | | llvm-svn: 89874
* Avoid some possibly unsafe uses of StringRef::data().Benjamin Kramer2009-11-252-7/+5
| | | | llvm-svn: 89873
* Diagnose ill-formed uses of default template arguments inDouglas Gregor2009-11-256-8/+139
| | | | | | | | | | | function templates (in C++98), friend function templates, and out-of-line definitions of members of class templates. Also handles merging of default template arguments from previous declarations of function templates, for C++0x. However, we don't yet make use of those default template arguments. llvm-svn: 89872
* Use StringRef (again) in DebugInfo interface.Devang Patel2009-11-251-18/+18
| | | | llvm-svn: 89867
* Use StringRef (again) in DebugInfo interface.Devang Patel2009-11-255-134/+138
| | | | llvm-svn: 89866
* Based on the testcase for pr3120, running on my MacPro with Xeon processors,Bob Wilson2009-11-251-0/+2
| | | | | | | it is definitely profitable to tail duplicate indirect branches for x86. This is likely to be true to various degrees for all modern x86 processors. llvm-svn: 89865
* Fix a thinko where we weren't always performing unary conversions on the ↵Douglas Gregor2009-11-251-4/+4
| | | | | | switch condition, fixing PR5612 llvm-svn: 89864
* Support PIC loading of constant pool entriesBruno Cardoso Lopes2009-11-253-14/+21
| | | | llvm-svn: 89863
* Adjust comments to new semantics.Edward O'Callaghan2009-11-251-3/+3
| | | | llvm-svn: 89862
* What the FIXMEs want, the FIXMEs shall have.Daniel Dunbar2009-11-253-57/+32
| | | | llvm-svn: 89861
* Add an arg_iterator, for iterating over a subset of arguments in an ArgList.Daniel Dunbar2009-11-253-78/+119
| | | | llvm-svn: 89860
* Add a missing include <cstdio>Daniel Dunbar2009-11-251-0/+1
| | | | llvm-svn: 89859
* Fix some uses of fprintf/stderr without a prototype.Daniel Dunbar2009-11-251-2/+2
| | | | llvm-svn: 89858
* Add clang -cc1 parsing for frontend options.Daniel Dunbar2009-11-252-1/+136
| | | | llvm-svn: 89856
* Add ParseSourceLocation::FromString, and simplify.Daniel Dunbar2009-11-251-27/+22
| | | | llvm-svn: 89855
* Add clang -cc1 parsing for preprocessor output options (-E).Daniel Dunbar2009-11-251-0/+6
| | | | llvm-svn: 89854
OpenPOWER on IntegriCloud