Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix a typo. | Lauro Ramos Venancio | 2008-01-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 46259 | |||||
* | Implement bitfield write. | Lauro Ramos Venancio | 2008-01-22 | 2 | -2/+38 | |
| | | | | llvm-svn: 46258 | |||||
* | Implement bitfield read. | Lauro Ramos Venancio | 2008-01-22 | 3 | -14/+73 | |
| | | | | llvm-svn: 46257 | |||||
* | Fix two bugs in bitfield codegen. | Lauro Ramos Venancio | 2008-01-22 | 1 | -2/+2 | |
| | | | | llvm-svn: 46255 | |||||
* | Simplify the bitfield codegen. | Lauro Ramos Venancio | 2008-01-21 | 2 | -186/+104 | |
| | | | | llvm-svn: 46230 | |||||
* | Assert that the type of the cast is equal to the _unqualified_ type of the ↵ | Anders Carlsson | 2008-01-18 | 1 | -1/+1 | |
| | | | | | | subexpression. Fixes a problem spotted by Nuno Lopes. llvm-svn: 46158 | |||||
* | Match change in EmitCallExpr | Nate Begeman | 2008-01-17 | 1 | -2/+2 | |
| | | | | llvm-svn: 46136 | |||||
* | Fix for EmitCallExpr changed in OverloadExpr patch | Nate Begeman | 2008-01-17 | 1 | -1/+1 | |
| | | | | llvm-svn: 46135 | |||||
* | Implement basic overload support via a new builtin, __builtin_overload. | Nate Begeman | 2008-01-17 | 4 | -23/+32 | |
| | | | | | | | | | | | | | | | | | | | | | | | | __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 | |||||
* | Add codegen upport for implicit casts to aggregate exprs. | Anders Carlsson | 2008-01-14 | 1 | -1/+11 | |
| | | | | llvm-svn: 45954 | |||||
* | Fix the type of predefined identifiers like __func__. Patch by | Chris Lattner | 2008-01-12 | 1 | -3/+0 | |
| | | | | | | Eli Friedman! llvm-svn: 45906 | |||||
* | Add first pieces of support for parsing and representing | Chris Lattner | 2008-01-12 | 3 | -0/+25 | |
| | | | | | | extern "C" in C++ mode. Patch by Mike Stump! llvm-svn: 45904 | |||||
* | implement proper support for _Bool in memory, which is usually i8, not i1. | Chris Lattner | 2008-01-09 | 4 | -8/+36 | |
| | | | | | | This fixes a crash reported by Seo Sanghyeon llvm-svn: 45778 | |||||
* | Substituted all instances of the string "Objc" for "ObjC". This fixes | Ted Kremenek | 2008-01-07 | 2 | -4/+4 | |
| | | | | | | | some naming inconsistencies in the names of classes pertaining to Objective-C support in clang. llvm-svn: 45715 | |||||
* | fix long lines. | Chris Lattner | 2008-01-03 | 1 | -3/+3 | |
| | | | | llvm-svn: 45531 | |||||
* | Fix a crash reported by Seo Sanghyeon. | Chris Lattner | 2008-01-03 | 2 | -4/+25 | |
| | | | | llvm-svn: 45530 | |||||
* | Allow implicit casts during arithmetic for OCUVector operations | Nate Begeman | 2007-12-30 | 2 | -3/+14 | |
| | | | | | | Add codegen support and test for said casts. llvm-svn: 45443 | |||||
* | Allow codegen of vector fdiv | Nate Begeman | 2007-12-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 45440 | |||||
* | implement codegen support for most unary operators when | Chris Lattner | 2007-12-29 | 1 | -1/+36 | |
| | | | | | | | initializing a global. This handles important cases like: float foo3 = -0.01f; llvm-svn: 45427 | |||||
* | remove attribution from makefiles. | Chris Lattner | 2007-12-29 | 1 | -2/+2 | |
| | | | | llvm-svn: 45412 | |||||
* | Don't attribute in file headers anymore. See llvmdev for the | Chris Lattner | 2007-12-29 | 15 | -30/+30 | |
| | | | | | | discussion of this change. llvm-svn: 45410 | |||||
* | Enable CodeGen for member expressions based on call expressions returning ↵ | Christopher Lamb | 2007-12-29 | 2 | -0/+10 | |
| | | | | | | aggregate types. This enables expressions like 'foo().member.submember'. llvm-svn: 45395 | |||||
* | Make MemberExpr code safe w.r.t. address spaces. | Christopher Lamb | 2007-12-29 | 1 | -2/+2 | |
| | | | | llvm-svn: 45394 | |||||
* | No need to do work that the folding builder does for us. | Anders Carlsson | 2007-12-26 | 1 | -37/+14 | |
| | | | | llvm-svn: 45361 | |||||
* | Remove broken assert from CodeGen. Better check is done in Sema. | Seo Sanghyeon | 2007-12-26 | 1 | -4/+1 | |
| | | | | llvm-svn: 45358 | |||||
* | String literal in aggregate expression | Seo Sanghyeon | 2007-12-23 | 1 | -0/+1 | |
| | | | | llvm-svn: 45330 | |||||
* | Convert opaque type when struct definition is seen. | Devang Patel | 2007-12-21 | 1 | -9/+37 | |
| | | | | llvm-svn: 45287 | |||||
* | Keep track of llvm struct size while adding fields. | Devang Patel | 2007-12-21 | 1 | -16/+25 | |
| | | | | | | Update addPaddingFields() interface. llvm-svn: 45284 | |||||
* | Implement codegen for ordered comparison builtins. | Chris Lattner | 2007-12-20 | 1 | -0/+36 | |
| | | | | llvm-svn: 45243 | |||||
* | local static vars are globals also. This fixes a testcase | Chris Lattner | 2007-12-18 | 3 | -8/+10 | |
| | | | | | | reported by Seo. llvm-svn: 45156 | |||||
* | Turns out the LLVMFoldingBuilder can fold InsertElement. Knowing this, we ↵ | Anders Carlsson | 2007-12-18 | 1 | -49/+3 | |
| | | | | | | can get rid of our special casing of constants when creating vectors. llvm-svn: 45145 | |||||
* | introduce a new CodeGenModule::getIntrinsic method, which wraps | Chris Lattner | 2007-12-18 | 3 | -73/+34 | |
| | | | | | | Intrinsic::getDeclaration, allowing much more terse code. llvm-svn: 45136 | |||||
* | Patch to implemented objective-c's dynamic object pointer qualified with | Fariborz Jahanian | 2007-12-17 | 1 | -0/+4 | |
| | | | | | | the protocol list (id<P,...> types). llvm-svn: 45121 | |||||
* | Make the insertion point with an explicit new instead of the builder. | Chris Lattner | 2007-12-17 | 1 | -4/+6 | |
| | | | | llvm-svn: 45118 | |||||
* | add a hack so that codegen doesn't abort on missing sema of initializers, now | Chris Lattner | 2007-12-17 | 1 | -1/+15 | |
| | | | | | | | | | | | | | | | we emit stuff like this: abort on missing sema of initializers, now we emit stuff like this: t3.c:1:24: warning: cannot codegen this initializer yet const char x[2][4] = { { 'a', 'b', '\0', '\0' }, { 'c', 'd', 'e', '\0' } }; ^~~~~~~~~~~~~~~~~~~~~~~~ This should be removed when sema is finished. llvm-svn: 45086 | |||||
* | Update to use new PointerType::getUnqual() api. | Christopher Lamb | 2007-12-17 | 5 | -13/+19 | |
| | | | | llvm-svn: 45081 | |||||
* | Start generating SSE intrinsics. | Anders Carlsson | 2007-12-16 | 1 | -2/+147 | |
| | | | | llvm-svn: 45079 | |||||
* | We now support all MMX intrinsics. SSE intrinsics are next. | Anders Carlsson | 2007-12-15 | 3 | -1/+42 | |
| | | | | llvm-svn: 45062 | |||||
* | Simplify the vector code. Add more shift intrinsics. | Anders Carlsson | 2007-12-14 | 1 | -38/+78 | |
| | | | | llvm-svn: 45035 | |||||
* | Array subscription in aggregate expression | Seo Sanghyeon | 2007-12-14 | 1 | -5/+7 | |
| | | | | llvm-svn: 45023 | |||||
* | Implement dereference operator in aggregate expression | Seo Sanghyeon | 2007-12-14 | 1 | -0/+1 | |
| | | | | llvm-svn: 45020 | |||||
* | minor cleanups | Chris Lattner | 2007-12-13 | 1 | -4/+0 | |
| | | | | llvm-svn: 44996 | |||||
* | simplify some code. | Chris Lattner | 2007-12-13 | 1 | -59/+39 | |
| | | | | llvm-svn: 44994 | |||||
* | Add assert to detect incomplete implementation work. | Devang Patel | 2007-12-13 | 1 | -8/+13 | |
| | | | | llvm-svn: 44974 | |||||
* | builtin id 0 is invalid, don't use a slot for it. | Chris Lattner | 2007-12-13 | 1 | -4/+6 | |
| | | | | llvm-svn: 44968 | |||||
* | fix off-by-one error. | Chris Lattner | 2007-12-12 | 1 | -1/+1 | |
| | | | | llvm-svn: 44963 | |||||
* | TargetInfo no longer includes a reference to SourceManager. | Ted Kremenek | 2007-12-12 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | Moved all clients of Diagnostics to use FullSourceLoc instead of SourceLocation. Added many utility methods to FullSourceLoc to provide shorthand for: FullLoc.getManager().someMethod(FullLoc.getLocation()); instead we have: FullLoc.someMethod(); Modified TextDiagnostics (and related classes) to use this short-hand. llvm-svn: 44957 | |||||
* | Fix a codegen crash on test/CodeGen/cast.c, reported by Keith. | Chris Lattner | 2007-12-12 | 1 | -1/+11 | |
| | | | | llvm-svn: 44908 | |||||
* | Match union field type when member expression is u->x | Devang Patel | 2007-12-11 | 1 | -2/+10 | |
| | | | | llvm-svn: 44879 | |||||
* | Mega-patch: ripped SourceManager out of Diagnostic/DiagnosticClient. Now | Ted Kremenek | 2007-12-11 | 3 | -3/+4 | |
| | | | | | | | | | | | | | | | | | | SourceManager is passed by reference, allowing the SourceManager to be associated with a specific translation unit, and not the entire execution of the driver. Modified all users of Diagnostics to comply with this new interface. Integrated SourceManager as a member variable of TargetInfo. TargetInfo will eventually be associated with a single translation unit (just like SourceManager). Made the SourceManager reference in ASTContext private. Provided accessor getSourceManager() for clients to use instead. Modified clients to comply with new interface. llvm-svn: 44878 |