- Oct 06, 2008
-
-
Chris Lattner authored
constant lvalue. Implement this in codegen by moving the code out of CGBuiltin into EmitConstantExpr. llvm-svn: 57163
-
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
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
-
- Sep 30, 2008
-
-
Mon P Wang authored
llvm-svn: 56830
-
- Sep 03, 2008
-
-
Daniel Dunbar authored
- Currently CodeGen always returns a conservative value for this (-1 or 0 depending on the context). llvm-svn: 55735
-
- Aug 30, 2008
-
-
Anders Carlsson authored
llvm-svn: 55567
-
- Aug 16, 2008
-
-
Daniel Dunbar authored
- We are beyond the point where this shows up often and when it does generating miscompiled files is bad. llvm-svn: 54836
-
- Aug 11, 2008
-
-
Daniel Dunbar authored
- Kill unnecessary #includes in .cpp files. This is an automatic sweep so some things removed are actually used, but happen to be included by a previous header. I tried to get rid of the obvious examples and this was the easiest way to trim the #includes in one fell swoop. - We now return to regularly scheduled development. llvm-svn: 54632
-
Daniel Dunbar authored
- Drop {Decl.h,DeclObjC.h,IdentifierTable.h} from Expr.h - Moved Sema::getCurMethodDecl() out of line (dependent on ObjCMethodDecl via dyn_cast). llvm-svn: 54629
-
- Jul 31, 2008
-
-
Mon P Wang authored
different address spaces) for llvm r54195. llvm-svn: 54241
-
- Jul 25, 2008
-
-
Nate Begeman authored
llvm-svn: 54049
-
- Jul 23, 2008
-
-
Chris Lattner authored
llvm-svn: 53948
-
- Jul 22, 2008
-
-
Daniel Dunbar authored
This subsumes Nico Weber's patch and implements bzero in terms of llvm.memset to match llvm-gcc. llvm-svn: 53888
-
Daniel Dunbar authored
This closes <rdar://problem/6080720>, support for __builtin_constant_p has been filed separately. llvm-svn: 53885
-
- Jul 21, 2008
-
-
Daniel Dunbar authored
llvm-svn: 53878
-
Daniel Dunbar authored
llvm-svn: 53866
-
Daniel Dunbar authored
+ test case llvm-svn: 53851
-
- Jul 18, 2008
-
-
Mon P Wang authored
llvm-svn: 53747
-
- Jul 09, 2008
-
-
Chris Lattner authored
llvm-svn: 53329
-
- Jun 30, 2008
-
-
Chris Lattner authored
1) add a new ASTContext::getFloatTypeSemantics method. 2) Use it from SemaExpr.cpp, CodeGenTypes.cpp and other places. 3) Change the TargetInfo.h get*Format methods to return their fltSemantics byref instead of by pointer. 4) Change CodeGenFunction::EmitBuiltinExpr to allow builtins which sometimes expand specially and othertimes fall back to libm. 5) Add support for __builtin_nan("") to codegen, cases that don't pass in an empty string are currently lowered to libm calls. 6) Fix codegen of __builtin_infl. llvm-svn: 52914
-
- Jun 25, 2008
-
-
Mon P Wang authored
llvm-svn: 52707
-
- Jun 17, 2008
-
-
Ted Kremenek authored
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
-
- Jun 16, 2008
-
-
Chris Lattner authored
This fixes use of alloca on 64-bit systems. llvm-svn: 52334
-
- Jun 14, 2008
-
-
Eli Friedman authored
qualifier in the lvalue, and changes lvalue loads/stores to honor the volatile flag. Places which need some further attention are marked with FIXMEs. Patch by Cédric Venet. llvm-svn: 52264
-
- May 27, 2008
-
-
Eli Friedman authored
llvm-svn: 51595
-
- May 20, 2008
-
-
Eli Friedman authored
llvm-svn: 51309
-
Eli Friedman authored
llvm-svn: 51282
-
- May 16, 2008
-
-
Nate Begeman authored
llvm-svn: 51199
-
- May 15, 2008
-
-
Nate Begeman authored
intrin.h files are finished llvm-svn: 51137
-
- May 10, 2008
-
-
Mon P Wang authored
llvm-svn: 50919
-
- May 06, 2008
-
-
Chris Lattner authored
llvm-svn: 50694
-
- May 04, 2008
-
-
Chris Lattner authored
llvm-svn: 50623
-
- Apr 14, 2008
-
-
Nate Begeman authored
llvm-svn: 49633
-
- Apr 04, 2008
-
-
Torok Edwin authored
llvm-svn: 49209
-
- Apr 03, 2008
-
-
Nate Begeman authored
llvm-svn: 49186
-
- Mar 16, 2008
-
-
Chris Lattner authored
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
-
- Feb 09, 2008
-
-
Anders Carlsson authored
llvm-svn: 46911
-
- Feb 06, 2008
-
-
Anders Carlsson authored
llvm-svn: 46811
-
Nate Begeman authored
llvm-svn: 46783
-