- Dec 16, 2009
-
-
Eli Friedman authored
declarations of abort(), and two, we mark it noreturn. Missing the latter shows up in one of the "embarassing" tests (from the thread on llvmdev "detailed comparison of generated code size for LLVM and other compilers"). llvm-svn: 91515
-
Anders Carlsson authored
llvm-svn: 91514
-
Anders Carlsson authored
llvm-svn: 91513
-
Ted Kremenek authored
Teach RetainSummaryManager::getSummary(FunctionDecl* FD) that 'FD->getIdentifier()' will not always return a non-null IdentifierInfo*. llvm-svn: 91512
-
Ted Kremenek authored
llvm-svn: 91511
-
Ted Kremenek authored
Teach NoReturnFunctionChecker that FunctionDecl::getIdentifier() is not guaranteed to return a non-null IdentifierInfo*. llvm-svn: 91510
-
Ted Kremenek authored
llvm-svn: 91509
-
Ted Kremenek authored
llvm-svn: 91508
-
Anders Carlsson authored
llvm-svn: 91507
-
Zhongxing Xu authored
llvm-svn: 91506
-
Ted Kremenek authored
llvm-svn: 91505
-
Douglas Gregor authored
llvm-svn: 91504
-
Douglas Gregor authored
llvm-svn: 91503
-
Mike Stump authored
llvm-svn: 91502
-
Ted Kremenek authored
This change was a lot bigger than I originally anticipated; among other things it requires us storing more information in the CFG to record what block-level expressions need to be evaluated as lvalues. The big change is that CFGBlocks no longer contain Stmt*'s by CFGElements. Currently CFGElements just wrap Stmt*, but they also store a bit indicating whether the block-level expression should be evalauted as an lvalue. DeclStmts involving the initialization of a reference require us treating the initialization expression as an lvalue, even though that information isn't recorded in the AST. Conceptually this change isn't that complicated, but it required bubbling up the data through the CFGBuilder, to GRCoreEngine, and eventually to GRExprEngine. The addition of CFGElement is also useful for when we want to handle more control-flow constructs or other data we want to keep in the CFG that isn't represented well with just a block of statements. In GRExprEngine, this patch introduces logic for evaluating the lvalues of references, which currently retrieves the internal "pointer value" that the reference represents. EvalLoad does a two stage load to catch null dereferences involving an invalid reference (although this could possibly be caught earlier during the initialization of a reference). Symbols are currently symbolicated using the reference type, instead of a pointer type, and special handling is required creating ElementRegions that layer on SymbolicRegions (see the changes to RegionStoreManager). Along the way, the DeadStoresChecker also silences warnings involving dead stores to references. This was the original change I introduced (which I wrote test cases for) that I realized caused GRExprEngine to crash. llvm-svn: 91501
-
Mike Stump authored
llvm-svn: 91500
-
Mike Stump authored
__builtin_unreachable. WIP. llvm-svn: 91499
-
Mike Stump authored
llvm-svn: 91498
-
Victor Hernandez authored
MDNodes that refer to an instruction are local to a function; in that case, explicitly keep track of the function they are local to llvm-svn: 91497
-
Johnny Chen authored
bytes of Inst to 0x0000 for the benefit of the Thumb decoder. llvm-svn: 91496
-
Devang Patel authored
llvm-svn: 91495
-
Anders Carlsson authored
Check in a rudimentary FullExpr class that isn't used anywhere yet. Rename Action::FullExpr to Action::MakeFullExpr to avoid name clashes. llvm-svn: 91494
-
John McCall authored
standard the last time. Fixes PR5766. llvm-svn: 91493
-
Douglas Gregor authored
than using its own partial implementation of initialization. Switched CheckInitializerTypes over to InitializedEntity/InitializationKind, to help move us closer to InitializationSequence. Added InitializedEntity::getName() to retrieve the name of the entity, for diagnostics that care about such things. Implemented support for default initialization in InitializationSequence. Clean up the determination of the "source expressions" for an initialization sequence in InitializationSequence::Perform. Taught CXXConstructExpr to store more location information. llvm-svn: 91492
-
Evan Cheng authored
llvm-svn: 91489
-
Chris Lattner authored
Will reapply with a fix when I get a chance. llvm-svn: 91486
-
Dale Johannesen authored
in local register allocator. If a reg-reg copy has a phys reg input and a virt reg output, and this is the last use of the phys reg, assign the phys reg to the virt reg. If a reg-reg copy has a phys reg output and we need to reload its spilled input, reload it directly into the phys reg than passing it through another reg. Following 76208, there is sometimes no dependency between the def of a phys reg and its use; this creates a window where that phys reg can be used for spilling (this is true in linear scan also). This is bad and needs to be fixed a better way, although 76208 works too well in practice to be reverted. However, there should normally be no spilling within inline asm blocks. The patch here goes a long way towards making this actually be true. llvm-svn: 91485
-
John McCall authored
llvm-svn: 91481
-
John McCall authored
enclosing namespace. Caught by clang++. llvm-svn: 91480
-
Bill Wendling authored
llvm-svn: 91479
-
Bill Wendling authored
llvm-svn: 91477
-
Bill Wendling authored
llvm-svn: 91475
-
Fariborz Jahanian authored
using objective-c property. (fixes radar 7449707) llvm-svn: 91474
-
Ted Kremenek authored
Remove ValueManager::getRegionValueSymbolValOrUnknown(). It was just extra veneer on top of getRegionValueSymbolVal(). llvm-svn: 91471
-
- Dec 15, 2009
-
-
Jeffrey Yasskin authored
remove start/finishGVStub and the BufferState helper class from the MachineCodeEmitter interface. It has the side-effect of not setting the indirect global writable and then executable on ARM, but that shouldn't be necessary. llvm-svn: 91464
-
Bill Wendling authored
llvm-svn: 91463
-
John McCall authored
This test courtesy of LLVM. llvm-svn: 91462
-
Daniel Dunbar authored
clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to garbage). llvm-svn: 91460
-
Bob Wilson authored
found last time. Instead of trying to modify the IR while iterating over it, I've change it to keep a list of WeakVH references to dead instructions, and then delete those instructions later. I also added some special case code to detect and handle the situation when both operands of a memcpy intrinsic are referencing the same alloca. llvm-svn: 91459
-
Daniel Dunbar authored
llvm-svn: 91458
-