- Oct 17, 2008
-
-
Daniel Dunbar authored
assert. llvm-svn: 57721
-
Daniel Dunbar authored
llvm-svn: 57716
-
Daniel Dunbar authored
- Encode unions and bit-fields correctly. - Accept option to name record fields (used for NeXT runtime). llvm-svn: 57685
-
Daniel Dunbar authored
simplifies clients. Also, add assert that RegionStack is empty when the CGDebugInfo is destroyed. llvm-svn: 57684
-
Daniel Dunbar authored
floating point. This is only correct for x86-32 at the moment. llvm-svn: 57667
-
Daniel Dunbar authored
structure. - I'm not sure yet about the behavior, but this at least prevents the crash. Add some asserts on RegionStack usage. llvm-svn: 57661
-
- Oct 15, 2008
-
-
Mon P Wang authored
llvm-svn: 57563
-
Argyrios Kyrtzidis authored
Instead of using two sets of Decl kinds (Struct/Union/Class and CXXStruct/CXXUnion/CXXClass), use one 'Record' and one 'CXXRecord' Decl kind and make tag kind a property of TagDecl. Cleans up the code a bit and better reflects that Decl class structure. llvm-svn: 57541
-
- Oct 13, 2008
-
-
Daniel Dunbar authored
- Currently still lives in CGCall.cpp but is intended to be the target specific place for hooking ABI information. - Select ABIInfo to use based on Target's prefix and pointer width. llvm-svn: 57445
-
- Oct 12, 2008
-
-
Chris Lattner authored
llvm-svn: 57392
-
- Oct 10, 2008
-
-
Daniel Dunbar authored
llvm-svn: 57335
-
Dale Johannesen authored
llvm-svn: 57332
-
- Oct 06, 2008
-
-
Ted Kremenek authored
Use DeclStmt::getSolitaryDecl() instead of DeclStmt::getDecl() when processing the Decl of an Objective-C foreach statement. llvm-svn: 57209
-
Ted Kremenek authored
Use DeclStmt::getSolitaryDecl() instead of DeclStmt::getDecl() when processing the Decl of a @catch statement. llvm-svn: 57208
-
Ted Kremenek authored
llvm-svn: 57192
-
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
-
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
-
Anders Carlsson authored
llvm-svn: 57142
-
- Oct 02, 2008
-
-
Daniel Dunbar authored
handling blocks. - This has false positives, but at least prevents miscompiles. llvm-svn: 56958
-
Daniel Dunbar authored
llvm-svn: 56954
-
- Oct 01, 2008
-
-
Daniel Dunbar authored
llvm-svn: 56902
-
Daniel Dunbar authored
collisions. - Provide CodeGenModule::CreateRuntimeFunction which guarantees that the function it creates will have the provided name in the final module. This allows the runtime to have its functions protected from declarations of the same name in the source code. - One could argue that this is a reason to abuse the llvm::Module namespace for dealing with function redeclarations. However, that approach seems conceptually flawed to me. This one also happens to be somewhat more efficient. No functionality change. llvm-svn: 56899
-
- Sep 30, 2008
-
-
Mon P Wang authored
llvm-svn: 56830
-
Daniel Dunbar authored
- Provides a basic primitive to jump to an arbitrary basic block, through the finally code. - Only used for return statements and rethrow currently. Still need to handle break, continue and goto. - Code still needs to be shuffled around to live elsewhere. llvm-svn: 56827
-
- Sep 28, 2008
-
-
Daniel Dunbar authored
Comment exception-handling code generation strategy. llvm-svn: 56763
-
Daniel Dunbar authored
llvm-svn: 56762
-
Daniel Dunbar authored
readable and to generate more readable IR. llvm-svn: 56758
-
Daniel Dunbar authored
- This should be rejected by sema (IMHO) but that needs some investigation. llvm-svn: 56756
-
- Sep 27, 2008
-
-
Daniel Dunbar authored
- There is no need to branch on the rethrow variable to determine if we need to call objc_exception_try_exit. We know whether an exception was thrown, so just branch to a different target if we want to skip the try_exit. This is a slight semantic departure from gcc, but only for throwing nil, which is undefined (and for which gcc emits broken code). - Also fixes a bug in current code which was calling try_exit too many times when an exception was uncaught (but there were some handlers). Fix bug introduced in prev. commit, the type of the @catch parameter was uninitialized. llvm-svn: 56754
-
Daniel Dunbar authored
llvm-svn: 56753
-
Daniel Dunbar authored
of the function. llvm-svn: 56752
-
Daniel Dunbar authored
when there are no @catch blocks. Also, eliminated unneeded alloca for the rethrow object. Also, avoid generating code to rethrow exception if the exception will trivially always be caught. llvm-svn: 56751
-
Daniel Dunbar authored
(smaller) size == garbage on stack == heisenbugs. llvm-svn: 56750
-
Devang Patel authored
- return attributes - inreg, zext and sext - parameter attributes - function attributes - nounwind, readonly, readnone, noreturn Return attributes use 0 as the index. Function attributes use ~0U as the index. llvm-svn: 56705
-
- Sep 25, 2008
-
-
Devang Patel authored
s/ParamAttr/Attribute/g s/PAList/AttrList/g s/FnAttributeWithIndex/AttributeWithIndex/g s/FnAttr/Attribute/g This sets the stage - to implement function notes as function attributes and - to distinguish between function attributes and return value attributes. llvm-svn: 56623
-
- Sep 24, 2008
-
-
Daniel Dunbar authored
llvm-svn: 56547
-
Daniel Dunbar authored
Also, "simple" getter synthesis no longer uses temporary AST objects. llvm-svn: 56544
-