summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Comment out broken tests and make the rest build in cmake build system.Edward O'Callaghan2009-10-175-56/+51
| | | | llvm-svn: 84330
* Suppress -Asserts warning.Daniel Dunbar2009-10-171-0/+1
| | | | llvm-svn: 84329
* Remove a FIXME that doesn't belong, there are numerous other places that useDaniel Dunbar2009-10-171-1/+0
| | | | | | alignment in bits in clang. If we really want to fix this, it should be a bugzilla. llvm-svn: 84328
* Suppress -Asserts warning.Daniel Dunbar2009-10-171-2/+2
| | | | llvm-svn: 84327
* Distinquish stack slots from other stack objects. They (and fixed objects) ↵Evan Cheng2009-10-177-12/+35
| | | | | | get FixedStack PseudoSourceValues. llvm-svn: 84326
* Simplify (move guard to caller instead of callee).Daniel Dunbar2009-10-171-4/+2
| | | | llvm-svn: 84325
* Re-arrange some fields.Evan Cheng2009-10-171-5/+5
| | | | llvm-svn: 84324
* Per discussion with Ted, the 'FromSuper'/'FromSub' logic is invalid. SimplifyZhongxing Xu2009-10-171-72/+33
| | | | | | | the code to standard worklist algorithm. Always add both sub and super regions of live regions. llvm-svn: 84323
* Add another required #include for freestanding .h files.Daniel Dunbar2009-10-171-2/+1
| | | | llvm-svn: 84322
* Revert 84315 for now. Re-thinking the patch.Evan Cheng2009-10-1716-51/+48
| | | | llvm-svn: 84321
* Fix another static analyzer crash due to a corner case in "folding" symbolic ↵Ted Kremenek2009-10-172-20/+39
| | | | | | values that are constrained to be a constant. llvm-svn: 84320
* Actually all regions whose super region is not MemSpaceRegion are of these 3Zhongxing Xu2009-10-171-5/+4
| | | | | | kinds. This means we are visiting all regions 'from super region'. llvm-svn: 84319
* Fix compiler warning: "ISO C90 forbids mixed declarations and code"Ted Kremenek2009-10-171-3/+9
| | | | llvm-svn: 84318
* Fix warning: 'warning: C++ style comments are not allowed in ISO C90'Ted Kremenek2009-10-171-1/+1
| | | | llvm-svn: 84317
* Rename getFixedStack to getStackObject. The stack objects represented are notEvan Cheng2009-10-1716-48/+51
| | | | | | necessarily fixed. Only those will negative frame indices are "fixed." llvm-svn: 84315
* Resolve FIXME: delete the 'Program' object in the destructor of CIndexer.Ted Kremenek2009-10-171-4/+4
| | | | llvm-svn: 84313
* Don't crash when dumping pretty stack traces, if the current tok is anDaniel Dunbar2009-10-171-1/+4
| | | | | | | | annotation token. - I'm not sure what the best thing to print is, for now we just print the token location and 'at annotation token'. llvm-svn: 84312
* 80 col violation.Evan Cheng2009-10-171-1/+2
| | | | llvm-svn: 84311
* Simplify some code (first hunk) and fix PR5208 (second hunk) byChris Lattner2009-10-172-9/+38
| | | | | | updating the callgraph when introducing a call. llvm-svn: 84310
* check in a bunch of content from TestingGuide. Part of PR5216Chris Lattner2009-10-171-3/+183
| | | | llvm-svn: 84309
* Fix PR5211: codegen shouldn't assume that the result of ||/&& is int Chris Lattner2009-10-172-11/+22
| | | | | | anymore. In C++ it is bool. llvm-svn: 84308
* Simplify.Daniel Dunbar2009-10-171-3/+1
| | | | llvm-svn: 84307
* Add IdentiferInfo::getNameStr() -> StringRef.Daniel Dunbar2009-10-173-11/+28
| | | | | | | | Also, add getNameStart as a synonym for getName(). getName() is now deprecated, when all clients are updated then getNameStr() should be renamed to getName(). PR5218. llvm-svn: 84306
* Fix sentence-o.Daniel Dunbar2009-10-171-1/+2
| | | | llvm-svn: 84305
* llvm-as: Simplify, and don't create empty output files with -disable-output.Daniel Dunbar2009-10-171-31/+35
| | | | llvm-svn: 84304
* Reclaim a lost month.Daniel Dunbar2009-10-172-0/+0
| | | | llvm-svn: 84303
* Add required #includes for freestanding .h files.Daniel Dunbar2009-10-172-2/+3
| | | | llvm-svn: 84302
* Add Ubuntu 9.04 C++ search path.Daniel Dunbar2009-10-171-0/+5
| | | | llvm-svn: 84301
* Delete an obsolete comment.Dan Gohman2009-10-171-2/+1
| | | | llvm-svn: 84300
* Remove MallocInst from LLVM Instructions.Victor Hernandez2009-10-1725-678/+74
| | | | llvm-svn: 84299
* Add 'UseBumpPtrAllocator' flag to ASTUnit::LoadFromPCHFile() to cause the ↵Ted Kremenek2009-10-173-4/+7
| | | | | | | | | | | created ASTContext to use its own BumpPtrAllocator to allocate ASTs. Change clang_createTranslationUnit (CIndex) to pass 'UseBumpPtrAllocator = true' to ASTUnit::LoadFromPCHFile(). llvm-svn: 84296
* Enhance CodePlacementOpt's unconditional intra-loop branch elimination logicDan Gohman2009-10-173-178/+562
| | | | | | | | | | | | to be more general and understand more varieties of loops. Teach CodePlacementOpt to reorganize the basic blocks of a loop so that they are contiguous. This also includes a fair amount of logic for preserving fall-through edges while doing so. This fixes a BranchFolding-ism where blocks which can't be made to use a fall-through edge and don't conveniently fit anywhere nearby get tossed out to the end of the function. llvm-svn: 84295
* Add a splice member function which accepts a range instead of aDan Gohman2009-10-171-0/+3
| | | | | | single iterator. llvm-svn: 84294
* Merge the "types" and "declarations" blocks in the precompiled headerDouglas Gregor2009-10-175-153/+128
| | | | | | | | | | | | | | | format, so that we don't end up with multiple declaration and types blocks. Also, fix a few obscure bugs with PCH loading and generation: - If the DeclIDs DenseMap reallocates while we are writing a declaration (due to recursively writing other declarations), we could end up writing a bad ID to ExternalDefinitions. - When loading an ArrayLoc (part of DeclaratorInfo), we need to set the size expression to NULL if no size expression was provided. PCH -> AST rewriting is still partly broken, unfortunately. llvm-svn: 84293
* Autoupgrade malloc insts to malloc calls.Victor Hernandez2009-10-1720-160/+155
| | | | | | | | Update testcases that rely on malloc insts being present. Also prematurely remove MallocInst handling from IndMemRemoval and RaiseAllocations to help pass tests in this incremental step. llvm-svn: 84292
* Patch to clean up and improve visual display ofFariborz Jahanian2009-10-164-19/+26
| | | | | | builtin function ambiguity. llvm-svn: 84289
* HeapAllocSRoA also needs to check if malloc array size can be computed.Victor Hernandez2009-10-162-36/+66
| | | | llvm-svn: 84288
* While writing source-location entries to a PCH file, go through anDouglas Gregor2009-10-163-25/+17
| | | | | | | interface that can load those source-location entries on demand (from another PCH file). llvm-svn: 84287
* Allow TypeLocs to be fully initialized with a single SourceLocation. ThisJohn McCall2009-10-162-12/+109
| | | | | | will be the keystone of converting existing rewrites to be rewrites on TypeLocs. llvm-svn: 84286
* Update tests to use FileCheckMon P Wang2009-10-1619-55/+70
| | | | llvm-svn: 84282
* Use VisibleQuals to control setting of Volatile/Restrict qualifiers onFariborz Jahanian2009-10-161-7/+15
| | | | | | | candidate types in BuiltinCandidateTypeSet::AddPointerWithMoreQualifiedTypeVariants further trimming the overload candidate set. llvm-svn: 84281
* Add test case for r84279Mon P Wang2009-10-161-0/+12
| | | | llvm-svn: 84280
* Allow widening of extract subvectorMon P Wang2009-10-162-0/+8
| | | | llvm-svn: 84279
* Factor out routines to encode/decode DeclaratorInfos and move them into theJohn McCall2009-10-166-153/+170
| | | | | | core PCH reader/writer implementation files. llvm-svn: 84278
* Add an accessor to extra the type directly from a DeclaratorInfoJohn McCall2009-10-161-0/+3
| | | | | | without an opaque call. llvm-svn: 84277
* Do not emit name entry for a pointer type.Devang Patel2009-10-161-1/+1
| | | | llvm-svn: 84276
* Make CIndex and c-index-test a little bit more robust. The onlyDouglas Gregor2009-10-163-5/+19
| | | | | | | | substantive change is that clang_getCursorSource() now returns the file in which a macro was instantiated when the cursor points into a macro instantiation, rather than crashing. llvm-svn: 84275
* Change createPostRAScheduler so it can be turned off at llc -O1.Evan Cheng2009-10-166-14/+31
| | | | llvm-svn: 84273
* Add a CodeGenOpt::Less level to match -O1. It'll be used by clients which do ↵Evan Cheng2009-10-163-5/+6
| | | | | | not want post-regalloc scheduling. llvm-svn: 84272
* Move zext and sext casts fed by loads into the same block as theDan Gohman2009-10-163-3/+63
| | | | | | | load, to help SelectionDAG fold them into the loads, unless conditions are unfavorable. llvm-svn: 84271
OpenPOWER on IntegriCloud