- Aug 06, 2008
-
-
Dan Gohman authored
llvm-svn: 54411
-
Ted Kremenek authored
When serializing DeclStmt, encode a bit indicating whether or not the DeclStmt owns the Decl. This is an interim solution. llvm-svn: 54410
-
Dan Gohman authored
llvm-svn: 54409
-
Chris Lattner authored
llvm-svn: 54408
-
Bruno Cardoso Lopes authored
Added fp register clobbering during calls. Added AsmPrinter support for "fmask", a bitmask that indicates where on the stack the fp callee saved registers are. Fixed the stack frame layout for Mips, now the callee saved regs are in the right stack location (a little documentation about how this stack frame must look like is present in MipsRegisterInfo.cpp). This was done using the method MipsRegisterInfo::adjustMipsStackFrame To be more clear, these are examples of what is solves : 1) FP and RA are also callee saved, and despite they aren't in CSI they must be saved before the fp callee saved registers. 2) The ABI requires that local varibles are allocated before the callee saved register area, the opposite behavior from the default allocation. 3) CPU and FPU saved register area must be aligned independent of each other. llvm-svn: 54403
-
Chris Lattner authored
llvm-svn: 54400
-
Chris Lattner authored
llvm-svn: 54398
-
Daniel Dunbar authored
- PR2643 llvm-svn: 54397
-
Chris Lattner authored
matters, the result is undefined anyway. llvm-svn: 54396
-
Daniel Dunbar authored
type. - This generates somewhat less optimal code than before but this is not hard to rectify once stable (at the cost of slightly more complex code). - This currently always uses little-endian ordering of the bitfield. - This breaks the CodeGen/bitfield.c test because it was grepping for hard-coded assembly instructions. Will fix once a better test case is constructed (hard to do without execution). - This fixes SingleSource/UnitTests/2006-01-23-InitializedBitField.c and Regression/C/PR1386.c from the test suite. - <rdar://problem/6085090>, <rdar://problem/6094169> llvm-svn: 54395
-
Nick Lewycky authored
tracking down that this was breaking llvm-gcc bootstrap on Linux. llvm-svn: 54394
-
Ted Kremenek authored
llvm-svn: 54393
-
Daniel Dunbar authored
- Changed EmitSub to work on all cases (arithmetic, ptr - int, ptr - ptr) so that implementation matches that of other operators. - Modify EmitCompoundAssign to compute and perform the appropriate casts of left, right, and result types for the assorted pointer arithmetic cases. - Fix EmitSub (ptr - int) case to negate the rhs *after* extension. This is critical when the rhs is unsigned (and needs extension). - This fixes cfrac. - <rdr://6115726> llvm-svn: 54392
-
Bill Wendling authored
llvm-svn: 54389
-
Daniel Dunbar authored
scimark2 on Darwin. - Added Sema support for asm-label on variables, which I forgot before. - Update CodeGen to use GlobalDeclMap to determine if static Decls require emission (instead of LLVM module name lookup). Important since the Decl name and the LLVM module name can differ. - <rdar://problem/6116729> llvm-svn: 54388
-
Bill Wendling authored
llvm-svn: 54386
-
Dan Gohman authored
warning. There wasn't actually a problem here, because the contents of the string are known. llvm-svn: 54385
-
Bill Wendling authored
llvm-svn: 54384
-
Nico Weber authored
llvm-svn: 54383
-
Daniel Dunbar authored
having multiple bindings from all the possible decls which conceptually map to the same global). - This eliminates CodeGen depending on the LLVM module for name lookup. - This also eliminates the need for ReplaceMapValuesWith (hurrah). - This handles lookups for FunctionDecls correctly in the presence of aliases, this was previously broken. - WIP: Can still clean up & unify variable and function emission. llvm-svn: 54382
-
Nico Weber authored
llvm-svn: 54381
-
Dan Gohman authored
instead of having it call getIterationCount again. llvm-svn: 54380
-
Bill Wendling authored
llvm-svn: 54379
-
Owen Anderson authored
llvm-svn: 54378
-
Bill Wendling authored
llvm-svn: 54377
-
Evan Cheng authored
llvm-svn: 54376
-
- Aug 05, 2008
-
-
Evan Cheng authored
llvm-svn: 54375
-
Owen Anderson authored
llvm-svn: 54374
-
Ted Kremenek authored
llvm-svn: 54373
-
Bill Wendling authored
looks bogus. Please see PR2629 for details on why this is breaking things. llvm-svn: 54372
-
Owen Anderson authored
llvm-svn: 54371
-
Owen Anderson authored
llvm-svn: 54369
-
Ted Kremenek authored
Added decl_iterator to DeclStmt to provide an abstract interface to iterate over the ScopedDecls of a DeclStmt. Updated a few clients of DeclStmt::getNextDeclarator() to use decl_iterator instead. Will update other clients after additional testing. llvm-svn: 54368
-
rdar://problem/5929344Steve Naroff authored
Finish fixing <rdar://problem/5929344> clang ObjC rewriter: "extern int __CFConstantStringClassReference[];" should be extern "C" llvm-svn: 54367
-
Ted Kremenek authored
llvm-svn: 54366
-
Nuno Lopes authored
llvm-svn: 54365
-
Ted Kremenek authored
Refactored driver logic for CodeGen into LLVMCodeGenWriter. This ASTConsumer layers on top of LLVMCodeGen (another existing ASTConsumer) to emit bitcode files to disk. This layering takes this logic out of clang.cpp and puts it directly into the ASTConsumer interface. The benefit is that now --emit-llvm works with both serialized ASTs and regular source files. llvm-svn: 54364
-
rdar://problem/6108119Steve Naroff authored
Fix <rdar://problem/6108119> clang ObjC rewriter: if no newline at end of input file, rewriter inserts #define on same line as closing brace llvm-svn: 54363
-
Chris Lattner authored
llvm-svn: 54362
-
Owen Anderson authored
llvm-svn: 54361
-