- Feb 07, 2009
-
-
Sebastian Redl authored
llvm-svn: 64029
-
Mike Stump authored
This will allow us to generate break and continue even if vlas are involved without worry that we'll silently generate bad code. llvm-svn: 64028
-
Sebastian Redl authored
llvm-svn: 64027
-
Dale Johannesen authored
No functional change. llvm-svn: 64026
-
Sebastian Redl authored
This uncovers some bugs, so several test cases now fail. llvm-svn: 64025
-
Evan Cheng authored
llvm-svn: 64024
-
Evan Cheng authored
llvm-svn: 64023
-
Chris Lattner authored
llvm-svn: 64022
-
Mike Stump authored
llvm-svn: 64021
-
Mike Stump authored
llvm-svn: 64020
-
Douglas Gregor authored
llvm-svn: 64019
-
Dan Gohman authored
ScheduleDAG's TLI member to use const. llvm-svn: 64018
-
Dan Gohman authored
to make the encapsulation more clear. llvm-svn: 64017
-
Dan Gohman authored
the iterator typedefs instead of handling the std::vector directly. llvm-svn: 64016
-
Sebastian Redl authored
llvm-svn: 64015
-
Mike Stump authored
llvm-svn: 64014
-
Sebastian Redl authored
llvm-svn: 64013
-
Chris Lattner authored
for pointing this out. llvm-svn: 64011
-
Chris Lattner authored
llvm-svn: 64010
-
Chris Lattner authored
Obviously I make a miserable header developer :) llvm-svn: 64009
-
Chris Lattner authored
llvm-svn: 64008
-
Chris Lattner authored
uintmax_t is unsigned long long, which is not optimal, but is assumed elsewhere already. llvm-svn: 64007
-
Chris Lattner authored
Thanks to Eli for pointing this out. llvm-svn: 64006
-
Nick Lewycky authored
two AddString methods to use it. llvm-svn: 64005
-
Mike Stump authored
llvm-svn: 64004
-
Mike Stump authored
llvm-svn: 64003
-
Nick Lewycky authored
pointed out by Torok Edwin. Remove trailing whitespaces. llvm-svn: 64002
-
Daniel Dunbar authored
- Currently, this is producing poor code, but we prefer correctness to performance for now. Eventually we should be able to generally avoid having to set the alignment when we control the alignment of the alloca. - This knocks out 33/1000 failures on my single argument ABI tests, down to 22/1000 and 18 of these appear to be gcc bugs. Woot. llvm-svn: 64001
-
Dale Johannesen authored
Adjust derived classes to pass UnknownLoc where a DebugLoc does not make sense. Pick one of DebugLoc and non-DebugLoc variants to survive for all such classes. llvm-svn: 64000
-
Evan Cheng authored
llvm-svn: 63999
-
Ted Kremenek authored
llvm-svn: 63998
-
Ted Kremenek authored
- Made allocation of Stmt objects using vanilla new/delete a *compiler error* by making this new/delete "protected" within class Stmt. - Now the only way to allocate Stmt objects is by using the new operator that takes ASTContext& as an argument. This ensures that all Stmt nodes are allocated from the same (pool) allocator. - Naturally, these two changes required that *all* creation sites for AST nodes use new (ASTContext&). This is a large patch, but the majority of the changes are just this mechanical adjustment. - The above changes also mean that AST nodes can no longer be deallocated using 'delete'. Instead, one most do StmtObject->Destroy(ASTContext&) or do ASTContextObject.Deallocate(StmtObject) (the latter not running the 'Destroy' method). Along the way I also... - Made CompoundStmt allocate its array of Stmt* using the allocator in ASTContext (previously it used std::vector). There are a whole bunch of other Stmt classes that need to be similarly changed to ensure that all memory allocated for ASTs comes from the allocator in ASTContext. - Added a new smart pointer ExprOwningPtr to Sema.h. This replaces the uses of llvm::OwningPtr within Sema, as llvm::OwningPtr used 'delete' to free memory instead of a Stmt's 'Destroy' method. Big thanks to Doug Gregor for helping with the acrobatics of making 'new/delete' private and the new smart pointer ExprOwningPtr! llvm-svn: 63997
-
Dale Johannesen authored
llvm-svn: 63996
-
Dale Johannesen authored
llvm-svn: 63995
-
Evan Cheng authored
Don't sink the instruction if TargetRegisterInfo::isSafeToMoveRegClassDefs doesn't think it's safe. This works around PR1911. llvm-svn: 63994
-
Dale Johannesen authored
llvm-svn: 63993
-
Dale Johannesen authored
Many targets build placeholder nodes for special operands, e.g. GlobalBaseReg on X86 and PPC for the PIC base. There's no sensible way to associate debug info with these. I've left them built with getNode calls with explicit DebugLoc::getUnknownLoc operands. I'm not too happy about this but don't see a good improvement; I considered adding a getPseudoOperand or something, but it seems to me that'll just make it harder to read. llvm-svn: 63992
-
Ted Kremenek authored
GRExprEngine: When processing compound assignments, do a switch table lookup to get the non-compound opcode from the compound opcode instead of relying on the order of BinaryOperator::opcode values. This unbreaks the misc-ps.c test. llvm-svn: 63991
-
Chris Lattner authored
llvm-svn: 63990
-
Dan Gohman authored
llvm-svn: 63989
-