summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [clang] Use -android environment for all compiler-rt libs.Dan Albert2015-01-283-8/+30
| | | | | | | | | | | | | | | | Summary: This was already done for the sanitizers, but it needs to be done for the profile and builtin libs as well. Reviewers: srhines, timmurray, eugenis, samsonov Reviewed By: samsonov Subscribers: compnerd, cfe-commits Differential Revision: http://reviews.llvm.org/D7187 llvm-svn: 227392
* [LPM] Fix the PPC attribute to be spelled 'global-dynamic'. This shouldChandler Carruth2015-01-281-2/+2
| | | | | | let the build bot make finish compiling stage2. llvm-svn: 227391
* Teach SplitBlockPredecessors how to handle landingpad blocks.Philip Reames2015-01-286-48/+39
| | | | | | | | | | Patch by: Igor Laevsky <igor@azulsystems.com> "Currently SplitBlockPredecessors generates incorrect code in case if basic block we are going to split has a landingpad. Also seems like it is fairly common case among it's users to conditionally call either SplitBlockPredecessors or SplitLandingPadPredecessors. Because of this I think it is reasonable to add this condition directly into SplitBlockPredecessors." Differential Revision: http://reviews.llvm.org/D7157 llvm-svn: 227390
* Add lit-style tests for the Fuzzer libraryKostya Serebryany2015-01-286-2/+64
| | | | | | | | | | | | | | | | Summary: Add test targets and the lit-style runner. Test Plan: Run the tests on bot. Reviewers: samsonov Reviewed By: samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7217 llvm-svn: 227389
* NFC. Migrating clang-tools-extra to the cl::HideUnrelatedOptions API.Chris Bieneman2015-01-282-29/+7
| | | | llvm-svn: 227388
* [sanitizer] allow to reset the bb/edge coverage data inside the process ↵Kostya Serebryany2015-01-283-2/+81
| | | | | | while it is running (single-threaded). Also expose the current coverage set to the process. llvm-svn: 227387
* fix typos; NFCSanjay Patel2015-01-282-2/+2
| | | | llvm-svn: 227386
* Build fix for Visual Studio. NFC.Chris Bieneman2015-01-281-5/+2
| | | | llvm-svn: 227385
* Fix for PR22061 by K-balloMarshall Clow2015-01-282-5/+18
| | | | llvm-svn: 227384
* Add logic to ClangASTType and SBType to discover information about vector typesEnrico Granata2015-01-285-1/+69
| | | | llvm-svn: 227383
* [dsymutil] Gather the DIE tree child->parent relationships.Frederic Riss2015-01-281-0/+62
| | | | | | | | | | The libDebugInfo DIE parsing doesn't store these relationships, we have to recompute them. This commit introduces the CompileUnit bookkeeping class to store this data. It will be expanded with more fields in the future. No tests as this produces no visible output. llvm-svn: 227382
* Add DWARFUnit::getNumDIEs() and getDIEIndex()Frederic Riss2015-01-281-0/+20
| | | | | | | | | | | Parsed DIEs are stored in a vector and that makes it easy to get their indices. Having easy access to a DIE's index makes it possible to use arrays or vectors to efficiently store/access DIE related information. There's no test for that new functionality (I don't see how to test it standalone), but it'll be used in a subsequent dsymutil commit. llvm-svn: 227381
* Fixed the failing test:Greg Clayton2015-01-283-67/+80
| | | | | | | | | | ./dotest.py -A x86_64 -C clang -v -t -f TestImageListMultiArchitecture.test_image_list_shows_multiple_architectures The problem was that if the platform wasn't compatible with the current file in the "target create" command, it wasn't finding a platform that was like it used to. Also, the currently selected platform was being used upload the file _before_ the target was created which was incorrect as "target create a.out" might switch platforms if its architecture doesn't match, so I moved the uploading to happen after the target was created so we use the right platform (the one in the target, not the selected one). llvm-svn: 227380
* [Hexagon] Updating several V5 intrinsics and adding FP tests.Colin LeMahieu2015-01-288-425/+1011
| | | | llvm-svn: 227379
* CXX [qoi]. Prevent a crash when initializer expression isFariborz Jahanian2015-01-281-0/+2
| | | | | | | invalid when trying to create temporary copy of the invalid initializer. rdar://19109967 llvm-svn: 227378
* PR22367: Don't forget to create a CXXFunctionalCastExpr aroundRichard Smith2015-01-284-10/+44
| | | | | | | | | list-initialization that gets converted to some form other than an InitListExpr. CXXTemporaryObjectExpr is a special case here, because it represents a fused CXXFunctionalCastExpr + CXXConstructExpr. That, in itself, is probably a design error... llvm-svn: 227377
* Spelling fixes. NFC.Simon Pilgrim2015-01-281-4/+4
| | | | llvm-svn: 227376
* Line endings fix. NFC.Simon Pilgrim2015-01-281-786/+786
| | | | llvm-svn: 227374
* [mips][microMIPS] Implement SWM and LWM aliasesZoran Jovanovic2015-01-283-0/+69
| | | | | | Differential Revision: http://reviews.llvm.org/D5820 llvm-svn: 227373
* Updated tools to match r227345 which changed the getRegisteredOptions methodPete Cooper2015-01-282-4/+2
| | | | llvm-svn: 227372
* PR 17456Nathan Sidwell2015-01-284-4/+48
| | | | | | More helpful diagnostic on casts between unrelated class hierarchies. llvm-svn: 227371
* We had two identical files named 'MoveOnly.h' in the test suite. Move one to ↵Marshall Clow2015-01-28157-205/+155
| | | | | | support/, remove the other, and update all the tests that included them. No functionality change. llvm-svn: 227370
* ELF: s/diagnostics/diag/Rui Ueyama2015-01-282-46/+40
| | | | | | | We use a variable name "diag" in many other places and I think it's preferred because of its length. llvm-svn: 227369
* Revert a change from r222797 that is no longer needed and can causeKaelyn Takata2015-01-283-6/+14
| | | | | | | | | | | | | infinite recursion. Also guard against said infinite recursion by adding an assert that will trigger if CorrectDelayedTyposInExpr is called before a previous call to CorrectDelayedTyposInExpr returns (i.e. if the TreeTransform run by CorrectDelayedTyposInExpr calls a sequence of methods that end up calling CorrectDelayedTyposInExpr, as the new test case had done prior to this commit). Fixes PR22292. llvm-svn: 227368
* ELF: add a unit test for --as-needed.Rui Ueyama2015-01-282-1/+16
| | | | llvm-svn: 227367
* Fixed compiler warnings for functions that weren't marked virtual and the ↵Greg Clayton2015-01-282-99/+100
| | | | | | functions didn't have "override" on them. llvm-svn: 227366
* Removed some tabs that snuck into the test suite. No functionality changeMarshall Clow2015-01-285-29/+29
| | | | llvm-svn: 227363
* Remove support for pnaclcall attributeDerek Schuff2015-01-2815-156/+3
| | | | | | | | | | | | | | | | | | Summary: It was used for interoperability with PNaCl's calling conventions, but it's no longer needed. Also Remove NaCl*ABIInfo which just existed to delegate to either the portable or native ABIInfo, and remove checkCallingConvention which was now a no-op override. Reviewers: jvoung Subscribers: jfb, llvm-commits Differential Revision: http://reviews.llvm.org/D7206 llvm-svn: 227362
* Fix layering violation: include/clang/Basic/PlistSupport.h should not includeRichard Smith2015-01-288-75/+88
| | | | | | files from include/clang/Lex. Clean up module map. llvm-svn: 227361
* Fix PR22366. When move-constructing an associative container and explicitly ↵Marshall Clow2015-01-286-3/+244
| | | | | | passing an allocator that compares different, we were not calling the destructor of the elements in the moved-from container. llvm-svn: 227359
* [fuzzer] instructions for building/running clang-format-fuzzerKostya Serebryany2015-01-281-1/+9
| | | | llvm-svn: 227357
* DebugInfo: Attribute implicit boolean tests to the expression being tested, ↵David Blaikie2015-01-283-6/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not to the outer use of that expression. This is half a fix for a GDB test suite failure that expects to start at 'a' in the following code: void func(int a) if (a && b) ... But instead, without this change, the comparison was assigned to '&&' (well, worse actually - because there was a chained 'a && b && c' and it was assigned to the second '&&' because of a recursive application of this bug) and then the load folded into the comparison so breaking on the function started at '&&' instead of 'a'. The other part of this needs to be fixed in LLVM where it's ignoring the location of the icmp and instead using the location of the branch instruction. The fix to the conditional operator is actually a no-op currently, because the conditional operator's location coincides with 'a' (the start of the conditional expression) but should probably be '?' instead. See the FIXME in the test case that mentions the ARCMigration tool failures when I tried to make that change. llvm-svn: 227356
* invert check for less indentation; use local vars to reduce duplication; NFCSanjay Patel2015-01-281-19/+20
| | | | llvm-svn: 227355
* Add clang-format-fuzzer targetKostya Serebryany2015-01-283-1/+43
| | | | | | | | | | | | | | | | | | | | | Summary: This adds clang-format-fuzzer binary, which depends on the Fuzzer lib, see http://reviews.llvm.org/D7184 This fuzer has found ~15 bugs so far, and I hope to set up a bot for it. Test Plan: run on a bot. Reviewers: samsonov, djasper Reviewed By: djasper Subscribers: curdeius, cfe-commits Differential Revision: http://reviews.llvm.org/D7202 llvm-svn: 227354
* [Hexagon] Updating many V4 intrinsic patterns. Adding missing instruction ↵Colin LeMahieu2015-01-284-252/+83
| | | | | | and deleting unused classes. llvm-svn: 227353
* [LPM] Try to work around a bug with local-dynamic TLS on PowerPC 64.Chandler Carruth2015-01-281-5/+18
| | | | | | | | | | | | | | | | Sadly, this precludes optimizing it down to initial-exec or local-exec when statically linking, and in general makes the code slower on PPC 64, but there's nothing else for it until we can arrange to produce the correct bits for the linker. Lots of thanks to Ulirch for tracking this down and Bill for working on the long-term fix to LLVM so that we can relegate this to old host clang versions. I'll be watching the PPC build bots to make sure this effectively revives them. llvm-svn: 227352
* Remove gc.root's performCustomLoweringPhilip Reames2015-01-289-510/+489
| | | | | | | | | | | | | | This is a refactoring to restructure the single user of performCustomLowering as a specific lowering pass and remove the custom lowering hook entirely. Before this change, the LowerIntrinsics pass (note to self: rename!) was essentially acting as a pass manager, but without being structured in terms of passes. Instead, it proxied calls to a set of GCStrategies internally. This adds a lot of conceptual complexity (i.e. GCStrategies are stateful!) for very little benefit. Since there's been interest in keeping the ShadowStackGC working, I extracting it's custom lowering pass into a dedicated pass and just added that to the pass order. It will only run for functions which opt-in to that gc. I wasn't able to find an easy way to preserve the runtime registration of custom lowering functionality. Given that no user of this exists that I'm aware of, I made the choice to just remove that. If someone really cares, we can look at restoring it via dynamic pass registration in the future. Note that despite the large diff, none of the lowering code actual changes. I added the framing needed to make it a pass and rename the class, but that's it. Differential Revision: http://reviews.llvm.org/D7218 llvm-svn: 227351
* Harden against the process pointer being null - this seems like it shouldn't ↵Enrico Granata2015-01-281-0/+2
| | | | | | | | happen, except it did - by a user stopping the debugger while the variables view was refreshing Fixes rdar://19599357 llvm-svn: 227350
* Moving AddLiteralOption's declaration higher up in the header to make gcc happy.Chris Bieneman2015-01-281-9/+12
| | | | llvm-svn: 227348
* [Hexagon] Adding XTYPE/MPY intrinsic tests and some missing multiply ↵Colin LeMahieu2015-01-286-6/+1195
| | | | | | instructions. llvm-svn: 227347
* Refactoring llvm command line parsing and option registration.Chris Bieneman2015-01-283-193/+184
| | | | | | | | | | | | | | | | | | | | | Summary: The primary goal of this patch is to remove the need for MarkOptionsChanged(). That goal is accomplished by having addOption and removeOption properly sort the options. This patch puts the new add and remove functionality on a CommandLineParser class that is a placeholder. Some of the functionality in this class will need to be merged into the OptionRegistry, and other bits can hopefully be in a better abstraction. This patch also removes the RegisteredOptionList global, and the need for cl::Option objects to be linked list nodes. The changes in CommandLineTest.cpp are required because these changes shift when we validate that options are not duplicated. Before this change duplicate options were only found during certain cl API calls (like cl::ParseCommandLine). With this change duplicate options are found during option construction. Reviewers: dexonsmith, chandlerc, pete Reviewed By: pete Subscribers: pete, majnemer, llvm-commits Differential Revision: http://reviews.llvm.org/D7132 llvm-svn: 227345
* Testcase for PS4 target defaults (from r227215 and r227219)Filipe Cabecinhas2015-01-281-0/+7
| | | | llvm-svn: 227343
* As promised, make this more efficient by only doing all the busy work when ↵Enrico Granata2015-01-281-5/+5
| | | | | | necessary llvm-svn: 227342
* Add a unit test for LinkerScript.Rui Ueyama2015-01-283-13/+46
| | | | llvm-svn: 227341
* Assume code ownership for the PS4 to ensure patches get reviewed, per the ↵Alex Rosenberg2015-01-281-0/+4
| | | | | | Developer Policy. llvm-svn: 227340
* Fix build breakage caused by memory leaks in llvm-c-testBjorn Steinbrink2015-01-281-0/+4
| | | | | | I accidently introduced those in r227319. llvm-svn: 227339
* [Hexagon] Deleting a lot of old variants of intrinsics and updating references.Colin LeMahieu2015-01-286-240/+81
| | | | llvm-svn: 227338
* [dsymutil] Add DwarfLinker class.Frederic Riss2015-01-285-4/+113
| | | | | | | | It's an empty shell for now. It's main method just opens the debug map objects and parses their Dwarf info. Test that we at least do that correctly. llvm-svn: 227337
* Enable pragma comment processing for PS4. Original patch by Yunzhong Gao!Alex Rosenberg2015-01-282-0/+12
| | | | llvm-svn: 227336
* [Hexagon] Converting XTYPE/BIT intrinsic patterns and adding tests.Colin LeMahieu2015-01-283-34/+472
| | | | llvm-svn: 227335
OpenPOWER on IntegriCloud