summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Reduce -Wuninitialized time by 22% (on sqlite) by removing the recursive AST ↵Ted Kremenek2011-07-194-108/+109
| | | | | | | | | | | | | | | crawl. This is accomplished by forcing the needed expressions for -Wuninitialized to always be CFGElements in the CFG. This allows us to remove a fair amount of the code for -Wuninitialized. Some fallout: - AnalysisBasedWarnings.cpp now specifically toggles the CFGBuilder to create a CFG that is suitable for -Wuninitialized. This is a layering violation, since the logic for -Wuninitialized is in libAnalysis. This can be fixed with the proper refactoring. - Some of the source locations for -Wunreachable-code warnings have shifted. While not ideal, this is okay because that analysis already needs some serious reworking. llvm-svn: 135480
* Add hooks into the CFG builder to force that specific expressions are always ↵Ted Kremenek2011-07-193-9/+32
| | | | | | CFGElements. llvm-svn: 135479
* Convert TargetData::getIndexedOffset to use ArrayRef.Jay Foad2011-07-1911-30/+25
| | | | llvm-svn: 135478
* Use ArrayRef in ConstantFoldInstOperands and ConstantFoldCall.Jay Foad2011-07-199-43/+43
| | | | llvm-svn: 135477
* Add intrinsics for the zext / sext instructions.Richard Osborne2011-07-193-7/+47
| | | | llvm-svn: 135476
* Add intrinsics for the testct, testwct instructions.Richard Osborne2011-07-193-1/+29
| | | | llvm-svn: 135475
* Add intrinsics for the peek and endin instructions.Richard Osborne2011-07-193-1/+28
| | | | llvm-svn: 135474
* Fix typo.Nick Lewycky2011-07-191-1/+1
| | | | llvm-svn: 135473
* Remove bogus test: for all possible inputs of %X, the 'sub nsw' is guaranteedNick Lewycky2011-07-191-11/+0
| | | | | | to perform a signed wrap. Don't rely on any particular handling of that case. llvm-svn: 135471
* Match createTargetMachine API change.Evan Cheng2011-07-193-11/+15
| | | | llvm-svn: 135469
* Introduce MCCodeGenInfo, which keeps information that can affect codegenEvan Cheng2011-07-1974-314/+641
| | | | | | | (including compilation, assembly). Move relocation model Reloc::Model from TargetMachine to MCCodeGenInfo so it's accessible even without TargetMachine. llvm-svn: 135468
* Modified the LocateMacOSXFilesUsingDebugSymbols(...) function to locateGreg Clayton2011-07-1932-3944/+5810
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | an executable file if it is right next to a dSYM file that is found using DebugSymbols. The code also looks into a bundle if the dSYM file is right next to a bundle. Modified the MacOSX kernel dynamic loader plug-in to correctly set the load address for kext sections. This is a tad tricky because of how LLDB chooses to treat mach-o segments with no name. Also modified the loader to properly handle the older version 1 kext summary info. Fixed a crasher in the Mach-o object file parser when it is trying to set the section size correctly for dSYM sections. Added packet dumpers to the CommunicationKDP class. We now also properly detect address byte sizes based on the cpu type and subtype that is provided. Added a read memory and read register support to CommunicationKDP. Added a ThreadKDP class that now uses subclasses of the RegisterContextDarwin_XXX for arm, i386 and x86_64. Fixed some register numbering issues in the RegisterContextDarwin_arm class and added ARM GDB numbers to the ARM_GCC_Registers.h file. Change the RegisterContextMach_XXX classes over to subclassing their RegisterContextDarwin_XXX counterparts so we can share the mach register contexts between the user and kernel plug-ins. llvm-svn: 135466
* Make EmitAtomic functions return the correct MachineBasicBlocks so thatAkira Hatanaka2011-07-191-22/+28
| | | | | | | ExpandISelPseudos::runOnMachineFunction does not visit instructions that have just been added. llvm-svn: 135465
* Do not insert instructions in reverse order.Akira Hatanaka2011-07-191-14/+16
| | | | llvm-svn: 135464
* Fixed a bug where deleting a regex summary would not immediately reflect in ↵Enrico Granata2011-07-1919-441/+1436
| | | | | | | | | | | | | | | | | | | | | | | | | the variables display The "systemwide summaries" feature has been removed and replaced with a more general and powerful mechanism. Categories: - summaries can now be grouped into buckets, called "categories" (it is expected that categories correspond to libraries and/or runtime environments) - to add a summary to a category, you can use the -w option to type summary add and give a category name (e.g. type summary add -f "foo" foo_t -w foo_category) - categories are by default disabled, which means LLDB will not look into them for summaries, to enable a category use "type category enable". once a category is enabled, LLDB will look into that category for summaries. the rules are quite trivial: every enabled category is searched for an exact match. if an exact match is nowhere to be found, any match is searched for in every enabled category (whether it involves cascading, going to base classes, ...). categories are searched into the order in which they were enabled (the most recently enabled category first, then the second most and so on..) - by default, most commands that deal with summaries, use a category named "default" if no explicit -w parameter is given (the observable behavior of LLDB should not change when categories are not explicitly used) - the systemwide summaries are now part of a "system" category llvm-svn: 135463
* Make isLoadExtLegal and isTruncStoreLegal check what the name says. :) This ↵Eli Friedman2011-07-191-5/+2
| | | | | | might have some minor effect on CellSPU, but all other targets should be unaffected. Fixing per report from Damien Vincent on llvmdev. llvm-svn: 135462
* Initialize the all important automatic variable 'lldb::ConnectionStatus ↵Johnny Chen2011-07-191-1/+1
| | | | | | | | | status' before invoking the Read(...) method to read in bytes. This seems to fix the infinite looping I was seeing on SnowLeopard while running the test suite. llvm-svn: 135461
* Correct test.Howard Hinnant2011-07-191-0/+1
| | | | llvm-svn: 135460
* Add SWIG interface files for SBSymbol, SBSymbolContext, and SBSymbolContextList.Johnny Chen2011-07-198-81/+215
| | | | llvm-svn: 135459
* Update docs to reflect r135457.Devang Patel2011-07-191-1/+3
| | | | llvm-svn: 135458
* Make a provision to encode inline location in a variable. This will enable ↵Devang Patel2011-07-194-5/+32
| | | | | | dwarf writer to easily distinguish between two instances of a inlined variable in one basic block. llvm-svn: 135457
* Simplify.Devang Patel2011-07-191-6/+2
| | | | llvm-svn: 135456
* Implement a __WCHAR_UNSIGNED__ macro and use it to include WCHAR_MIN andAlexis Hunt2011-07-192-0/+17
| | | | | | | WCHAR_MAX in limits.h, thus solving the problem where the system header thinks it knows better. llvm-svn: 135455
* Revert r135423.Devang Patel2011-07-194-148/+0
| | | | llvm-svn: 135454
* Document how to maintain a git-svn clone of the LLVM git repositories.Jeffrey Yasskin2011-07-191-1/+56
| | | | llvm-svn: 135453
* Micro-opt: Only emit compact unwind if there is a compact unwind encoding to ↵Bill Wendling2011-07-191-1/+1
| | | | | | emit. llvm-svn: 135452
* Use the CompactUnwindEncoding from the Frame, if it's defined.Bill Wendling2011-07-191-7/+2
| | | | llvm-svn: 135451
* Add a frame with the compact unwind encoding if it exists.Bill Wendling2011-07-191-0/+3
| | | | llvm-svn: 135450
* Add a method to set compact unwind encoding information in a frame.Bill Wendling2011-07-192-0/+7
| | | | llvm-svn: 135449
* Rename CompactEncoding to CompactUnwindEncoding.Bill Wendling2011-07-192-9/+9
| | | | llvm-svn: 135448
* Fixed a bug where the MC subtarget informationSean Callanan2011-07-191-0/+1
| | | | | | | wasn't being initialized by the enhanced disassembler, leading to assertion failures. llvm-svn: 135447
* Add a field for the compact unwind encoding.Bill Wendling2011-07-191-1/+2
| | | | llvm-svn: 135446
* Adjust two tests to account for a nasty change in copying behaviorAlexis Hunt2011-07-184-0/+18
| | | | | | | between C++03 and C++0x and its effect on exceptions, and another two to not test move construction when rvalue references are not available. llvm-svn: 135445
* Make all fstream tests use tmpnam if creating files, rather thanAlexis Hunt2011-07-1824-156/+205
| | | | | | hard-coded names. llvm-svn: 135444
* Move the compact encoding from the target-specific library to the code-genBill Wendling2011-07-182-3/+13
| | | | | | library. llvm-svn: 135443
* Revamp our handling of tLDMIA[_UPD] and tSTMIA[_UPD] to avoid having ↵Owen Anderson2011-07-184-17/+40
| | | | | | multiple instructions with the same encoding. This resolves another conflict when bringing up the new-style disassembler. llvm-svn: 135442
* Add SWIG Python interface files for SBLineEntry, SBListener, and SBModule.Johnny Chen2011-07-188-60/+316
| | | | llvm-svn: 135441
* Add .gitignore file.Eric Christopher2011-07-181-0/+25
| | | | llvm-svn: 135440
* Eliminate TargetAsmInfo::getCompactUnwindEncoding. This get rid of theEvan Cheng2011-07-182-11/+0
| | | | | | use of TargetFrameLowering in TargetAsmInfo. llvm-svn: 135439
* Move getInitialFrameState from TargetFrameInfo to MCAsmInfo (suggestions forEvan Cheng2011-07-1844-131/+111
| | | | | | better location welcome). llvm-svn: 135438
* Check column number also.Devang Patel2011-07-182-4/+6
| | | | llvm-svn: 135437
* Missed the interface file for SBFunction in the previous checkin.Johnny Chen2011-07-182-41/+81
| | | | llvm-svn: 135436
* Mark the Darwin assembler workout as isCodeGenOnly, so that it doesn't cause ↵Owen Anderson2011-07-181-1/+1
| | | | | | decoding conflicts in the new-style disassembler. llvm-svn: 135434
* Add SWIG Python interface files for SBDebugger, SBCompileUnit, and SBEvent.Johnny Chen2011-07-187-246/+534
| | | | llvm-svn: 135432
* Add APInt(numBits, ArrayRef<uint64_t> bigVal) constructor to prevent future ↵Jeffrey Yasskin2011-07-1812-36/+61
| | | | | | | | | ambiguity errors like the one corrected by r135261. Migrate all LLVM callers of the old constructor to the new one. llvm-svn: 135431
* Add SWIG Python interface files for SBAddress, SBBlock, SBBreakpoint, and ↵Johnny Chen2011-07-189-173/+428
| | | | | | SBBreakpointLocation. llvm-svn: 135430
* Removed a redundant dyn_cast. Thanks to FelipeSean Callanan2011-07-181-7/+5
| | | | | | Cabecinhas. llvm-svn: 135429
* www: Fix typoTobias Grosser2011-07-181-1/+1
| | | | | | Reported by: Chad Rosier <mcrosier@apple.com> llvm-svn: 135428
* FileCheck-ize a couple tests.Eli Friedman2011-07-182-4/+22
| | | | llvm-svn: 135427
* Compiler warning.Andrew Trick2011-07-181-3/+3
| | | | llvm-svn: 135426
OpenPOWER on IntegriCloud