llvm-project/clang/AST
Chris Lattner 9561a0b3e7 Add support for target-independent builtin functions (like __builtin_abs),
whose decl objects are lazily created the first time they are referenced.
Builtin functions are described by the clang/AST/Builtins.def file, which
makes it easy to add new ones.

This is missing two important pieces:
1. Support for the rest of the gcc builtins.
2. Support for target-specific builtins (e.g. __builtin_ia32_emms).

Just adding this builtins reduces the number of implicit function definitions
by 6, reducing the # diagnostics from 550 to 544 when parsing carbon.h.

I need to add all the i386-specific ones to eliminate several hundred more.
ugh.

llvm-svn: 39327
2007-01-28 08:20:04 +00:00
..
ASTContext.cpp Add support for target-independent builtin functions (like __builtin_abs), 2007-01-28 08:20:04 +00:00
ASTStreamer.cpp start gather stats on types processed. carbon.h currently yields: 2007-01-26 01:27:23 +00:00
Builtins.cpp Add support for target-independent builtin functions (like __builtin_abs), 2007-01-28 08:20:04 +00:00
Decl.cpp Create EnumConstantDecl objects for each enum value, and fill them into 2007-01-25 07:29:02 +00:00
Expr.cpp pretty print postfix ++/-- nicer 2006-11-05 23:54:51 +00:00
Makefile Fix these to allow clang to be in any dir. 2006-10-26 04:56:55 +00:00
Sema.cpp Add support for C90 implicitly defined functions, e.g.: 2006-11-20 06:49:47 +00:00
Sema.h Add support for target-independent builtin functions (like __builtin_abs), 2007-01-28 08:20:04 +00:00
SemaDecl.cpp Add support for target-independent builtin functions (like __builtin_abs), 2007-01-28 08:20:04 +00:00
SemaExpr.cpp Add support for target-independent builtin functions (like __builtin_abs), 2007-01-28 08:20:04 +00:00
SemaExprCXX.cpp Add support for parsing and pretty printing const_cast, dynamic_cast, 2006-12-04 18:06:35 +00:00
SemaStmt.cpp move semantic analysis of break/continue out of the parser into the sema class. 2006-11-10 05:17:58 +00:00
SemaType.cpp rename some classes, no functionality changes. 2007-01-26 02:01:53 +00:00
Stmt.cpp Add support for parsing and pretty printing const_cast, dynamic_cast, 2006-12-04 18:06:35 +00:00
StmtPrinter.cpp Add support for parsing and pretty printing const_cast, dynamic_cast, 2006-12-04 18:06:35 +00:00
StmtVisitor.cpp Add support for parsing and pretty printing const_cast, dynamic_cast, 2006-12-04 18:06:35 +00:00
Type.cpp Eliminate the last of the slow lookups, by making non-prototyped function types 2007-01-27 08:37:20 +00:00