- Jan 28, 2009
-
-
Douglas Gregor authored
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
-
- Jan 24, 2009
-
-
Eli Friedman authored
Note that there are still other issues in this area; see PR3396. llvm-svn: 62942
-
Eli Friedman authored
sizeof expressions. llvm-svn: 62941
-
Chris Lattner authored
alignment must always be a constant. Just let the constant folder do it. llvm-svn: 62933
-
- Jan 23, 2009
-
-
Daniel Dunbar authored
- <rdar://problem/6518844> Clang-generated bitcode crashes LLVM while compiling function pointer addition expression llvm-svn: 62857
-
- Jan 20, 2009
-
-
Eli Friedman authored
struct. llvm-svn: 62585
-
- Jan 18, 2009
-
-
Nate Begeman authored
llvm-svn: 62458
-
- Jan 16, 2009
-
-
Fariborz Jahanian authored
llvm-svn: 62335
-
Fariborz Jahanian authored
in code gen. llvm-svn: 62326
-
Fariborz Jahanian authored
llvm-svn: 62289
-
- Jan 12, 2009
-
-
Nuno Lopes authored
make ScalarExprEmitter::EmitCompare() emit the expression with the correct type instead of always zext it to an int this fixes codegen of simple exprs in C++ like 'if (x != 0)' llvm-svn: 62060
-
- Jan 09, 2009
-
-
Daniel Dunbar authored
llvm-svn: 61993
-
- Dec 21, 2008
-
-
Anders Carlsson authored
llvm-svn: 61314
-
Anders Carlsson authored
llvm-svn: 61305
-
Anders Carlsson authored
llvm-svn: 61301
-
Eli Friedman authored
simple test that actually does VLA codegen. Note that despite the fact that the alloca isn't in the entry block, it should dominate all uses; this is guaranteed by the restrictions on goto into VLA scope in C99. llvm-svn: 61291
-
- Dec 13, 2008
-
-
Chris Lattner authored
llvm-svn: 60989
-
- Dec 12, 2008
-
-
Anders Carlsson authored
llvm-svn: 60943
-
- Dec 02, 2008
-
-
Eli Friedman authored
ScalarExprEmitter::VisitBinLOr. llvm-svn: 60415
-
- Nov 22, 2008
-
-
Fariborz Jahanian authored
llvm-svn: 59886
-
- Nov 19, 2008
-
-
Daniel Dunbar authored
llvm-svn: 59622
-
Daniel Dunbar authored
value). - Use extra argument to EmitStoreThroughLValue to provide place to write update bit-field value if caller requires it. - This fixes several FIXMEs. llvm-svn: 59615
-
- Nov 16, 2008
-
-
Chris Lattner authored
llvm-svn: 59404
-
- Nov 13, 2008
-
-
Daniel Dunbar authored
- Use dotted notation for blocks related to a particular statement type. - Use .end for landing pads. No functionality change in NDEBUG mode. :) llvm-svn: 59210
-
- Nov 12, 2008
-
-
Daniel Dunbar authored
what "cond.?" means, and this avoids quoting). llvm-svn: 59128
-
Chris Lattner authored
This cuts another 200 lines off expr.ll, forming 23 selects. llvm-svn: 59124
-
Chris Lattner authored
This happens for stuff like this: x = cond1 || cond2 || cond3 || cond4; llvm-svn: 59123
-
Chris Lattner authored
constant folding. llvm-svn: 59121
-
Chris Lattner authored
shrinks code yet again by a bit. llvm-svn: 59114
-
Chris Lattner authored
CodeGenFunction.cpp. Change VisitConditionalOperator to use constant fold instead of codegen'ing a constant conditional. Change ForStmt to use EmitBranchOnBoolExpr, this shrinks expr.c very slightly to 40239 lines. llvm-svn: 59113
-
Chris Lattner authored
llvm-svn: 59103
-
Daniel Dunbar authored
llvm-svn: 59095
-
Daniel Dunbar authored
- EmitStmt is no longer required to finish with a current insertion point defined (i.e. it does not need to make dummy blocks). Instead, it can clear the insertion point in the builder which indicates that the current insertion point is unreachable. - CodeGenFunction provides HaveInsertPoint and EnsureInsertPoint which respectively test if there is an insert point and ensure an insertion point exists (by making a dummy block). - Clearly mark functions in CodeGenFunction which can be called with no insertion point defined. Currently this is a limited set, and EmitStmt simply EnsureInsertPoint()s before emitting subsequent IR. Remove EmitDummyBlock, which is no longer needed. Clients who haven't already cleared the insertion point (typically via EmitBranch) can do so by hand. Remove isDummyBlock, which has effectively been renamed to HaveInsertPoint. The main thrust of this change is that we no longer have create dummy blocks just to destroy them a short time later in EmitBlock in the common case that there is no unreachable code following something like a goto. Additionally, this means that we are not using the hokey condition in isDummyBlock that a block without a name is a dummy block. Guess how well that works when we never emit block names! llvm-svn: 59089
-
- Nov 11, 2008
-
-
Chris Lattner authored
llvm-svn: 59061
-
Sebastian Redl authored
Introduce a single AST node SizeOfAlignOfExpr for all sizeof and alignof expressions, both of values and types. llvm-svn: 59057
-
Daniel Dunbar authored
- Emits an unconditional branch, with extra logic to avoid generating spurious branches out of dummy blocks. llvm-svn: 59037
-
Chris Lattner authored
the size of the -O0 output on some cases. For example, on expr.c from 176.gcc, it shrinks the .ll file from 43164 to 42835 lines, and removed references to two external symbols. llvm-svn: 59034
-
Daniel Dunbar authored
- No functionality change. llvm-svn: 59017
-
- Nov 04, 2008
-
-
Anders Carlsson authored
llvm-svn: 58681
-
- Nov 01, 2008
-
-
Daniel Dunbar authored
- No functionality change. llvm-svn: 58546
-