- Oct 06, 2008
-
-
Ted Kremenek authored
llvm-svn: 57180
-
Devang Patel authored
llvm-svn: 57179
-
Argyrios Kyrtzidis authored
This is how this kind of initializers appear in the AST: -The Init expression of the VarDecl is a functional type construction (of the VarDecl's type). -The new VarDecl::hasCXXDirectInitializer() returns true. e.g, for "int x(1);": -VarDecl 'x' has Init with expression "int(1)" (CXXFunctionalCastExpr). -hasCXXDirectInitializer() of VarDecl 'x' returns true. A major benefit is that clients that don't particularly care about which exactly form was the initializer can handle both cases without special case code. Note that codegening works now for "int x(1);" without any changes to CodeGen. llvm-svn: 57178
-
Matthijs Kooijman authored
This includes not marking a GEP involving a vector as unsafe, but only when it has all zero indices. This allows scalarrepl to work in a few more cases. llvm-svn: 57177
-
Ted Kremenek authored
llvm-svn: 57176
-
Duncan Sands authored
Before there were two problems: (1) configure turned "obj-c++" into "obj" in the langs line; (2) the dejagnu library called it objc++ not obj-c++. Now the problem is that some of these tests don't pass! llvm-svn: 57167
-
Duncan Sands authored
readnone. Make clearer that readnone functions do not dereference pointer arguments. Do not use the highly ambiguous "side-effects" in the readonly description (since such functions can have control flow side-effects, such as throwing an exception, or looping for ever). llvm-svn: 57166
-
Chris Lattner authored
llvm-svn: 57165
-
Chris Lattner authored
won't expand to the builtin. This fixes rdar://6248329 llvm-svn: 57164
-
Chris Lattner authored
constant lvalue. Implement this in codegen by moving the code out of CGBuiltin into EmitConstantExpr. llvm-svn: 57163
-
Chris Lattner authored
llvm-svn: 57162
-
Chris Lattner authored
it is possible that a builtin could sometimes be folded (e.g. __builtin_clz) if it's operand is a constant. llvm-svn: 57161
-
Chris Lattner authored
depend on the value of this flag, it should depend on whether tryEvaluate is able to *actually* fold a builtin. llvm-svn: 57160
-
Chris Lattner authored
which is checking for something that can be inconsistent with what we can constant fold. llvm-svn: 57159
-
Chris Lattner authored
interface into the constant folding interface. llvm-svn: 57158
-
Chris Lattner authored
llvm-svn: 57157
-
Chris Lattner authored
do it instead. We should still handle __builtin_nan etc, but don't yet. This fixes incorrect evaluation of __builtin_constant_p, a FIXME. llvm-svn: 57156
-
Chris Lattner authored
constants for them, just use the constant evaluator to do the job. This also fixes crashes on 'unknown constant builtins'. llvm-svn: 57155
-
Chris Lattner authored
llvm-svn: 57154
-
Chris Lattner authored
condition as a constant even if the unevaluated side is a not a constant. We don't do this when extensions are off, and we emit a warning when this happens: t.c:22:11: warning: expression is not a constant, but is accepted as one by GNU extensions short t = __builtin_constant_p(5353) ? 42 : somefunc(); ^ ~~~~~~~~~~ suggestions for improvement are welcome. This is obviously horrible, but is required for real-world code. llvm-svn: 57153
-
Chris Lattner authored
__builtin_constant_p properly, and add some scaffolding for FloatExprEvaluator to eventually handle huge_val and inf. llvm-svn: 57152
-
Chris Lattner authored
code. llvm-svn: 57151
-
Anders Carlsson authored
llvm-svn: 57150
-
Chris Lattner authored
llvm-svn: 57149
-
Chris Lattner authored
llvm-svn: 57148
-
Chris Lattner authored
llvm-svn: 57147
-
Zhongxing Xu authored
llvm-svn: 57146
-
Anders Carlsson authored
llvm-svn: 57145
-
Anders Carlsson authored
llvm-svn: 57144
-
Argyrios Kyrtzidis authored
llvm-svn: 57143
-
Anders Carlsson authored
llvm-svn: 57142
-
Argyrios Kyrtzidis authored
llvm-svn: 57141
-
- Oct 05, 2008
-
-
Chris Lattner authored
llvm-svn: 57140
-
Chris Lattner authored
target indep code. llvm-svn: 57139
-
Chris Lattner authored
llvm-svn: 57138
-
Chris Lattner authored
llvm-svn: 57137
-
Argyrios Kyrtzidis authored
No funcitonality change. llvm-svn: 57136
-
Daniel Dunbar authored
llvm-svn: 57135
-
Chris Lattner authored
llvm-svn: 57134
-
Daniel Dunbar authored
gcc). llvm-svn: 57133
-