summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* <rdar://problem/11374963>Greg Clayton2012-09-128-8/+131
| | | | | | Partial fix for the above radar where we now resolve dsym mach-o files within the dSYM bundle when using "add-dsym" through the platform. llvm-svn: 163676
* Don't allow an extra entry to slip into the heap results and also add a ↵Greg Clayton2012-09-122-15/+42
| | | | | | better output format llvm-svn: 163675
* Adjust some analyzer tests to place widely shared inputs inside of anChandler Carruth2012-09-1210-8/+8
| | | | | | | | | | | | | | | 'Inputs' subdirectory. The general desire has been to have essentially all of the non-test input files live in such directories, with some exceptions for obvious and common patterns like 'foo.c' using 'foo.h'. This came up because our distributed test runner couldn't find some of the headers, for example with stl.cpp. No functionality changed, just shuffling around here. llvm-svn: 163674
* Fix up more "$t"s in this test that should be "%t"s.Chandler Carruth2012-09-121-1/+1
| | | | llvm-svn: 163673
* PR13811: Add a FunctionParmPackExpr node to handle references to functionRichard Smith2012-09-1223-8/+296
| | | | | | | parameter packs where the reference is not being expanded but the pack has been. Previously, Clang would segfault in such cases. llvm-svn: 163672
* Added some documentation and an accessor for the target with an explanation ↵Greg Clayton2012-09-121-1/+21
| | | | | | of why to not use "lldb.target". llvm-svn: 163671
* Start at getting "thread return" working. Doesn't work yet.Jim Ingham2012-09-1214-2/+138
| | | | llvm-svn: 163670
* Add "info func" to the list.Jim Ingham2012-09-121-0/+14
| | | | llvm-svn: 163669
* Make clang emit a flag for DW_AT_object_pointer for the artificialEric Christopher2012-09-123-7/+19
| | | | | | | | | | args where it should (implicit first arguments). FileCheck-ize a test as well and update tests to take into account the object pointer flag. rdar://9797999 llvm-svn: 163668
* Add some support for dealing with an object pointer on arguments.Eric Christopher2012-09-127-1/+130
| | | | | | Part of rdar://9797999 llvm-svn: 163667
* [ms-inline asm] isDef/NumDefs in this context only refer to register ↵Chad Rosier2012-09-111-3/+2
| | | | | | definitions, not memory definitions. llvm-svn: 163666
* [ms-inline asm] As of r163657 this check is unnecessary.Chad Rosier2012-09-111-5/+0
| | | | llvm-svn: 163665
* Improve tblgen code cleanliness: create an unknown_class, from which the ↵Owen Anderson2012-09-113-4/+5
| | | | | | unknown def inherits. Make tblgen check for that class, rather than checking for the def itself. llvm-svn: 163664
* Compute a map from register names to registers, rather than scanning the ↵Owen Anderson2012-09-113-6/+15
| | | | | | list of registers every time we want to look up a register by name. llvm-svn: 163659
* Add documentation.Chad Rosier2012-09-111-0/+4
| | | | llvm-svn: 163658
* [ms-inline asm] Don't consider tokens or immediates when computing clobbers, ↵Chad Rosier2012-09-111-0/+4
| | | | | | inputs and outputs. llvm-svn: 163657
* Thread-safety analysis: fix bug in expression matching code.DeLesley Hutchins2012-09-112-2/+43
| | | | llvm-svn: 163656
* Add a few virtual functions to the abstract MCParsedAsmOperand class.Chad Rosier2012-09-111-0/+5
| | | | llvm-svn: 163655
* Rename the isMemory() function to isMem(). No functional change intended.Chad Rosier2012-09-111-22/+22
| | | | llvm-svn: 163654
* Release build: guard dump functions withManman Ren2012-09-1120-27/+27
| | | | | | | | "#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)" No functional change. Update r163339. llvm-svn: 163653
* Updated the project file to reflect the addedSean Callanan2012-09-111-6/+8
| | | | | | and deleted classes. llvm-svn: 163652
* This patch is part of ongoing work to extract typeSean Callanan2012-09-1110-243/+560
| | | | | | | | | | | | | | | | | | | | | | | | | | | information from the Objective-C runtime. This patch takes the old AppleObjCSymbolVendor and replaces it with an AppleObjCTypeVendor, which is much more lightweight. Specifically, the SymbolVendor needs to pretend that there is a backing symbol file for the Types it vends, whereas a TypeVendor only vends bare ClangASTTypes. These ClangASTTypes only need to exist in an ASTContext. The ClangASTSource now falls back to the runtime's TypeVendor (if one exists) if the debug information doesn't find a complete type for a particular Objective-C interface. The runtime's TypeVendor maintains an ASTContext full of types it knows about, and re-uses the ISA-based type query information used by the ValueObjects. Currently, the runtime's TypeVendor doesn't provide useful answers because we haven't yet implemented a way to iterate across all ISAs contained in the target process's runtime. That's the next step. llvm-svn: 163651
* objective-C: warn if selector has nothing but bareFariborz Jahanian2012-09-113-4/+19
| | | | | | ':' in its name. // rdar://8366823 llvm-svn: 163650
* StringSwitchify.Chad Rosier2012-09-111-8/+10
| | | | llvm-svn: 163649
* Simplify logic. No functional change intended.Chad Rosier2012-09-111-9/+8
| | | | llvm-svn: 163648
* Revert "[analyzer] Disable STL inlining. Blocked by PR13724."Jordan Rose2012-09-111-1/+1
| | | | | | | | | | | While PR13724 is still an issue, it's not actually an issue in the STL. We can keep this option around in case there turn out to be widespread false positives due to poor modeling of the C++ standard library functions, but for now we'd like to get more data. This reverts r163633 / c6baadceec1d5148c20ee6c902a102233c547f62. llvm-svn: 163647
* Comment parsing: handle non-builtin commands correctly. After semanticDmitri Gribenko2012-09-116-5/+28
| | | | | | | | | | | analysis registers a command, it becomes a "known" command for the lexer, since it has an ID. Having this freedom of choice to register a command is a good thing since BriefParser does not need this. But the parser should still invoke the correct semantic analysis method (actOnUnknownCommand) in this case. llvm-svn: 163646
* [ms-inline asm] Split the parsing of IR asm strings into GCC and MS variants.Chad Rosier2012-09-112-67/+170
| | | | | | Add support in the EmitMSInlineAsmStr() function for handling integer consts. llvm-svn: 163645
* [analyzer] Use the static type for a virtual call if the dynamic type is worse.Jordan Rose2012-09-112-3/+26
| | | | | | | | | | | | | reinterpret_cast does not provide any of the usual type information that static_cast or dynamic_cast provide -- only the new type. This can get us in a situation where the dynamic type info for an object is actually a superclass of the static type, which does not match what CodeGen does at all. In these cases, just fall back to the static type as the best possible type for devirtualization. Should fix the crashes on our internal buildbot. llvm-svn: 163644
* Fix warning from r163642DeLesley Hutchins2012-09-111-1/+0
| | | | llvm-svn: 163643
* Thread safety analysis: fix bug related to lock_returned attributeDeLesley Hutchins2012-09-112-5/+27
| | | | | | on templates. llvm-svn: 163642
* Some more typing-related fixes.Filipe Cabecinhas2012-09-114-20/+20
| | | | llvm-svn: 163641
* Make size_t known before including cxxabi.h (FreeBSD fix)Filipe Cabecinhas2012-09-112-0/+4
| | | | llvm-svn: 163640
* Use c++11 and libc++ and it's headers, instead of gnu's libstdcppFilipe Cabecinhas2012-09-111-0/+4
| | | | | | | | | | Unbreaks the build on FreeBSD People that are using Linux: if you have any problems with this patch please let me know, and tell us how you are compiling lldb with the makefiles. llvm-svn: 163639
* Some more typing-related fixes.Filipe Cabecinhas2012-09-112-3/+3
| | | | llvm-svn: 163638
* Added "heap" command to get info on all allocations on the heap. Currently ↵Greg Clayton2012-09-112-39/+113
| | | | | | only objective C objects are supported since they are easy to detect. llvm-svn: 163637
* SimplifyCFG: preserve branch-weight metadata when creating a new switch fromManman Ren2012-09-112-81/+137
| | | | | | | | | | | | | a pair of switch/branch where both depend on the value of the same variable and the default case of the first switch/branch goes to the second switch/branch. Code clean up and fixed a few issues: 1> handling the case where some cases of the 2nd switch are invalidated 2> correctly calculate the weight for the 2nd switch when it is a conditional eq Testing case is modified from Alastair's original patch. llvm-svn: 163635
* objective-C: warn under a flag if missing argumentFariborz Jahanian2012-09-113-3/+42
| | | | | | | name results in unintended selector name. // rdar://12263549 llvm-svn: 163634
* [analyzer] Disable STL inlining. Blocked by PR13724.Anna Zaks2012-09-111-1/+1
| | | | llvm-svn: 163633
* Add TRI::getSubRegIndexLaneMask().Jakob Stoklund Olesen2012-09-115-9/+102
| | | | | | | | | | | | | | | | | Sub-register lane masks are bitmasks that can be used to determine if two sub-registers of a virtual register will overlap. For example, ARM's ssub0 and ssub1 sub-register indices don't overlap each other, but both overlap dsub0 and qsub0. The lane masks will be accurate on most targets, but on targets that use sub-register indexes in an irregular way, the masks may conservatively report that two sub-register indices overlap when the eventually allocated physregs don't. Irregular register banks also mean that the bits in a lane mask can't be mapped onto register units, but the concept is similar. llvm-svn: 163630
* Clean the sub-reg index composition maps at emission.Jakob Stoklund Olesen2012-09-113-20/+2
| | | | | | | Preserve the Composites map in the CodeGenSubRegIndex class so it can be used to determine which sub-register indices can actually be composed. llvm-svn: 163629
* Add MCRI::getNumSubRegIndices() and start checking SubRegIndex ranges.Jakob Stoklund Olesen2012-09-114-3/+14
| | | | | | | | Apparently, NumSubRegIndices was completely unused before. Adjust it by one to include the null subreg index, just like getNumRegs() includes the null register. llvm-svn: 163628
* Formatting. No functional change intended.Chad Rosier2012-09-111-1/+1
| | | | llvm-svn: 163627
* Dimitry Andric: FreeBSD porting tweaks for PTHREAD_MUTEX_INITIALIZER and ↵Howard Hinnant2012-09-111-2/+2
| | | | | | PTHREAD_COND_INITIALIZER llvm-svn: 163626
* Change the NULL to a 0 since we need a uint32_tFilipe Cabecinhas2012-09-117-19/+19
| | | | llvm-svn: 163625
* Dragonegg selfhost exposed additional cases where alloca usage moved outside ↵Nadav Rotem2012-09-111-1/+1
| | | | | | of lifetime markers. Disabling the pass for now. llvm-svn: 163623
* [Sanitizer] get rid of empty DEFAULT_CONVENTION in interception lib to ↵Alexey Samsonov2012-09-111-27/+23
| | | | | | remove empty macro arguments llvm-svn: 163622
* Fix namespace nesting and remove windows line endings.Rafael Espindola2012-09-111-21/+16
| | | | llvm-svn: 163620
* Add test cases for multi-dimensional variable lengths arraysTobias Grosser2012-09-115-0/+355
| | | | | | | | | At the moment we can handle such arrays only by conservatively assuming that each access to such an array may touch any element in the array. It would be great if we could improve Polly/LLVM at some point, such that we can recover the multi-dimensionality of the accesses. llvm-svn: 163619
* ScopInfo: Align parameters when using -polly-allow-nonaffineTobias Grosser2012-09-112-0/+38
| | | | | | | | This ensures that the isl sets/maps we operate on have the same parameter dimensions. Operations on objects with different parameter dimensions are not allow and trigger assertions. llvm-svn: 163618
OpenPOWER on IntegriCloud