Sebastian Redl
b62406f6e4
Convert some more statement parsers to smart pointers.
...
llvm-svn: 60892
2008-12-11 19:48:14 +00:00
Misha Brukman
5039be7e27
* Removed stray </p> tag
...
* Whitespace cleanups
llvm-svn: 60891
2008-12-11 19:44:51 +00:00
Steve Naroff
e4d722bf2f
Fix <rdar://problem/6435842> clang ObjC rewriter: #include Block.h, Block_private.h or come up with #define to prevent double-definition
...
llvm-svn: 60890
2008-12-11 19:43:14 +00:00
Misha Brukman
586a15c995
* <div align=center> is not valid HTML 4.01 - removed alignment
...
* <sup> cannot appear inside a <pre> - replaced <pre> with <tt> and <br>
* Added standard "Notes" section
* Sprinkled fixed-width <tt> tags in a few places for consistency
llvm-svn: 60889
2008-12-11 19:37:04 +00:00
Sebastian Redl
042ad95d4e
Convert a number of statement parsers to smart pointers.
...
llvm-svn: 60888
2008-12-11 19:30:53 +00:00
Steve Naroff
1fa7bd16c8
Fix <rdar://problem/6435382> clang ObjC rewriter: @property/@synthesize and blocks don't work together
...
llvm-svn: 60887
2008-12-11 19:29:16 +00:00
Misha Brukman
21a6370323
Removed warnings from HTML 4.01 validator: trailing slashes in <br> and <img>
...
tags are not needed in HTML, only XML.
llvm-svn: 60885
2008-12-11 18:23:24 +00:00
Misha Brukman
0091c26b2b
Conform to the HTML 4.01 Strict specification.
...
llvm-svn: 60884
2008-12-11 18:14:06 +00:00
Douglas Gregor
e029561346
Actually distinguish between RecordDecl::field_iterator and RecordDecl::field_const_iterator, propagating the constness down to the FieldDecls.
...
llvm-svn: 60883
2008-12-11 17:59:21 +00:00
Nick Lewycky
6a344e097c
Sneaky, sneaky: move the -1 to the outside of the SMax. Reinstate the
...
optimization of SGE/SLE with unit stride, now that it works properly.
llvm-svn: 60881
2008-12-11 17:40:14 +00:00
Misha Brukman
86242e1990
Global replace of yellow W3C "valid HTML/CSS" icons with blue ones.
...
llvm-svn: 60880
2008-12-11 17:34:48 +00:00
Misha Brukman
4e71ec11b0
* Fixed formatting of command descriptions to be consistent:
...
- descriptions on new line
- no terminating period
* Changed the W3C logos from yellow to blue to not stand out
llvm-svn: 60879
2008-12-11 17:12:52 +00:00
Douglas Gregor
91f84216f7
Unifies the name-lookup mechanisms used in various parts of the AST
...
and separates lexical name lookup from qualified name lookup. In
particular:
* Make DeclContext the central data structure for storing and
looking up declarations within existing declarations, e.g., members
of structs/unions/classes, enumerators in C++0x enums, members of
C++ namespaces, and (later) members of Objective-C
interfaces/implementations. DeclContext uses a lazily-constructed
data structure optimized for fast lookup (array for small contexts,
hash table for larger contexts).
* Implement C++ qualified name lookup in terms of lookup into
DeclContext.
* Implement C++ unqualified name lookup in terms of
qualified+unqualified name lookup (since unqualified lookup is not
purely lexical in C++!)
* Limit the use of the chains of declarations stored in
IdentifierInfo to those names declared lexically.
* Eliminate CXXFieldDecl, collapsing its behavior into
FieldDecl. (FieldDecl is now a ScopedDecl).
* Make RecordDecl into a DeclContext and eliminates its
Members/NumMembers fields (since one can just iterate through the
DeclContext to get the fields).
llvm-svn: 60878
2008-12-11 16:49:14 +00:00
Torok Edwin
32bfb5de34
fix grammar, thanks Duncan!
...
llvm-svn: 60875
2008-12-11 11:44:49 +00:00
Mikhail Glushenkov
8d84a7d3b7
Merge Base.td and Tools.td.
...
This stuff is not used outside Base.td, and with the conversion of the
compilation graph to string-based format became much less (if at all)
useful.
llvm-svn: 60873
2008-12-11 10:38:06 +00:00
Torok Edwin
c808012918
introduce BasicBlock::getUniquePredecessor()
...
llvm-svn: 60872
2008-12-11 10:36:07 +00:00
Mikhail Glushenkov
e30a2820f6
Put Edge* classes into anonymous namespace.
...
Prevents conflicts between plugins.
llvm-svn: 60871
2008-12-11 10:34:18 +00:00
Zhongxing Xu
26776c2784
Identify AnonPointeeRegion by the symbol that is concretized.
...
llvm-svn: 60870
2008-12-11 09:08:46 +00:00
Mon P Wang
bcdbfa854a
Avoid generating a convert_rndsat node when the src and dest type are the same.
...
llvm-svn: 60869
2008-12-11 03:30:13 +00:00
Zhongxing Xu
02fe71290a
AnonPointeeRegions are now identified by the MemRegion of the pointer pointing
...
to them.
llvm-svn: 60868
2008-12-11 02:27:34 +00:00
Bill Wendling
40d2476adc
Clarify FIXME.
...
llvm-svn: 60867
2008-12-11 01:26:44 +00:00
Mon P Wang
c68b3c4fc1
Whitespace clean up (tabs with spaces)
...
llvm-svn: 60866
2008-12-11 00:44:22 +00:00
Mon P Wang
b5eb7205ea
Make fix for r60829 less conservative to allow the proper optimization for
...
vec_extract-sse4.ll.
llvm-svn: 60865
2008-12-11 00:26:16 +00:00
Ted Kremenek
0bc1320d95
Updated checker build.
...
llvm-svn: 60864
2008-12-11 00:20:13 +00:00
Anders Carlsson
591b2224cb
Add another complex promotion test.
...
llvm-svn: 60863
2008-12-10 23:57:51 +00:00
Anders Carlsson
b05961c700
Make sure to promote expressions of the form (floating point + complex integer) correctly, to (complex floating point + complex floating point)
...
llvm-svn: 60862
2008-12-10 23:30:05 +00:00
Bill Wendling
d8681df4e7
Add a newline after this debug output.
...
llvm-svn: 60861
2008-12-10 23:24:43 +00:00
Ted Kremenek
8e1f05fc26
PreprocessorLexer (and subclasses):
...
- Added virtual method 'getSourceLocation()' (no arguments) that gets the location of the next "observable" location (e.g., next character, next token).
PPLexerChange.cpp:
- Implemented FIXME by using PreprocessorLexer::getSourceLocation() to get the location in the file we are returning to after lexing a #included file. This appears to be slightly faster than having the branch (i.e., 'if(CurLexer)'). It's also not a really hot part of the Preprocessor.
llvm-svn: 60860
2008-12-10 23:20:59 +00:00
Misha Brukman
6c2522a1cf
s/A Few Coding Standards/LLVM Coding Standards/g
...
llvm-svn: 60859
2008-12-10 23:07:02 +00:00
Douglas Gregor
85970ca84c
Added a warning when referencing an if's condition variable in the
...
"else" clause, e.g.,
if (int X = foo()) {
} else {
if (X) { // warning: X is always zero in this context
}
}
Fixes rdar://6425550 and lets me think about something other than
DeclContext.
llvm-svn: 60858
2008-12-10 23:01:14 +00:00
Bill Wendling
0864a75ebf
If ADD, SUB, or MUL have an overflow bit that's used, don't do transformation on
...
them. The DAG combiner expects that nodes that are transformed have one value
result.
llvm-svn: 60857
2008-12-10 22:36:00 +00:00
Steve Naroff
c68cfcfd03
The "real" fix for <rdar://problem/6424347> clang on xcode: Assertion failed: (0 && "unexpected type"), function mergeTypes,
...
Commit r60845 was premature.
llvm-svn: 60852
2008-12-10 22:14:21 +00:00
Evan Cheng
d5021730c8
Preliminary ARM debug support based on patch by Mikael of FlexyCore.
...
llvm-svn: 60851
2008-12-10 21:54:21 +00:00
Evan Cheng
01fa50ca4f
Some code clean up.
...
llvm-svn: 60850
2008-12-10 21:49:05 +00:00
Douglas Gregor
9aa8b55d10
Fix PR clang/3175: CheckAddressOfOperand does not handle references to class vars
...
llvm-svn: 60849
2008-12-10 21:26:49 +00:00
Douglas Gregor
872ffce257
Some cleanups to the dependent-types commit, as suggested by Sebastian
...
llvm-svn: 60848
2008-12-10 20:57:37 +00:00
Steve Naroff
13ac125edf
Fix <rdar://problem/6424347> clang on xcode: Assertion failed: (0 && "unexpected type"), function mergeTypes,
...
llvm-svn: 60845
2008-12-10 20:07:25 +00:00
Bill Wendling
517d05fd00
Only perform SETO/SETC to JO/JC conversion if extractvalue is coming from an arithmetic with overflow instruction.
...
llvm-svn: 60844
2008-12-10 19:44:24 +00:00
Ted Kremenek
d40ab7b72a
Declare PerIDCache as IdentifierInfo** instead of void*. This is just cleaner. No performance change.
...
llvm-svn: 60843
2008-12-10 19:40:23 +00:00
Steve Naroff
68e167df8e
Fix <rdar://problem/6418623> Bogus block type compatibility warning.
...
llvm-svn: 60842
2008-12-10 17:49:55 +00:00
Nuno Lopes
9499385621
fix typo. thanks Baldrick for noticing
...
llvm-svn: 60841
2008-12-10 16:11:10 +00:00
Nuno Lopes
65e877eabb
add gcc 4.1.2 from redhat to the list of broken compilers
...
llvm-svn: 60840
2008-12-10 16:01:22 +00:00
Steve Naroff
df70577b9c
Fix regression caused by fixing <rdar://problem/6429113> clang ObjC rewriter: crash rewriting file with Blocks and properties
...
llvm-svn: 60839
2008-12-10 14:53:27 +00:00
Duncan Sands
ec1b9b6869
Update these instructions to the 2.4 release.
...
llvm-svn: 60838
2008-12-10 14:24:58 +00:00
Duncan Sands
09ed3bba2b
For amusement, implement SADDO, SSUBO, UADDO, USUBO
...
for promoted integer types, eg: i16 on ppc-32, or
i24 on any platform. Complete support for arbitrary
precision integers would require handling expanded
integer types, eg: i128, but I couldn't be bothered.
llvm-svn: 60834
2008-12-10 12:30:42 +00:00
Duncan Sands
8aace1fd08
Mention the Ada and Fortran front-ends.
...
llvm-svn: 60833
2008-12-10 10:50:58 +00:00
Duncan Sands
c52b616ccf
Don't dereference the end() iterator. This was
...
causing a bunch of failures when running
"make ENABLE_EXPENSIVE_CHECKS=1 check".
llvm-svn: 60832
2008-12-10 09:38:36 +00:00
Mon P Wang
68d4eee062
Added a little more information that vector shifts require vector shift amount.
...
llvm-svn: 60831
2008-12-10 08:55:09 +00:00
Douglas Gregor
7307d6ca96
Use a scoped object to manage entry/exit from a parser scope rather than explicitly calling EnterScope/ExitScope
...
llvm-svn: 60830
2008-12-10 06:34:36 +00:00
Mon P Wang
4637c3c698
Fixed a bug when trying to optimize a extract vector element of a
...
bit convert that changes the number of elements of a shuffle.
llvm-svn: 60829
2008-12-10 03:59:02 +00:00