summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Handle __builtin___CFStringMakeConstantString in Expr::Evaluate.Anders Carlsson2008-12-051-1/+10
| | | | llvm-svn: 60581
* Make Sema::CheckForConstantInitializer use Expr::Evaluate. This fixes PR3130.Anders Carlsson2008-12-053-1/+13
| | | | llvm-svn: 60580
* Change the implementation of symbol_iterator to not use a union and rely on ↵Ted Kremenek2008-12-052-11/+14
| | | | | | any details of SymbolRef's implementation. llvm-svn: 60579
* Add SymbolRef::print() and have SymbolicRegion::print() use this method ↵Ted Kremenek2008-12-053-1/+13
| | | | | | instead of calling SymbolRef::getNumber(). llvm-svn: 60578
* Use trait-based profiling of SymbolRefs, avoiding calling getNumber() (which ↵Ted Kremenek2008-12-051-1/+1
| | | | | | will soon be removed). llvm-svn: 60577
* Remove (unused) RegionExtent and subclasses. Extents are now represented ↵Ted Kremenek2008-12-051-79/+0
| | | | | | easily using SVals. llvm-svn: 60576
* Rename SymbolID to SymbolRef. This is a precursor to some overhauling of ↵Ted Kremenek2008-12-0519-149/+149
| | | | | | the representation of symbolic values. llvm-svn: 60575
* Rename: FindContext -> FindDeclVisibleInContext.Zhongxing Xu2008-12-052-7/+8
| | | | llvm-svn: 60574
* Patch for diagnosing type mismatch between Fariborz Jahanian2008-12-053-13/+31
| | | | | | | methods in class and its implementation. This is work in progress. llvm-svn: 60573
* Remove SymbolDataContentsOf (unused).Ted Kremenek2008-12-052-54/+2
| | | | llvm-svn: 60572
* Re-did 60519. It turns out Darwin's handling of hidden visibility symbols ↵Evan Cheng2008-12-0512-55/+203
| | | | | | are a bit more complicate than I expected. Both declarations and weak definitions still need a stub indirection. However, the stubs are in data section and they contain the addresses of the actual symbols. llvm-svn: 60571
* StoreManager::Retrieve and StoreManager::RemoveDeadBindings now take a ↵Ted Kremenek2008-12-055-47/+53
| | | | | | GRState* argument instead of a Store. This allows them to use the GDM for storing other data. llvm-svn: 60570
* -std=c99 defaults blocks to off even on darwin, but -fblocks overridesChris Lattner2008-12-051-2/+10
| | | | | | even it. llvm-svn: 60568
* CellSPU: Add new directory under tests/CodeGen/CellSPU to retain tests thatScott Michel2008-12-052-0/+184
| | | | | | | | | | | | | aren't part of the test suite but are generally useful nonetheless, and can be expanded later to test the backend against the actual Cell SPU system. There's basically no other good place to put this code, so put it here for the time being. - vecoperations.c: Vector shuffles for all supported vector types, tests for v16i8 add and multiply. llvm-svn: 60566
* Finish up support for <rdar://problem/6213955> clang ObjC rewriter: rewriter ↵Steve Naroff2008-12-041-19/+54
| | | | | | doesn't appear to support @property and @synthesize. llvm-svn: 60565
* change getCurFunctionDecl to skip through Block contexts to findChris Lattner2008-12-047-19/+54
| | | | | | | | the containing block. Introduce a new getCurFunctionOrMethodDecl method to check to see if we're in a function or objc method. Minor cleanups to other related places. This fixes rdar://6405429. llvm-svn: 60564
* instead of forcing blocks on by default, make them default to off, but letChris Lattner2008-12-0417-44/+80
| | | | | | | | specific targets default them to on. Default blocks to on on 10.6 and later. Add a -fblocks option that allows the user to override the target's default. Use -fblocks in the various testcases that use blocks. llvm-svn: 60563
* Output better diagnostics for continuation classFariborz Jahanian2008-12-043-3/+3
| | | | | | property attribute mis-specification. llvm-svn: 60562
* replace useNeXTRuntimeAsDefault with a generic hook that allows targetsChris Lattner2008-12-043-11/+36
| | | | | | to specify their default language options. llvm-svn: 60561
* Have raw_fd_ostream keep track of the position in the file to make tell() go ↵Ted Kremenek2008-12-042-11/+8
| | | | | | faster by not requiring a flush(). llvm-svn: 60560
* Remove unneeded assertion.Ted Kremenek2008-12-041-1/+1
| | | | llvm-svn: 60559
* Remove unneeded assertion. We already know that FE->getName() is an ↵Ted Kremenek2008-12-041-5/+4
| | | | | | absolute path. llvm-svn: 60558
* Code cleanup in new handling.Sebastian Redl2008-12-043-110/+96
| | | | llvm-svn: 60557
* Use 'free' to release PerIDCache since it was allocated using calloc().Ted Kremenek2008-12-041-1/+1
| | | | llvm-svn: 60556
* Enable LoopIndexSplit pass.Devang Patel2008-12-041-2/+2
| | | | llvm-svn: 60555
* Rewrite code that 1) filters loops and 2) calculates new loop bounds.Devang Patel2008-12-046-1315/+775
| | | | | | | | This fixes many bugs. I will add more test cases in a separate check-in. Some day, the code that manipulates CFG and updates dom. info could use refactoring help. llvm-svn: 60554
* Factor out some common code.Owen Anderson2008-12-041-76/+39
| | | | llvm-svn: 60553
* CellSPU: Fix bug 3055Scott Michel2008-12-043-23/+59
| | | | | | | | | - Add v4f32, v2f64 to LowerVECTOR_SHUFFLE - Look for vector rotate in shuffle elements, generate a vector rotate instead of a full-blown shuffle when opportunity presents itself. - Generate larger test harness and fix a few interesting but obscure bugs. llvm-svn: 60552
* Add 'expected-warning' to make test case pass.Ted Kremenek2008-12-041-2/+2
| | | | llvm-svn: 60548
* Add another static analyzer test case involving attribute(nonnull).Ted Kremenek2008-12-041-0/+5
| | | | llvm-svn: 60547
* Fix bug in attribute(nonnull) processing where not all of the parameter ↵Ted Kremenek2008-12-041-1/+1
| | | | | | indices in nonnull(...) were actually processed. llvm-svn: 60546
* Fix build breakage from my previous commit.Steve Naroff2008-12-041-4/+1
| | | | | | Will discuss with Chris... llvm-svn: 60545
* Add another test case for attribute(nonnull) checking.Ted Kremenek2008-12-041-0/+9
| | | | llvm-svn: 60544
* When allocating a stack temporary, use the correctDuncan Sands2008-12-041-1/+1
| | | | | | | number of bytes for types such as i1 which are not a multiple of 8 bits in length. llvm-svn: 60543
* Fix some diagnostics and enhance test cases. Now tests member new and ↵Sebastian Redl2008-12-042-2/+13
| | | | | | ambiguous overloads. llvm-svn: 60542
* Missing closing brace and reverse conditional condition on NDEBUGScott Michel2008-12-041-5/+5
| | | | llvm-svn: 60541
* Several things...Steve Naroff2008-12-044-27/+86
| | | | | | | | | | | - Implement RewritePropertySetter(). While the routine is simple, there were some tricky changes to RewriteFunctionBodyOrGlobalInitializer(), the main rewriter loop. It also required some additional instance data to distinguish setters from getters, as well as some changes to RewritePropertyGetter(). - Implement FIXME: for pretty printing ObjCPropertyRefExpr's. - Changed ObjCPropertyRefExpr::getSourceRange() to point to the end of the property name (not the beginning). Also made a minor name change from "Loc"->"IdLoc" (to make it clear the Loc does not point to the "."). llvm-svn: 60540
* Mention an optimization opportunity pointed out by Chris.Daniel Dunbar2008-12-041-0/+12
| | | | llvm-svn: 60535
* Start simplifying a switch that has a successor that is a switch.Chris Lattner2008-12-041-0/+74
| | | | llvm-svn: 60534
* This code is apparently quite confused. In the meantime,Chris Lattner2008-12-041-1/+2
| | | | | | get it building when NDEBUG is set. llvm-svn: 60532
* Temporarily revert r60519. It was causing a bootstrap failure:Bill Wendling2008-12-046-12/+5
| | | | | | | | | | | | | | | | /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.obj/./gcc/xgcc -B/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.obj/./gcc/ -B/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.install/i386-apple-darwin9.5.0/bin/ -B/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.install/i386-apple-darwin9.5.0/lib/ -isystem /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.install/i386-apple-darwin9.5.0/include -isystem /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.install/i386-apple-darwin9.5.0/sys-include -DHAVE_CONFIG_H -I. -I../../../llvm-gcc.src/libgomp -I. -I../../../llvm-gcc.src/libgomp/config/posix -I../../../llvm-gcc.src/libgomp -Wall -pthread -Werror -O2 -g -O2 -MT barrier.lo -MD -MP -MF .deps/barrier.Tpo -c ../../../llvm-gcc.src/libgomp/barrier.c -fno-common -DPIC -o .libs/barrier.o checking for sys/file.h... /var/folders/zG/zGE-ZJOGFiGjv0B5cs5oYE+++TM/-Tmp-//cc34Jg5P.s:13:non-relocatable subtraction expression, "_gomp_tls_key" minus "L1$pb" /var/folders/zG/zGE-ZJOGFiGjv0B5cs5oYE+++TM/-Tmp-//cc34Jg5P.s:13:symbol: "_gomp_tls_key" can't be undefined in a subtraction expression make[4]: *** [barrier.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.obj/./gcc/xgcc -B/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.obj/./gcc/ -B/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.install/i386-apple-darwin9.5.0/bin/ -B/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.install/i386-apple-darwin9.5.0/lib/ -isystem /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.install/i386-apple-darwin9.5.0/include -isystem /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.install/i386-apple-darwin9.5.0/sys-include -DHAVE_CONFIG_H -I. -I../../../llvm-gcc.src/libgomp -I. -I../../../llvm-gcc.src/libgomp/config/posix -I../../../llvm-gcc.src/libgomp -Wall -pthread -Werror -O2 -g -O2 -MT alloc.lo -MD -MP -MF .deps/alloc.Tpo -c ../../../llvm-gcc.src/libgomp/alloc.c -o alloc.o >/dev/null 2>&1 yes checking for sys/param.h... make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-target-libgomp] Error 2 make[1]: *** Waiting for unfinished jobs.... llvm-svn: 60527
* CellSPU:Scott Michel2008-12-045-133/+56
| | | | | | | | | | | | | | | | | | | | | | - First patch from Nehal Desai, a new contributor at Aerospace. Nehal's patch fixes sign/zero/any-extending loads for integers and floating point. Example code, compiled w/o debugging or optimization where he first noticed the bug: int main(void) { float a = 99.0; printf("%d\n", a); return 0; } Verified that this code actually works on a Cell SPU. Changes by Scott Michel: - Fix bug in the value type list constructed by SPUISD::LDRESULT to include both the load result's result and chain, not just the chain alone. - Simplify LowerLOAD and remove extraneous and unnecessary chains. - Remove unused SPUISD pseudo instructions. llvm-svn: 60526
* Use register names instead of numbers in debug output.Dan Gohman2008-12-041-2/+3
| | | | llvm-svn: 60525
* Make debug output more informative.Dan Gohman2008-12-041-1/+1
| | | | llvm-svn: 60524
* Revamp RegionStoreManager::RemoveDeadBindings. This method now does a ↵Ted Kremenek2008-12-041-7/+131
| | | | | | complete mark-and-sweep of the store, removing dead regions and recording the set of live and dead symbols appropriately. llvm-svn: 60523
* Revise bogus comment I just committed.Ted Kremenek2008-12-041-1/+1
| | | | llvm-svn: 60522
* Add comment to test case for documentation.Ted Kremenek2008-12-041-1/+1
| | | | llvm-svn: 60521
* Update comment.Ted Kremenek2008-12-041-0/+3
| | | | llvm-svn: 60520
* Visibility hidden GVs do not require extra load of symbol address from the ↵Evan Cheng2008-12-046-4/+22
| | | | | | GOT or non-lazy-ptr. llvm-svn: 60519
* Add minimal support for disambiguating memory references. CurrentlyDan Gohman2008-12-041-13/+123
| | | | | | the main thing this covers is spills to distinct spill slots. llvm-svn: 60517
OpenPOWER on IntegriCloud