summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Turn shuffles into unpacks for VT == MVT::v2i64 and MVT::v2f64Rafael Espindola2011-07-222-9/+31
| | | | | | too. Patch by Jeff Muizelaar. llvm-svn: 135789
* Fix x86's XALUO lowering to return its replacement values insteadDan Gohman2011-07-221-4/+2
| | | | | | | of doing the RAUW calls for the overflow value itself. This makes it more consistent with how the rest of LegalizeDAG works. llvm-svn: 135788
* llvm-objdump: Don't ignore errors from raw_fd_ostream.Benjamin Kramer2011-07-221-0/+4
| | | | llvm-svn: 135787
* llvm-objdump: Skip branches that leave the current function.Benjamin Kramer2011-07-221-1/+4
| | | | | | | In "normal" code these only happen when disassembling data, so we won't lose anything if we just drop them. llvm-svn: 135786
* Fix test failures caused by my so_reg refactoring.Owen Anderson2011-07-221-2/+2
| | | | llvm-svn: 135785
* ARM assembly parsing and encoding for SMC instruction.Jim Grosbach2011-07-223-3/+12
| | | | llvm-svn: 135782
* Clean up a few more comments.Jim Grosbach2011-07-221-5/+5
| | | | | | | These instruction definitions are for the assembler, too, not just the disassembler. llvm-svn: 135781
* ARM encoding and assembly parsing tests.Jim Grosbach2011-07-221-0/+47
| | | | | | Add tests for SHADD8, SHADD16, SHASX, SHSUB8, and SHSUB16. llvm-svn: 135780
* Tidy up.Jim Grosbach2011-07-221-2/+1
| | | | llvm-svn: 135779
* Thumb assembly support for SETEND instruction.Jim Grosbach2011-07-222-16/+11
| | | | llvm-svn: 135778
* Tidy up.Jim Grosbach2011-07-221-1/+1
| | | | llvm-svn: 135777
* ARM assembly parsing and encoding for SETEND instruction.Jim Grosbach2011-07-224-6/+78
| | | | | | | Add parsing and diagnostics for malformed inputs. Tests for diagnostics and for correct encodings. llvm-svn: 135776
* Remove prepending of '$' to module names.Jonathan D. Turner2011-07-222-4/+4
| | | | llvm-svn: 135775
* Test commitDave Zarzycki2011-07-221-0/+1
| | | | llvm-svn: 135774
* some editing of data visualization error messages to make them more meaningfulEnrico Granata2011-07-226-70/+152
| | | | | | | debugging printfs() for data visualization turned into a meaningful log: - introduced a new log category `types' in channel `lldb' llvm-svn: 135773
* ARM assembly parsing and encoding tests for SEL instruction.Jim Grosbach2011-07-221-0/+10
| | | | llvm-svn: 135772
* Tidy up.Jim Grosbach2011-07-221-6/+2
| | | | llvm-svn: 135771
* Make the SBAddress class easier to use when using the publicGreg Clayton2011-07-228-27/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | API. SBTarget changes include changing: bool SBTarget::ResolveLoadAddress (lldb::addr_t vm_addr, lldb::SBAddress& addr); to be: lldb::SBAddress SBTarget::ResolveLoadAddress (lldb::addr_t vm_addr); SBAddress can how contruct itself using a load address and a target which can be used to resolve the address: SBAddress (lldb::addr_t load_addr, lldb::SBTarget &target); This will actually just call the new SetLoadAddress accessor: void SetLoadAddress (lldb::addr_t load_addr, lldb::SBTarget &target); This function will always succeed in making a SBAddress object that can be used in API calls (even if "target" isn't valid). If "target" is valid and there are sections currently loaded, then it will resolve the address to a section offset address if it can. Else an address with a NULL section and an offset that is the "load_addr" that was passed in. We do this because a load address might be from the heap or stack. llvm-svn: 135770
* Switch all of the "isysroot" const char*'s throughout the AST readerDouglas Gregor2011-07-229-53/+46
| | | | | | and writer to StringRef or std::string, as appropriate. llvm-svn: 135769
* Remove unused variables.Benjamin Kramer2011-07-221-4/+0
| | | | llvm-svn: 135768
* Rename ASTReader::PerFileData to serialization::Module, pulling it outDouglas Gregor2011-07-228-366/+383
| | | | | | | of ASTReader so it can become its own full-fledged class (eventually). No functionality change. llvm-svn: 135767
* Use -ffreestanding with clang_cc1 to make the test picks the clang builtin ↵Francois Pichet2011-07-221-2/+2
| | | | | | include. llvm-svn: 135766
* Add a missing forward declaration and namespace qualifier to thisChandler Carruth2011-07-221-1/+5
| | | | | | | | | header. This showed up in client code that has a different include ordering after Chris's shuffle of raw_ostream. All of the Clang code ends up with a header included before this one that provides the needed type and using declaration. llvm-svn: 135765
* Document the existing objc_precise_lifetime attribute.John McCall2011-07-228-19/+239
| | | | | | | | | Introduce and document a new objc_returns_inner_pointer attribute, and consume it by performing a retain+autorelease on message receivers when they're not immediately loaded from an object with precise lifetime. llvm-svn: 135764
* Fix test on MSVC: since the test includes a system header it cannot use ↵Francois Pichet2011-07-221-2/+2
| | | | | | clang_cc1. llvm-svn: 135763
* Fix more MSVC warnings caused by a cases I missed when convertingJay Foad2011-07-222-2/+2
| | | | | | ConstantExpr::getGetElementPtr to use ArrayRef. llvm-svn: 135762
* Convert IRBuilder::CreateGEP and IRBuilder::CreateInBoundsGEP to useJay Foad2011-07-2215-65/+50
| | | | | | ArrayRef. llvm-svn: 135761
* Move TargetRegistry.cpp from lib/Support to lib/Target where it belongs.Chandler Carruth2011-07-224-17/+17
| | | | | | | | | | | | | | The header file was already properly located. The previous need for it in Support had to do with the version string printing which was fixed in r135757. Also update build dependencies where libraries that needed the functionality of the Target library (in the form of the TargetRegistry) were picking it up via Support. This is pretty pervasive, essentially every TargetInfo library (ARMInfo, etc) uses TargetRegistry, making it depend on Target. All of these were previously just sneaking by. llvm-svn: 135760
* Update the CMake library dependencies. These shifts are the result ofChandler Carruth2011-07-221-3/+3
| | | | | | | | | Evan's recent refactorings (I believe). Specifically, MCDisassembler no longer depends on Target, and ARMDisassembler no longer depends on CodeGen. The added dependencies from ARMAsmParser to ARMDesc looks correct based on header file inclusion. llvm-svn: 135759
* Fix an MSVC warning, caused by a case I missed when convertingJay Foad2011-07-221-1/+1
| | | | | | ConstantExpr::getGetElementPtr to use ArrayRef. llvm-svn: 135758
* Move the registered target printing in version strings completely out ofChandler Carruth2011-07-224-7/+13
| | | | | | | | | | | | | | | | | the Support library. Now its part of the TargetRegistry, and the three commands that care about this explicitly register this extra bit of version information. The set of commands which care was computed by intersecting those which use the Support library's version string printing and those that initialize all the registered targets in a way that produces a meaningful list. The only odd ball out is that 'clang -cc1as -version' no longer prints the registered targets. I don't think anyone is really interested in that (especially as the fact that llvm-mc does so is under a FIXME), but if someone really does want this back I'll happily apply the same patch there. llvm-svn: 135757
* Move the logic for printing the registered targets into a staticChandler Carruth2011-07-223-26/+39
| | | | | | | function on the TargetRegistry. Also clean it up and use the modern LLVM utility libraries available instead of rolling a few things manually. llvm-svn: 135756
* Add an extension point to the CommandLine library where clients canChandler Carruth2011-07-222-3/+31
| | | | | | | | | | | | register extra version information to be printed. This is designed to allow those tools which link in various targets to also print those registered targets under --version. Currently this printing logic is embedded into the Support library directly; a huge layering violation. This is the first step to hoisting it out into the tools without adding lots of duplicated code. llvm-svn: 135755
* Bring over a test from llvm/test/FrontendC that is for Sema and not CodeGen.Eric Christopher2011-07-221-0/+17
| | | | llvm-svn: 135753
* fix PR10384: C++ allows external arrays of incomplete type as well.Chris Lattner2011-07-222-0/+14
| | | | | | Many thanks to Eli for reducing this great testcase. llvm-svn: 135752
* rename test.Chris Lattner2011-07-221-0/+0
| | | | llvm-svn: 135751
* Introduce a global bit-offset continuous range map into the ASTReader,Douglas Gregor2011-07-224-91/+42
| | | | | | | | | | | | | | | | | so that we have one, simple way to map from global bit offsets to local bit offsets. Eliminates a number of loops over the chain, and generalizes for more interesting bit remappings. Also, as an amusing oddity, we were computing global bit offsets *backwards* for preprocessed entities (e.g., the directly included PCH file in the chain would start at offset zero, rather than the original PCH that occurs first in translation unit). Even more amusingly, it made precompiled preambles work, because we were forgetting to adjust the local bit offset to a global bit offset when storing preprocessed entity offsets in the ASTUnit. Two wrongs made a right, and now they're both right. llvm-svn: 135750
* Fix an embarrassing bug in relocatable PCH support, where we wereDouglas Gregor2011-07-222-1/+11
| | | | | | | passing a temporary const char* down as the "isysroot" parameter and then accessing it later. Fixes <rdar://problem/9035180>. llvm-svn: 135749
* Move duplicate uninitialized warning suppression into theChandler Carruth2011-07-223-18/+12
| | | | | | | | | | | | AnalysisBasedWarnings Sema layer and out of the Analysis library itself. This returns the uninitialized values analysis to a more pure form, allowing its original logic to correctly detect some categories of definitely uninitialized values. Fixes PR10358 (again). Thanks to Ted for reviewing and updating this patch after his rewrite of several portions of this analysis. llvm-svn: 135748
* In ARC, non-atomic getters do not need to retain and autoreleaseJohn McCall2011-07-222-17/+58
| | | | | | | their loaded values, although it still worth doing this for __weak properties to get the autoreleased-return-value optimization. llvm-svn: 135747
* Move this ObjCImplementationDecl member function into libASTJohn McCall2011-07-222-13/+13
| | | | | | where it belongs. llvm-svn: 135746
* lib/Support/Triple.cpp: Recognize "-march=ppc32" to llc properly, as quick hack.NAKAMURA Takumi2011-07-221-0/+2
| | | | | FIXME: There is an inconsistency. llvm::Triple does not understand "ppc32" and PowerPC/TargetInfo holds "ppc32". llvm-svn: 135745
* Some LangRef tweaks, per Dan's comments.Eli Friedman2011-07-221-13/+16
| | | | llvm-svn: 135744
* In Objective-C, pull arbitrary attributes from overriddenJohn McCall2011-07-225-174/+211
| | | | | | | | | | | | | | | methods, including indirectly overridden methods like those declared in protocols and categories. There are mismatches that we would like to diagnose but aren't yet, but this is fine for now. I looked at approaches that avoided doing this lookup unless we needed it, but the infer-related-result-type checks were doing it anyway, so I left it with the same fast-path check for no previous declartions of that selector. llvm-svn: 135743
* Allow getBlockFreq to return 0.Jakub Staszak2011-07-225-20/+19
| | | | llvm-svn: 135742
* Add a const overload for ObjCInterfaceDecl::all_declared_ivar_begin.Jordy Rose2011-07-2210-72/+50
| | | | | | | | | This was previously not-const only because it has to lazily construct a chain of ivars the first time it is called (and after the chain is invalidated). In practice, all the clients were just const_casting their const Decls; all those now-unnecessary const_casts have been removed. llvm-svn: 135741
* objective-c: Any use of @synthesize or @dynamic lexically after a method (or ↵Fariborz Jahanian2011-07-2211-22/+36
| | | | | | | | | | C function) implementation will be rejected with a compilation error in ARC mode, and a compiler warning otherwise. This may cause breakage in non-arc (and arc) tests which don't expect warning/error. Feel free to fix the tests, or reverse the patch, if I am unavailable. // rdar://9818354 - WIP llvm-svn: 135740
* GCC complains about the angle of this line.Benjamin Kramer2011-07-221-1/+1
| | | | | | Remove the escaped newline. llvm-svn: 135739
* Revert patch which broke some IfConversion tests.Jakub Staszak2011-07-221-10/+29
| | | | llvm-svn: 135738
* Fix comment.Johnny Chen2011-07-221-3/+3
| | | | llvm-svn: 135737
OpenPOWER on IntegriCloud