summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make whitespace more consistent.Bob Wilson2010-12-071-3/+3
| | | | llvm-svn: 121088
* Add an OpReinterpret operation to TableGen's NeonEmitter.Bob Wilson2010-12-072-40/+73
| | | | | | | | An OpReinterpret entry is handled by translating it to OpCast intrinsics for all combinations of source and destination types with the same total size. This will be used to generate all the vreinterpret intrinsics. llvm-svn: 121087
* Fix whitespace.Bob Wilson2010-12-071-5/+5
| | | | llvm-svn: 121086
* Fix a crash reduced from gcc produced assembly.Rafael Espindola2010-12-072-8/+126
| | | | llvm-svn: 121085
* Fix enumerator not handled in switch warnings.Francois Pichet2010-12-072-4/+4
| | | | llvm-svn: 121084
* Kill FullExpr, as it was not, in fact, used anywhere in the code base.John McCall2010-12-076-159/+6
| | | | | | | I'm not opposed to the idea in concept, but there's no point in preserving abortive experiments. llvm-svn: 121083
* Second attempt at converting Thumb2's LDRpci, including updating the ↵Owen Anderson2010-12-079-73/+102
| | | | | | gazillion places that need to know about it. llvm-svn: 121082
* Use Sema::MaybeCreateExprWithCleanups() only after we've checked for a ↵Douglas Gregor2010-12-073-15/+10
| | | | | | NULL/invalid expression llvm-svn: 121081
* Add python scripts to extract debug info using LLDB and do comparison.Devang Patel2010-12-072-0/+207
| | | | llvm-svn: 121079
* Add a simple breakpoint location printer. This will be used by upcoming ↵Devang Patel2010-12-071-1/+59
| | | | | | "debug info in optimized code" quality test harness to set breakpoints at "interesting" locations. llvm-svn: 121078
* Add expect matching patterns for some self.expect() statements.Johnny Chen2010-12-071-6/+12
| | | | llvm-svn: 121077
* Sorry for such a large commit. The summary is that only MachO cares about theRafael Espindola2010-12-0715-206/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | actuall addresses in a .o file, so it is better to let the MachO writer compute it. This is good for two reasons. First, areas that shouldn't care about addresses now don't have access to it. Second, the layout of each section is independent. I should use this in a subsequent commit to speed it up. Most of the patch is just removing the section address computation. The two interesting parts are the change on how we handle padding in the end of sections and how MachO can get the address of a-b when a and b are in different sections. Since now the expression evaluation normally doesn't know the section address, it will think that a-b needs relocation and let the MachO writer know. Once it has computed the section addresses, it calls back the expression evaluation with the section addresses to resolve these expressions. The remaining problem is the handling of padding. Currently it will create a special alignment fragment at the end. Since that fragment doesn't update the alignment of the section, it needs the real address to be computed. Since now the layout will not compute a-b with a and b in different sections, the only effect that the special alignment fragment has is update the address size of the section. This can also be done by the MachO writer. llvm-svn: 121076
* Fix compile error: comma at end of enumerator list.Francois Pichet2010-12-071-1/+1
| | | | llvm-svn: 121075
* Type traits intrinsic implementation: __is_base_of(T, U)Francois Pichet2010-12-0724-3/+374
| | | | | | New AST node introduced: BinaryTypeTraitExpr; to be reused for more intrinsics. llvm-svn: 121074
* Use atomic operations for libclang's object count tracking.Douglas Gregor2010-12-072-6/+8
| | | | llvm-svn: 121073
* Add fixup for Thumb1 BL/BLX instructions.Jim Grosbach2010-12-067-17/+80
| | | | llvm-svn: 121072
* Fixes to make id work as well as well as fix minor errorsSean Callanan2010-12-063-3/+7
| | | | | | when calling built-ins. llvm-svn: 121070
* When shared libraries are unloaded, they are now removed from the targetGreg Clayton2010-12-065-17/+37
| | | | | | | | | ModuleList so they don't show up in the images. Breakpoint locations that are in shared libraries that get unloaded will persist though so that if you have plug-ins that load/unload and you have a breakpoint set on functions in the plug-ins, the hit counts will persist between loads/unloads. llvm-svn: 121069
* Add TestObjCMethods2.py to exercise more expression command sequences with objc.Johnny Chen2010-12-061-0/+145
| | | | | | | | | | | | Mark NSArray_expr() and NSString_expr() as currently failing. Both are called from dsym and dwarf builds. So that makes the num of expected failures equal 4. ---------------------------------------------------------------------- Ran 6 tests in 19.856s OK (expected failures=4) llvm-svn: 121068
* Implement jump threading of 'indirectbr' by keeping track of whether we're ↵Frits van Bommel2010-12-062-46/+141
| | | | | | looking for ConstantInt*s or BlockAddress*s. llvm-svn: 121066
* Getting <atomic> warmed back up. We have a hopefully more stable spec now. ↵Howard Hinnant2010-12-0613-2273/+1675
| | | | | | And I believe the intrinsic spec at http://libcxx.llvm.org/atomic_design_a.html is still good. llvm-svn: 121064
* Minor comment string change.Johnny Chen2010-12-061-1/+1
| | | | llvm-svn: 121063
* More descriptive comment string.Johnny Chen2010-12-061-1/+1
| | | | llvm-svn: 121062
* Undefined value in reg 0 may need a marker to identify end of source range.Devang Patel2010-12-061-4/+2
| | | | | | This will be used to truncate live range of DBG_VALUE instruction by register allocator and friends. llvm-svn: 121061
* If dbg_declare() or dbg_value() is not lowered by isel then emit DEBUG ↵Devang Patel2010-12-0614-311/+241
| | | | | | message instead of creating DBG_VALUE for undefined value in reg0. llvm-svn: 121059
* Modify Test_Selector's comment string, too.Johnny Chen2010-12-061-1/+1
| | | | llvm-svn: 121052
* Disambiguate the comment strings in order to be used from the .py test file.Johnny Chen2010-12-061-2/+2
| | | | llvm-svn: 121051
* Use references to simplify the code a bit.Rafael Espindola2010-12-064-18/+15
| | | | llvm-svn: 121050
* Adding bug fix that was suppose to be part of 121044.Wesley Peck2010-12-061-6/+6
| | | | | | patch contributed by Jack Whitham! llvm-svn: 121049
* Fixed a bug in which the SEL type was being resolvedSean Callanan2010-12-063-2/+5
| | | | | | | | wrongly as the target of a pointer rather than the SEL pointer itself. This caused incorrect behavior when dealing with Objective-C selector variables. llvm-svn: 121048
* Objective-C pointer conversions to 'id' or qualified 'id' subsumeDouglas Gregor2010-12-062-0/+14
| | | | | | | | cv-qualification conversions. More specifically, there's an implicit cv-qualification conversion (even one that drops qualifiers) when converting to 'id' or qualified 'id'. Fixes <rdar://problem/8734046>. llvm-svn: 121047
* Modified main.m and TestObjCMethods.py to unbreak the test/foundation directory.Johnny Chen2010-12-062-0/+13
| | | | llvm-svn: 121046
* Forgot to also check in this file with the previous r121036 change:Johnny Chen2010-12-061-1/+1
| | | | | | /lldb/trunk/test/load_unload/TestLoadUnload.py llvm-svn: 121045
* Fixed reversed operands for IDIV and CMP instructions in MBlaze backend.Wesley Peck2010-12-063-28/+28
| | | | | | | | Use BRAD instead of BRD for indirect branches in MBlaze backend. patch contributed by Jack Whitham! llvm-svn: 121044
* Refactor ELFObjectWriter.Jason W Kim2010-12-061-216/+106
| | | | | | | + ARM/X86/MBlaze now share a common RecordRelocation + ARM/X86/MBlaze arch specific routines are limited to GetRelocType() llvm-svn: 121043
* replace a linear scan with a symtab lookup, reduce indentation.Chris Lattner2010-12-061-38/+38
| | | | | | No functionality change. llvm-svn: 121042
* use getSymbolOffset.Rafael Espindola2010-12-061-1/+1
| | | | llvm-svn: 121041
* Use a stronger predicate here, pointed out by DuncanChris Lattner2010-12-061-1/+1
| | | | llvm-svn: 121040
* Fail fast by raising an exception if the 'string_to_match' cannot be locatedJohnny Chen2010-12-061-1/+1
| | | | | | within the file 'filename'. llvm-svn: 121039
* add some DEBUG statements.Chris Lattner2010-12-061-3/+14
| | | | llvm-svn: 121038
* Fix a 16-bit immediate value detection bug in the MBlaze delay slot filler.Wesley Peck2010-12-062-49/+87
| | | | | | | | Address more hazards in the MBlaze delay slot filler. patch contributed by Jack Whitham! llvm-svn: 121037
* Add a test case test_lldb_process_load_and_unload_commands() for using lldb ↵Johnny Chen2010-12-061-0/+58
| | | | | | | | | commands 'process load' and 'process unload' to load and unload shared library from lldb command lines. llvm-svn: 121036
* Split out a function to do lvalue conversion on objects; this is basicallyJohn McCall2010-12-062-42/+57
| | | | | | | | | | FunctionArrayLvalueConversion but without the function/array decay. Generally this is only appropriate for use sites that know the type of the expression and thus that it can't be subject to the decays. Also make sure we do lvalue-to-rvalue on the bases of ivar references. llvm-svn: 121035
* Another use of getSymbolOffset.Rafael Espindola2010-12-061-4/+8
| | | | llvm-svn: 121034
* c/objc/c++'98 are basically done, but we want '0x support.Chris Lattner2010-12-061-20/+15
| | | | | | | Add "clang indent" as a possible project, we really really need it. :) llvm-svn: 121030
* Remove a fixme which was fixed in a previous commit.Argyrios Kyrtzidis2010-12-061-2/+0
| | | | llvm-svn: 121029
* Remove the instruction fragment to data fragment lowering since it was causingRafael Espindola2010-12-068-128/+60
| | | | | | freed data to be read. I will open a bug to track it being reenabled. llvm-svn: 121028
* Added more test case functions to cover more objective C functionality.Greg Clayton2010-12-061-9/+72
| | | | llvm-svn: 121027
* Revert r121021, which broke the buildbots.Owen Anderson2010-12-062-34/+20
| | | | llvm-svn: 121026
* Use the unused merge() function, fixing an minor, unintended change IDouglas Gregor2010-12-061-9/+5
| | | | | | introduced in r121023. llvm-svn: 121025
OpenPOWER on IntegriCloud