summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace.Jim Grosbach2011-07-191-1/+1
| | | | llvm-svn: 135499
* Remove unused code.Jim Grosbach2011-07-191-54/+3
| | | | | | cc_out and pred operands are added during parsing via custom C++ now. llvm-svn: 135497
* Fix comments.Akira Hatanaka2011-07-191-10/+10
| | | | llvm-svn: 135496
* Remove redundant instructions.Akira Hatanaka2011-07-192-26/+17
| | | | | | | | - In EmitAtomicBinaryPartword, mask incr in loopMBB only if atomic.swap is the instruction being expanded, instead of masking it in thisMBB. - Remove redundant Or in EmitAtomicCmpSwap. llvm-svn: 135495
* The implementation of categories is now synchronization safeEnrico Granata2011-07-1921-678/+805
| | | | | | | | | | | | | | | | | | | | | Code cleanup: - The Format Manager implementation is now split between two files: FormatClasses.{h|cpp} where the actual formatter classes (ValueFormat, SummaryFormat, ...) are implemented and FormatManager.{h|cpp} where the infrastructure classes (FormatNavigator, FormatManager, ...) are contained. The wrapper code always remains in Debugger.{h|cpp} - Several leftover fields, methods and comments from previous design choices have been removed type category subcommands (enable, disable, delete) now can take a list of category names as input - for type category enable, saying "enable A B C" is the same as saying enable C enable B enable A (the ordering is relevant in enabling categories, and it is expected that a user typing enable A B C wants to look into category A, then into B, then into C and not the other way round) - for the other two commands, the order is not really relevant (however, the same inverted ordering is used for consistency) llvm-svn: 135494
* Update CMake build.Benjamin Kramer2011-07-191-0/+1
| | | | llvm-svn: 135492
* [arcmt] Add some additional driver flags to optionally emit or save the ↵Argyrios Kyrtzidis2011-07-1914-14/+377
| | | | | | | | | | | pre-migration ARC errors. -arcmt-migrate-emit-errors : Emits the pre-migration ARC errors but it doesn't affect anything else -arcmt-migrate-report-output : Writes out the pre-migration ARC errors to the provided plist file rdar://9791454 llvm-svn: 135491
* Separate code that modifies control flow from code that adds instruction to Akira Hatanaka2011-07-191-18/+18
| | | | | | basic blocks. llvm-svn: 135490
* ARM range checking for so_imm operands in assembly parsing.Jim Grosbach2011-07-192-0/+15
| | | | llvm-svn: 135489
* Abstract "struct sockaddr", "struct sockaddr_in", "struct sockaddr_in6" andGreg Clayton2011-07-195-33/+327
| | | | | | | | "struct sockaddr_storage" into a new host class called SocketAddress. This will allow us to control the host specific implementations (such as how to get the length) into a single Host specific class. llvm-svn: 135488
* Name the "c++0x-compat" warning group, and fix the names of twoJeffrey Yasskin2011-07-192-4/+4
| | | | | | warnings that were intended to be inside it. llvm-svn: 135487
* Revert "Make a provision to encode inline location in a variable. This will ↵Bob Wilson2011-07-194-32/+5
| | | | | | | | enable dwarf writer to easily distinguish between two instances of a inlined variable in one basic block." This reverts commit 9fec5e346efdf744b151ae6604f912908315fa7a. llvm-svn: 135486
* Revert "Update docs to reflect r135457."Bob Wilson2011-07-191-3/+1
| | | | | | This reverts commit ba034c0a2e71303c7cf3f43ca8e69dc8436b32e2. llvm-svn: 135485
* Revamp the SourceManager to separate the representation of parsedDouglas Gregor2011-07-1922-479/+927
| | | | | | | | | | | | | | | | | | | | | | | | | | | source locations from source locations loaded from an AST/PCH file. Previously, loading an AST/PCH file involved carefully pre-allocating space at the beginning of the source manager for the source locations and FileIDs that correspond to the prefix, and then appending the source locations/FileIDs used for parsing the remaining translation unit. This design forced us into loading PCH files early, as a prefix, whic has become a rather significant limitation. This patch splits the SourceManager space into two parts: for source location "addresses", the lower values (growing upward) are used to describe parsed code, while upper values (growing downward) are used for source locations loaded from AST/PCH files. Similarly, positive FileIDs are used to describe parsed code while negative FileIDs are used to file/macro locations loaded from AST/PCH files. As a result, we can load PCH/AST files even during parsing, making various improvemnts in the future possible, e.g., teaching #include <foo.h> to look for and load <foo.h.gch> if it happens to be already available. This patch was originally written by Sebastian Redl, then brought forward to the modern age by Jonathan Turner, and finally polished/finished by me to be committed. llvm-svn: 135484
* Convert ConstantFoldGetElementPtr to use ArrayRef.Jay Foad2011-07-193-27/+25
| | | | llvm-svn: 135483
* Convert SimplifyGEPInst to use ArrayRef.Jay Foad2011-07-195-11/+15
| | | | llvm-svn: 135482
* Convert gep_type_begin and gep_type_end to use ArrayRef.Jay Foad2011-07-193-9/+11
| | | | llvm-svn: 135481
* 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
OpenPOWER on IntegriCloud