Ted Kremenek
c783209605
retain/release checker: Always generate an "autorelease" summary for an "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
2009-01-28 21:44:40 +00:00
Dan Gohman
511d5ece2b
SDOperand has been renamed to SDValue. SDNode::Val is now
...
accessed via SDNode::getNode.
llvm-svn: 63240
2009-01-28 21:36:46 +00:00
Dan Gohman
f52ac41566
Add more comments describing SDNode operator codes.
...
llvm-svn: 63239
2009-01-28 21:34:36 +00:00
Daniel Dunbar
804c0441c2
Handle complex types in ASTContext::mergeTypes
...
llvm-svn: 63238
2009-01-28 21:22:12 +00:00
Ted Kremenek
f675864e3c
Add autorelease test case.
...
llvm-svn: 63237
2009-01-28 21:20:48 +00:00
Dale Johannesen
666bf20441
Add DebugLoc-aware constructors for SDNode derived
...
classes (those that reasonably have a DebugLoc
associated with them).
llvm-svn: 63236
2009-01-28 21:18:29 +00:00
Dan Gohman
7a1b4538a0
Add some comments on ISD::NodeType.
...
llvm-svn: 63234
2009-01-28 21:13:08 +00:00
Devang Patel
d7ecb3b661
Do not forget to derived type while constructing an array type.
...
llvm-svn: 63233
2009-01-28 21:08:20 +00:00
Ted Kremenek
62224c1d7f
Add more PTH diagnostics for invalid PTH files, etc.
...
llvm-svn: 63232
2009-01-28 21:02:43 +00:00
Ted Kremenek
3b0589e4b4
Enhance PTHManager::Create() to take an optional Diagnostic* argument that can be used to report issues such as a missing PTH file.
...
llvm-svn: 63231
2009-01-28 20:49:33 +00:00
Ted Kremenek
5241832d1d
Fix TextDiagnosticPrinter::HandleDiagnostic to handle invalid FullSourceLocs that do not have a SourceManager.
...
llvm-svn: 63230
2009-01-28 20:47:47 +00:00
Ted Kremenek
bf16554640
Add method FullSourceLoc::getBufferData().
...
llvm-svn: 63229
2009-01-28 20:46:26 +00:00
Ted Kremenek
3587d0b762
Tweak doxygen comment. No functionality change.
...
llvm-svn: 63228
2009-01-28 20:45:37 +00:00
Chris Lattner
df17987c19
Fix some issues with volatility, move "CanConvertToScalar" check
...
after the others.
llvm-svn: 63227
2009-01-28 20:16:43 +00:00
Steve Naroff
16c8e598ae
Name change (isTypeName->getTypeName).
...
Since it doesn't return a bool, is shouldn't be prefixed with 'is'.
llvm-svn: 63226
2009-01-28 19:39:02 +00:00
Daniel Dunbar
ad0d48d372
Fix test case (for -### printing version)
...
llvm-svn: 63223
2009-01-28 19:30:43 +00:00
Chris Lattner
1498e62117
strengthen this test.
...
llvm-svn: 63222
2009-01-28 19:29:30 +00:00
Daniel Dunbar
36ccb30a35
ccc: Support -v; invent a version number for ccc for now, will be
...
shared with clang eventually.
llvm-svn: 63220
2009-01-28 19:26:20 +00:00
Steve Naroff
b04867265c
Change Parser::ParseFunctionDeclarator() to annotate typename tokens.
...
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
2009-01-28 19:16:40 +00:00
Fariborz Jahanian
b042a59230
Some refactoring of common code. No change in functionality.
...
llvm-svn: 63218
2009-01-28 19:12:34 +00:00
Mon P Wang
a15ea78ea6
Fixed extract element when the result needs to be promoted and the input widened.
...
llvm-svn: 63217
2009-01-28 18:53:39 +00:00
Sebastian Redl
ed8f200318
Implement pointer to member handling in static_cast.
...
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
2009-01-28 18:33:18 +00:00
Dan Gohman
e7d7b0c2fd
Delete unnecessary elses.
...
llvm-svn: 63214
2009-01-28 18:03:09 +00:00
Chris Lattner
ff2d99d94b
Enable PACKAGE_VERSION in cmake builds, this unbreaks the clang build with cmake.
...
Patch by Piotr Rak!
llvm-svn: 63213
2009-01-28 17:49:03 +00:00
Dan Gohman
4aa1846215
Make isOperationLegal do what its name suggests, and introduce a
...
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
2009-01-28 17:46:25 +00:00
Douglas Gregor
fb03466388
Complete semantic checking for typedef redeclarations in C++. The
...
rules are slightly different than in C, and now we handle both
dialects properly.
llvm-svn: 63211
2009-01-28 17:15:10 +00:00
Steve Naroff
aec0f37d11
Remove 'NamespaceNameOnly' argument to Sema::LookupDecl(). It is unused.
...
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
2009-01-28 16:09:22 +00:00
Steve Naroff
49f97d7eb2
Remove 'enableLazyBuiltinCreation' argument to Sema::LookupDecl(). It is unused.
...
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
2009-01-28 15:51:12 +00:00
Ted Kremenek
cdca288cf8
Updated checker build.
...
llvm-svn: 63200
2009-01-28 15:05:42 +00:00
Duncan Sands
ba21b7d57a
Formatting.
...
llvm-svn: 63199
2009-01-28 14:42:54 +00:00
Duncan Sands
5a913d61e3
Rename getAnalysisToUpdate to getAnalysisIfAvailable.
...
llvm-svn: 63198
2009-01-28 13:14:17 +00:00
Duncan Sands
08e53d041f
Fix PR3415 (infinite loop in EscapeAnalysis) by
...
deleting the escape analysis pass.
llvm-svn: 63197
2009-01-28 11:33:59 +00:00
Evan Cheng
f31f288863
The memory alignment requirement on some of the mov{h|l}p{d|s} patterns are 16-byte. That is overly strict. These instructions read / write f64 memory locations without alignment requirement.
...
llvm-svn: 63195
2009-01-28 08:35:02 +00:00
Mon P Wang
d880efc005
Added sse test patterns for r62979 and r63193.
...
llvm-svn: 63194
2009-01-28 08:13:56 +00:00
Mon P Wang
5a685a52c1
Add shuffle splat pattern for x86 sse shifts.
...
llvm-svn: 63193
2009-01-28 08:12:05 +00:00
Ted Kremenek
882214b676
Update comment.
...
llvm-svn: 63192
2009-01-28 07:10:33 +00:00
Chris Lattner
22ebe7ba66
long long and double have 64-bit alignment on x86-64.
...
llvm-svn: 63191
2009-01-28 06:58:19 +00:00
Chris Lattner
5fdc227326
add some basic file headers
...
llvm-svn: 63188
2009-01-28 06:31:57 +00:00
Ted Kremenek
4daeccf28f
retain/release checker: Improve diagnostics to indicate that CF objects are not automatically garbage collected.
...
llvm-svn: 63187
2009-01-28 06:25:48 +00:00
Ted Kremenek
f0ec316a04
retain/release checker: Indicate whether a tracked object is a Core Foundation or Objective-C object.
...
llvm-svn: 63186
2009-01-28 06:06:36 +00:00
Chris Lattner
e1d49c2572
add diagnostics files to xcode proj
...
llvm-svn: 63185
2009-01-28 06:02:52 +00:00
Ted Kremenek
bdaa384453
retain/release checker: More diagnostic refactoring.
...
llvm-svn: 63184
2009-01-28 06:01:42 +00:00
Ted Kremenek
aeb115f93a
retain/release checker: Embed an "object type" into the RetEffect/RetVal objects to help distinguish between Objective-C and Core Foundation objects (for better diagnostics).
...
llvm-svn: 63183
2009-01-28 05:56:51 +00:00
Chris Lattner
64d8fc25d6
fix a crash I introduced, thanks to Ted for the awesome reduced
...
testcase :)
llvm-svn: 63182
2009-01-28 05:42:38 +00:00
Ted Kremenek
21114f21c4
retain/release checker: More cleanups (no real functionality change).
...
llvm-svn: 63181
2009-01-28 05:29:13 +00:00
Ted Kremenek
ff3c2bdfee
Fix diagnostic truncated by my last patch.
...
llvm-svn: 63180
2009-01-28 05:18:08 +00:00
Ted Kremenek
758fda632b
retain/release checker: More diagnostic refactoring.
...
llvm-svn: 63179
2009-01-28 05:15:02 +00:00
Ted Kremenek
c4118ac79c
retain/release checker: Output the name of the function that allocates an object.
...
llvm-svn: 63178
2009-01-28 05:06:46 +00:00
Ted Kremenek
424c61ff6d
Refactor some diagnostic code to use raw_string_ostream. No functionality change.
...
llvm-svn: 63177
2009-01-28 04:47:13 +00:00
Ted Kremenek
99ae4120d6
Remove '#if 0' code.
...
llvm-svn: 63176
2009-01-28 04:37:52 +00:00