summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Implement basic _Complex integer constant folding.Daniel Dunbar2009-01-283-34/+81
| | | | | | | - Merged into single ComplexEvaluator, these share too much logic to be worth splitting for float/int (IMHO). Will split on request. llvm-svn: 63248
* Make test platform agnostic.Bill Wendling2009-01-281-3/+1
| | | | llvm-svn: 63247
* property metadata for objc2's nonfragile abiFariborz Jahanian2009-01-281-15/+30
| | | | llvm-svn: 63246
* Add DebugLoc to the getNode() methods.Bill Wendling2009-01-282-51/+177
| | | | llvm-svn: 63245
* Give this test an explicit target, to make it host-independent.Dan Gohman2009-01-281-1/+1
| | | | llvm-svn: 63244
* Add some comments to GRStateManager. No functionality change.Ted Kremenek2009-01-281-0/+52
| | | | llvm-svn: 63243
* Code generation support for C99 designated initializers.Douglas Gregor2009-01-2817-179/+620
| | | | | | | | | | | | | | | | | | | | The approach I've taken in this patch is relatively straightforward, although the code itself is non-trivial. Essentially, as we process an initializer list we build up a fully-explicit representation of the initializer list, where each of the subobject initializations occurs in order. Designators serve to "fill in" subobject initializations in a non-linear way. The fully-explicit representation makes initializer lists (both with and without designators) easy to grok for codegen and later semantic analyses. We keep the syntactic form of the initializer list linked into the AST for those clients interested in exactly what the user wrote. Known limitations: - Designating a member of a union that isn't the first member may result in bogus initialization (we warn about this) - GNU array-range designators are not supported (we warn about this) llvm-svn: 63242
* retain/release checker: Always generate an "autorelease" summary for an ↵Ted Kremenek2009-01-282-9/+90
| | | | | | "autorelease" message, and have the summary processing logic treat it as a no-op in GC mode. This change is motivated to encode more of the semantics in the summaries themselves for eventual better diagnostics. llvm-svn: 63241
* SDOperand has been renamed to SDValue. SDNode::Val is nowDan Gohman2009-01-281-14/+14
| | | | | | accessed via SDNode::getNode. llvm-svn: 63240
* Add more comments describing SDNode operator codes.Dan Gohman2009-01-281-8/+12
| | | | llvm-svn: 63239
* Handle complex types in ASTContext::mergeTypesDaniel Dunbar2009-01-282-0/+12
| | | | llvm-svn: 63238
* Add autorelease test case.Ted Kremenek2009-01-281-0/+7
| | | | llvm-svn: 63237
* Add DebugLoc-aware constructors for SDNode derivedDale Johannesen2009-01-282-0/+107
| | | | | | | classes (those that reasonably have a DebugLoc associated with them). llvm-svn: 63236
* Add some comments on ISD::NodeType.Dan Gohman2009-01-281-0/+7
| | | | llvm-svn: 63234
* Do not forget to derived type while constructing an array type.Devang Patel2009-01-282-0/+95
| | | | llvm-svn: 63233
* Add more PTH diagnostics for invalid PTH files, etc.Ted Kremenek2009-01-281-11/+29
| | | | llvm-svn: 63232
* Enhance PTHManager::Create() to take an optional Diagnostic* argument that ↵Ted Kremenek2009-01-283-4/+12
| | | | | | can be used to report issues such as a missing PTH file. llvm-svn: 63231
* Fix TextDiagnosticPrinter::HandleDiagnostic to handle invalid FullSourceLocs ↵Ted Kremenek2009-01-281-15/+7
| | | | | | that do not have a SourceManager. llvm-svn: 63230
* Add method FullSourceLoc::getBufferData().Ted Kremenek2009-01-282-1/+12
| | | | llvm-svn: 63229
* Tweak doxygen comment. No functionality change.Ted Kremenek2009-01-281-3/+5
| | | | llvm-svn: 63228
* Fix some issues with volatility, move "CanConvertToScalar" check Chris Lattner2009-01-282-21/+45
| | | | | | after the others. llvm-svn: 63227
* Name change (isTypeName->getTypeName).Steve Naroff2009-01-2810-26/+26
| | | | | | Since it doesn't return a bool, is shouldn't be prefixed with 'is'. llvm-svn: 63226
* Fix test case (for -### printing version)Daniel Dunbar2009-01-281-3/+3
| | | | llvm-svn: 63223
* strengthen this test.Chris Lattner2009-01-281-3/+2
| | | | llvm-svn: 63222
* ccc: Support -v; invent a version number for ccc for now, will beDaniel Dunbar2009-01-283-10/+23
| | | | | | shared with clang eventually. llvm-svn: 63220
* Change Parser::ParseFunctionDeclarator() to annotate typename tokens.Steve Naroff2009-01-281-9/+21
| | | | | | This removes ~10% of the calls to Sema::isTypeName(), which amount to a little less than a 1% reduction in usertime (for Cocoa.h). llvm-svn: 63219
* Some refactoring of common code. No change in functionality.Fariborz Jahanian2009-01-281-34/+47
| | | | llvm-svn: 63218
* Fixed extract element when the result needs to be promoted and the input ↵Mon P Wang2009-01-281-0/+2
| | | | | | widened. llvm-svn: 63217
* Implement pointer to member handling in static_cast.Sebastian Redl2009-01-288-57/+133
| | | | | | | Fix a stupid mistake in UnwrapSimilarPointers that made any two member pointers compatible as long as the pointee was the same. Make a few style corrections as suggested by Chris. llvm-svn: 63215
* Delete unnecessary elses.Dan Gohman2009-01-281-2/+2
| | | | llvm-svn: 63214
* Enable PACKAGE_VERSION in cmake builds, this unbreaks the clang build with ↵Chris Lattner2009-01-282-2/+3
| | | | | | | | cmake. Patch by Piotr Rak! llvm-svn: 63213
* Make isOperationLegal do what its name suggests, and introduce aDan Gohman2009-01-286-57/+72
| | | | | | | | | | | | | | | new isOperationLegalOrCustom, which does what isOperationLegal previously did. Update a bunch of callers to use isOperationLegalOrCustom instead of isOperationLegal. In some case it wasn't obvious which behavior is desired; when in doubt I changed then to isOperationLegalOrCustom as that preserves their previous behavior. This is for the second half of PR3376. llvm-svn: 63212
* Complete semantic checking for typedef redeclarations in C++. TheDouglas Gregor2009-01-285-17/+80
| | | | | | | rules are slightly different than in C, and now we handle both dialects properly. llvm-svn: 63211
* Remove 'NamespaceNameOnly' argument to Sema::LookupDecl(). It is unused.Steve Naroff2009-01-285-17/+11
| | | | | | Even though Sema::LookupDecl() is deprecated, it's still used all over the place. Simplifying the interface will make it easier to understand/optimize/convert. llvm-svn: 63210
* Remove 'enableLazyBuiltinCreation' argument to Sema::LookupDecl(). It is unused.Steve Naroff2009-01-283-9/+5
| | | | | | Even though Sema::LookupDecl() is deprecated, it's still used all over the place. Simplifying the interface will make it easier to understand/optimize/convert. llvm-svn: 63208
* Updated checker build.Ted Kremenek2009-01-281-1/+1
| | | | llvm-svn: 63200
* Formatting.Duncan Sands2009-01-281-8/+5
| | | | llvm-svn: 63199
* Rename getAnalysisToUpdate to getAnalysisIfAvailable.Duncan Sands2009-01-2829-85/+87
| | | | llvm-svn: 63198
* Fix PR3415 (infinite loop in EscapeAnalysis) byDuncan Sands2009-01-285-220/+0
| | | | | | deleting the escape analysis pass. llvm-svn: 63197
* The memory alignment requirement on some of the mov{h|l}p{d|s} patterns are ↵Evan Cheng2009-01-283-18/+40
| | | | | | 16-byte. That is overly strict. These instructions read / write f64 memory locations without alignment requirement. llvm-svn: 63195
* Added sse test patterns for r62979 and r63193.Mon P Wang2009-01-284-0/+254
| | | | llvm-svn: 63194
* Add shuffle splat pattern for x86 sse shifts.Mon P Wang2009-01-281-19/+23
| | | | llvm-svn: 63193
* Update comment.Ted Kremenek2009-01-281-1/+1
| | | | llvm-svn: 63192
* long long and double have 64-bit alignment on x86-64.Chris Lattner2009-01-281-0/+1
| | | | llvm-svn: 63191
* add some basic file headersChris Lattner2009-01-2813-1/+107
| | | | llvm-svn: 63188
* retain/release checker: Improve diagnostics to indicate that CF objects are ↵Ted Kremenek2009-01-282-3/+16
| | | | | | not automatically garbage collected. llvm-svn: 63187
* retain/release checker: Indicate whether a tracked object is a Core ↵Ted Kremenek2009-01-281-1/+7
| | | | | | Foundation or Objective-C object. llvm-svn: 63186
* add diagnostics files to xcode projChris Lattner2009-01-281-0/+24
| | | | llvm-svn: 63185
* retain/release checker: More diagnostic refactoring.Ted Kremenek2009-01-281-6/+4
| | | | llvm-svn: 63184
* retain/release checker: Embed an "object type" into the RetEffect/RetVal ↵Ted Kremenek2009-01-281-42/+53
| | | | | | objects to help distinguish between Objective-C and Core Foundation objects (for better diagnostics). llvm-svn: 63183
OpenPOWER on IntegriCloud