- 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
-
- Feb 01, 2008
-
-
Anders Carlsson authored
llvm-svn: 46639
-
Anders Carlsson authored
llvm-svn: 46627
-
- Jan 30, 2008
-
-
Eli Friedman authored
codegen of calls to functions without a prototype and varargs functions, including printf. llvm-svn: 46543
-
- Jan 17, 2008
-
-
Nate Begeman authored
llvm-svn: 46136
-
Nate Begeman authored
__builtin_overload takes 2 or more arguments: 0) a non-zero constant-expr for the number of arguments the overloaded functions will take 1) the arguments to pass to the matching overloaded function 2) a list of functions to match. The return type of __builtin_overload is inferred from the function whose args match the types of the arguments passed to the builtin. For example: float a; float sinf(float); int sini(int); float b = __builtin_overload(1, a, sini, sinf); Says that we are overloading functions that take one argument, and trying to pass an argument of the same type as 'a'. sini() does not match since it takes and argument of type int. sinf does match, so at codegen time this will turn into float b = sinf(a); llvm-svn: 46132
-
- Dec 29, 2007
-
-
Chris Lattner authored
discussion of this change. llvm-svn: 45410
-
- Dec 20, 2007
-
-
Chris Lattner authored
llvm-svn: 45243
-
- Dec 18, 2007
-
-
Chris Lattner authored
Intrinsic::getDeclaration, allowing much more terse code. llvm-svn: 45136
-
- Dec 17, 2007
-
-
Christopher Lamb authored
llvm-svn: 45081
-
- Dec 16, 2007
-
-
Anders Carlsson authored
llvm-svn: 45079
-
- Dec 15, 2007
-
-
Anders Carlsson authored
llvm-svn: 45062
-
- Dec 14, 2007
-
-
Anders Carlsson authored
llvm-svn: 45035
-
- Dec 13, 2007
-
-
Chris Lattner authored
llvm-svn: 44996
-
Chris Lattner authored
llvm-svn: 44994
-
- Dec 11, 2007
-
-
Chris Lattner authored
llvm-svn: 44844
-
Anders Carlsson authored
llvm-svn: 44841
-
Anders Carlsson authored
llvm-svn: 44839
-
- Dec 10, 2007
-
-
Anders Carlsson authored
llvm-svn: 44749
-