summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Introduce a new PresumedLoc class to represent the concept of a locationChris Lattner2009-01-2714-171/+230
| | | | | | | | | | | | | | | | | | | as reported to the user and as manipulated by #line. This is what __FILE__, __INCLUDE_LEVEL__, diagnostics and other things should follow (but not dependency generation!). This patch also includes several cleanups along the way: - SourceLocation now has a dump method, and several other places that did similar things now use it. - I cleaned up some code in AnalysisConsumer, but it should probably be simplified further now that NamedDecl is better. - TextDiagnosticPrinter is now simplified and cleaned up a bit. This patch is a prerequisite for #line, but does not actually provide any #line functionality. llvm-svn: 63098
* rename getFullFilePos -> getFileOffset.Chris Lattner2009-01-274-16/+15
| | | | llvm-svn: 63097
* Use string comparison rather than '=='.Ted Kremenek2009-01-271-1/+1
| | | | llvm-svn: 63095
* Fix a bug that I noticed by inspection.Chris Lattner2009-01-272-0/+10
| | | | llvm-svn: 63094
* make -print-stats print stats about the amount of the SLoc Chris Lattner2009-01-271-2/+3
| | | | | | | | | | | | | | | | | address space we used up. Some interesting data: For c99-intconst-1.c: 6912762 SLocEntry's allocated, 25592386B of Sloc address space used. For cocoa.h: 26469 SLocEntry's allocated, 10278752B of Sloc address space used. For carbon.h: 27364 SLocEntry's allocated, 12398141B of Sloc address space used. Clearly 2G of sloc address space should be enough for anyone?! llvm-svn: 63093
* improvements for GNU objc runtime support, patch by David Chisnall!Chris Lattner2009-01-271-32/+54
| | | | llvm-svn: 63092
* Make the pre-split-limit option more useful by using a per-function counter.Owen Anderson2009-01-271-1/+7
| | | | llvm-svn: 63091
* Implement multiple with overflow by 2 with an add instruction.Evan Cheng2009-01-272-0/+31
| | | | llvm-svn: 63090
* Forgot this test case.Evan Cheng2009-01-271-0/+10
| | | | llvm-svn: 63089
* Eliminate unnecessary operands-list traversals.Dan Gohman2009-01-271-6/+3
| | | | llvm-svn: 63088
* x86_64: Classify __m64 and __m128 "correctly".Daniel Dunbar2009-01-271-2/+14
| | | | | | | - gcc appears to be classifying <1 x double> as INTEGER which is odd. Will investigate later. llvm-svn: 63086
* add SparcV8 asm register info support. Patch by Ben Lickly!Chris Lattner2009-01-271-10/+57
| | | | llvm-svn: 63085
* PathDiagnostics:Ted Kremenek2009-01-274-8/+20
| | | | | | | | | | | | | - Add the distinction between the 'bug type' and the 'bug description' HTMLDiagnostics: - Output the bug type field as HTML comments scan-build: - Use the bug type field instead of the bug description for the HTML table. - Radar filing now automatically picks up the bug description in the title (addresses <rdar://problem/6265970>) llvm-svn: 63084
* Implement support for coercion to wider types during ABI handling.Daniel Dunbar2009-01-271-7/+69
| | | | | | - Code quality is poor, but simple. llvm-svn: 63083
* Have 'Analyzer Failures' files be named to reflect the category of problem.Ted Kremenek2009-01-271-4/+9
| | | | llvm-svn: 63080
* Add a FrontendC testcase for the x86-64 Red Zone feature,Dan Gohman2009-01-271-0/+11
| | | | | | | to help verify that the feature may be disabled through the -mno-red-zone option. llvm-svn: 63079
* Enable the red zone on x86-64 by default.Dan Gohman2009-01-271-1/+1
| | | | llvm-svn: 63078
* Assorted debug info fixes.Devang Patel2009-01-272-18/+20
| | | | | | | | - DW_AT_bit_size is only suitable for bitfields. - Encode source location info for derived types. - Source location and type size info is not useful for subroutine_type (info is included in respective DISubprogram) and array_type. llvm-svn: 63077
* Add a regression test for x86-64 red zone usage.Dan Gohman2009-01-271-0/+13
| | | | llvm-svn: 63075
* Fix the Red Zone calculation for functions with frame pointers.Dan Gohman2009-01-271-7/+10
| | | | | | | | Don't use the Red Zone when dynamic stack realignment is needed. This could be implemented, but most x86-64 ABIs don't require dynamic stack realignment so it isn't urgent. llvm-svn: 63074
* Add an svn:ignore property.Dan Gohman2009-01-270-0/+0
| | | | llvm-svn: 63073
* PTH: Use Token::setLiteralData() to directly store a pointer to cached ↵Ted Kremenek2009-01-276-310/+81
| | | | | | | | | | spelling data in the PTH file. This removes a ton of code for looking up spellings using sourcelocations in the PTH file. This simplifies both PTH-generation and reading. Performance impact for -fsyntax-only on Cocoa.h (with Cocoa.h in the PTH file): - PTH generation time improves by 5% - PTH reading improves by 0.3%. llvm-svn: 63072
* Added a FIXME.Fariborz Jahanian2009-01-261-0/+2
| | | | llvm-svn: 63071
* No need to keep size of DebugLocations vector separately.Evan Cheng2009-01-262-6/+4
| | | | llvm-svn: 63070
* Fix definition of __builtin_ia32_vec_set_v2di and de-XFAILDaniel Dunbar2009-01-262-6/+5
| | | | | | builtins-x86.c. llvm-svn: 63069
* Pull EmitReturnBlock out of FinishFunction and catch unified returnDaniel Dunbar2009-01-262-7/+45
| | | | | | case correctly. llvm-svn: 63068
* Testcase for 6522054.Dale Johannesen2009-01-261-0/+14
| | | | llvm-svn: 63067
* Build method-description-list for category meta-data Fariborz Jahanian2009-01-261-3/+31
| | | | | | as well (for nonfragile-abi). llvm-svn: 63062
* Some micro-optimizations for DISABLE_SMART_POINTERS:Douglas Gregor2009-01-267-35/+144
| | | | | | | | | | | | | | | | | - When it's safe, ActionResult uses the low bit of the pointer for the "invalid" flag rather than a separate "bool" value. This keeps GCC from generating some truly awful code, for a > 3x speedup in the result-passing microbenchmark. - When DISABLE_SMART_POINTERS is defined, store an ActionResult within ASTOwningResult rather than an ASTOwningPtr. Brings the performance benefits of the above to smart pointers with DISABLE_SMART_POINTERS defined. Sadly, these micro-benchmark performance improvements don't seem to make much of a difference on Cocoa.h right now. However, they're harmless and might help with future optimizations. llvm-svn: 63061
* rename getSpelledCharacterAt to getSpellingOfSingleCharacterNumericConstant,Chris Lattner2009-01-263-7/+17
| | | | | | optimize it to use the LiteralData when possible. llvm-svn: 63060
* CellSPU:Scott Michel2009-01-266-70/+75
| | | | | | - Update DWARF debugging support. llvm-svn: 63059
* Make the Dwarf macro information section optional; CellSPU's assemblerScott Michel2009-01-263-10/+22
| | | | | | | doesn't support it. The default is set to 'true', so this should not impact any other target backends. llvm-svn: 63058
* Fix a bug I introduced in my changes, which caused MeasureTokenLengthChris Lattner2009-01-261-1/+2
| | | | | | | to crash when given an instantiation location. Thanks to Fariborz for the testcase. llvm-svn: 63057
* Implement Red Zone utilization on x86-64. This is currentlyDan Gohman2009-01-263-0/+23
| | | | | | | disabled by default; I'll enable it when I hook it up with the llvm-gcc flag which controls it. llvm-svn: 63056
* Add support for member pointers to const_cast.Sebastian Redl2009-01-263-7/+18
| | | | llvm-svn: 63055
* Silence warning.Ted Kremenek2009-01-261-1/+1
| | | | llvm-svn: 63054
* Add version number to PTH files.Ted Kremenek2009-01-261-1/+4
| | | | llvm-svn: 63052
* More updates to VC proj...Steve Naroff2009-01-262-62/+18
| | | | llvm-svn: 63050
* Reapply r63025 and r63026, with fixes for the failing testcases.Owen Anderson2009-01-261-356/+13
| | | | llvm-svn: 63049
* Fix PR3393, which amounts to a bug in the expensiveDuncan Sands2009-01-263-16/+53
| | | | | | | | | checking logic. Rather than make the checking more complicated, I've tweaked some logic to make things conform to how the checking thought things ought to be, since this results in a simpler "mental model". llvm-svn: 63048
* Add version number checking to PTH files.Ted Kremenek2009-01-262-2/+9
| | | | llvm-svn: 63047
* Embed the offset of the PTH table inside the prologue of the PTH file. This ↵Ted Kremenek2009-01-262-9/+20
| | | | | | will help improve gradual versioning of PTH files instead of relying that the PTH table is at a fixed offset. llvm-svn: 63045
* Add method raw_fd_ostream::seek() for random access within a file.Ted Kremenek2009-01-262-1/+11
| | | | llvm-svn: 63044
* Method decription meta-data and its setting in class_ro_t Fariborz Jahanian2009-01-261-17/+102
| | | | | | meta-data. llvm-svn: 63043
* At Nick Lewycky's request, rename this test with a more informative name.Dan Gohman2009-01-261-0/+0
| | | | llvm-svn: 63042
* Also revert r63206Bill Wendling2009-01-261-0/+321
| | | | llvm-svn: 63041
* Temporarily revert r63025 until the testsuite failures can be fixed.Bill Wendling2009-01-261-12/+34
| | | | llvm-svn: 63040
* Add Ignore ABIArgInfo kind, for handling void & empty structures.Daniel Dunbar2009-01-261-4/+40
| | | | llvm-svn: 63039
* Skip emission of final return block if possible (e.g., functions withDaniel Dunbar2009-01-261-3/+7
| | | | | | a unified return). llvm-svn: 63038
* Fix the name of an argument.Dan Gohman2009-01-261-2/+2
| | | | llvm-svn: 63037
OpenPOWER on IntegriCloud