| #
a7c8cf62 |
| 16-Aug-2008 |
Daniel Dunbar <[email protected]> |
Change WarnUnsupported to ErrorUnsupported (in name and in practice). - We are beyond the point where this shows up often and when it does generating miscompiled files is bad.
llvm-svn: 54836
|
| #
ad319a73 |
| 11-Aug-2008 |
Daniel Dunbar <[email protected]> |
More #include cleaning - Remove internal uses of AST.h
llvm-svn: 54628
|
| #
c893a67f |
| 08-Aug-2008 |
Chris Lattner <[email protected]> |
update to make IRBuilder API change.
llvm-svn: 54548
|
| #
0f398c44 |
| 26-Jul-2008 |
Chris Lattner <[email protected]> |
remove uses of QualType::getCanonicalType() from codegen for PR2189
llvm-svn: 54107
|
| #
08e17118 |
| 17-Jun-2008 |
Ted Kremenek <[email protected]> |
This patch is motivated by numerous strict-aliasing warnings when compiling clang as a Release build.
The big change is that all AST nodes (subclasses of Stmt) whose children are Expr* store their c
This patch is motivated by numerous strict-aliasing warnings when compiling clang as a Release build.
The big change is that all AST nodes (subclasses of Stmt) whose children are Expr* store their children as Stmt* or arrays of Stmt*. This is to remove strict-aliasing warnings when using StmtIterator. None of the interfaces of any of the classes have changed (except those with arg_iterators, see below), as the accessor methods introduce the needed casts (via cast<>). While this extra casting may seem cumbersome, it actually adds some important sanity checks throughout the codebase, as clients using StmtIterator can potentially overwrite children that are expected to be Expr* with Stmt* (that aren't Expr*). The casts provide extra sanity checks that are operational in debug builds to catch invariant violations such as these.
For classes that have arg_iterators (e.g., CallExpr), the definition of arg_iterator has been replaced. Instead of it being Expr**, it is an actual class (called ExprIterator) that wraps a Stmt**, and provides the necessary operators for iteration. The nice thing about this class is that it also uses cast<> to type-checking, which introduces extra sanity checks throughout the codebase that are useful for debugging.
A few of the CodeGen functions that use arg_iterator (especially from OverloadExpr) have been modified to take begin and end iterators instead of a base Expr** and the number of arguments. This matches more with the abstraction of iteration. This still needs to be cleaned up a little bit, as clients expect that ExprIterator is a RandomAccessIterator (which we may or may not wish to allow for efficiency of representation).
This is a fairly large patch. It passes the tests (except CodeGen/bitfield.c, which was already broken) on both a Debug and Release build, but it should obviously be reviewed.
llvm-svn: 52378
show more ...
|
|
Revision tags: llvmorg-2.3.0 |
|
| #
dd7406e6 |
| 13-May-2008 |
Eli Friedman <[email protected]> |
Add support for init lists for complex variables.
llvm-svn: 51080
|
| #
1e151816 |
| 04-May-2008 |
Chris Lattner <[email protected]> |
use simplified API for making fp constants.
llvm-svn: 50623
|
| #
61705c1a |
| 13-Apr-2008 |
Chris Lattner <[email protected]> |
update to follow mainline llvm API change.
llvm-svn: 49607
|
| #
aa9c7aed |
| 08-Apr-2008 |
Chris Lattner <[email protected]> |
Add support for C++ default arguments, and rework Parse-Sema interaction for function parameters, fixing PR2046.
Patch by Doug Gregor!
llvm-svn: 49369
|
| #
d36afd7d |
| 06-Apr-2008 |
Gabor Greif <[email protected]> |
tracking API changes arising from r49277
llvm-svn: 49279
|
| #
f3bc75af |
| 04-Apr-2008 |
Chris Lattner <[email protected]> |
Since isComplexType() no longer returns true for _Complex integers, the code generator needs to call isAnyComplexType(). This fixes PR1960.
llvm-svn: 49220
|
| #
3e593cdb |
| 19-Mar-2008 |
Chris Lattner <[email protected]> |
simplify the clang codegen by using the new Builder.CreateStructGEP method.
llvm-svn: 48534
|
| #
7a51313d |
| 15-Mar-2008 |
Chris Lattner <[email protected]> |
Make a major restructuring of the clang tree: introduce a top-level lib dir and move all the libraries into it. This follows the main llvm tree, and allows the libraries to be built in parallel. Th
Make a major restructuring of the clang tree: introduce a top-level lib dir and move all the libraries into it. This follows the main llvm tree, and allows the libraries to be built in parallel. The top level now enforces that all the libs are built before Driver, but we don't care what order the libs are built in. This speeds up parallel builds, particularly incremental ones.
llvm-svn: 48402
show more ...
|