summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a language log category.Colin Riley2015-05-272-0/+4
| | | | | | Differential Revision: http://reviews.llvm.org/D9994 llvm-svn: 238314
* Improve LLDB prompt handlingPavel Labath2015-05-2713-402/+312
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: There is an issue in lldb where the command prompt can appear at the wrong time. The partial fix we have in for this is not working all the time and is introducing unnecessary delays. This change does: - Change Process:SyncIOHandler to use integer start id's for synchronization to avoid it being confused by quick start-stop cycles. I picked this up from a suggested patch by Greg to lldb-dev. - coordinates printing of asynchronous text with the iohandlers. This is also based on a (different) Greg's patch, but I have added stronger synchronization to it to avoid races. Together, these changes solve the prompt problem for me on linux (both with and without libedit). I think they should behave similarly on Mac and FreeBSD and I think they will not make matters worse for windows. Test Plan: Prompt comes out alright. All tests still pass on linux. Reviewers: clayborg, emaste, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9823 llvm-svn: 238313
* Fix write register context in EmulateInstructionARM::EmulateMOVRdRmTamas Berghammer2015-05-271-3/+3
| | | | llvm-svn: 238312
* We always have an InstPrinter.Rafael Espindola2015-05-271-8/+6
| | | | llvm-svn: 238311
* [Mips] Move member function definitions to cpp filesSimon Atanasyan2015-05-2715-774/+1009
| | | | | | No functional changes. llvm-svn: 238310
* Fix BreakpointLocationCollection::ShouldStop to handle breakpoint removalTamas Berghammer2015-05-271-2/+8
| | | | | | Differential revision: http://reviews.llvm.org/D9886 llvm-svn: 238308
* Parse function name from DWARF DW_AT_abstract_originTamas Berghammer2015-05-271-9/+13
| | | | | | | | | | | | | | | A DW_TAG_subprogram entry can contain a reference to a DW_AT_abstract_origin entry instead of duplicating the information from it (e.g.: name) when the same function is inlined in some case and not inlined in other cases. This CL fixes name parsing for the case when the DW_TAG_subprogram for the non inlined version contains just a reference to the DW_AT_abstract_origin entry instead of the full information. Differential revision: http://reviews.llvm.org/D10034 llvm-svn: 238307
* Revert r238305: [PM] Use a simpler technique to drop optional analysisChandler Carruth2015-05-271-49/+120
| | | | | | | | | manager arguments... I have no idea why, but compilers seem to hate this and its late, so I'm not going to debug it. :: sigh :: This is why we can't have nice things. llvm-svn: 238306
* [PM] Use a simpler technique to drop optional analysis manager argumentsChandler Carruth2015-05-271-120/+49
| | | | | | | | | | | | | | | | | | | when invoking run methods. This technique was suggested by Dinesh Dwivedi who also wrote the original patch. During the code review, they explained to me that this isn't a fully general technique as we need to know the signatures of the method candidates. Since this is really a narrower utility, I switched the names and structure to be more clearly a specialized run method invoke helper and commented it accordingly. I still think this is a pretty big win. Very sorry to Dinesh for the extreme delay in landing this patch. I've been far to busy poking at other things. Original review: http://reviews.llvm.org/D3543 llvm-svn: 238305
* [ELF][Mips] Do not merge ELF flags in the `isCompatible` routineSimon Atanasyan2015-05-277-12/+13
| | | | | | | | We do not need to merge ELF flags from DSO. But `isCompatible` is called for all input files. So this change move ELF flags merging into the MipsELFFile class. llvm-svn: 238304
* [Mips] Factor out look up of Elf_Mips_RegInfo structure into the separate ↵Simon Atanasyan2015-05-271-21/+26
| | | | | | | | function No functional changes. llvm-svn: 238303
* Revert r238190 and r238197: [mips] Make TTypeEncoding indirect to allow ↵Daniel Sanders2015-05-275-50/+11
| | | | | | | | | | .eh_frame to be read-only. This broke the llvm-mips-linux builder and several of our out-of-tree builders. Initial investigations show that the commit probably isn't the problem but reverting anyway while I investigate. llvm-svn: 238302
* AVX-512: Implemented all forms of sign-extend and zero-extend instructions ↵Elena Demikhovsky2015-05-277-144/+1913
| | | | | | | | | | | for KNL and SKX Implemented DAG lowering for all these forms. Added tests for DAG lowering and encoding. By Igor Breger (igor.breger@intel.com) llvm-svn: 238301
* Add some more detailed docs about the current state of Phabricator andChandler Carruth2015-05-271-1/+11
| | | | | | reviwes.llvm.org to help reduce confusion. llvm-svn: 238295
* Drop const in front of iteratorTobias Grosser2015-05-271-1/+1
| | | | | | | | | | David Blaikie: "find returns an iterator by value, so it's just added complexity/strangeness to then use reference lifetime extension to give it the same semantics as if you'd used a value type instead of a reference type." llvm-svn: 238294
* [X86] Implement the support for shrink-wrapping.Quentin Colombet2015-05-274-35/+668
| | | | | | | | | | | | | With this patch the x86 backend is now shrink-wrapping capable and this functionality can be tested by using the -enable-shrink-wrap switch. The next step is to make more test and enable shrink-wrapping by default for x86. Related to <rdar://problem/20821487> llvm-svn: 238293
* [ShrinkWrap] Add a target hook to check whether or notQuentin Colombet2015-05-272-5/+34
| | | | | | | | | the target can handle a given basic block as prologue or epilogue. Related to <rdar://problem/20821487> llvm-svn: 238292
* clang-format: [JS] Fix incorrect detection of ternary expressions.Daniel Jasper2015-05-272-4/+10
| | | | | | | | | | | | | A definintion like this could not be formatted at all: constructor({aa}: { aa?: string, aaaaaaaa?: string, aaaaaaaaaaaaaaa?: boolean, aaaaaa?: List<string> }) { } llvm-svn: 238291
* Use value semantics for list of ScopStmt(s) instead of std::owningptrTobias Grosser2015-05-277-97/+89
| | | | | | | | | | | | | | | | David Blaike suggested this as an alternative to the use of owningptr(s) for our memory management, as value semantics allow to avoid the additional interface complexity caused by owningptr while still providing similar memory consistency guarantees. We could also have used a std::vector, but the use of std::vector would yield possibly changing pointers which currently causes problems as for example the memory accesses carry pointers to their parent statements. Such pointers should not change. Reviewer: jblaikie, jdoerfert Differential Revision: http://reviews.llvm.org/D10041 llvm-svn: 238290
* ARMLoadStoreOptimizer: Code cleanup; NFCMatthias Braun2015-05-271-15/+12
| | | | llvm-svn: 238289
* MachineBasicBlock: Cleanup computeRegisterLiveness()Matthias Braun2015-05-272-24/+23
| | | | | | | | | - Clean documentation comment - Change the API to accept an iterator so you can actually pass MachineBasicBlock::end() now. - Add more "const". llvm-svn: 238288
* MCSymbol: Make print() robust against empty namesMatthias Braun2015-05-271-0/+4
| | | | | | | This shouldn't happen, but it's nice not to abort when printing broken machine functions. llvm-svn: 238287
* Add support for custom commands to set flags on themselvesEnrico Granata2015-05-2726-246/+360
| | | | | | | | | This works for Python commands defined via a class (implement get_flags on your class) and C++ plugin commands (which can call SBCommand::GetFlags()/SetFlags()) Flags allow features such as not letting the command run if there's no target, or if the process is not stopped, ... Commands could always check for these things themselves, but having these accessible via flags makes custom commands more consistent with built-in ones llvm-svn: 238286
* clang-format: Fix false positive in function annotation detection.Daniel Jasper2015-05-272-1/+3
| | | | llvm-svn: 238285
* www - updated build server URLsVince Harron2015-05-271-5/+9
| | | | llvm-svn: 238284
* Changed Flags::clang_type_resolve_state to unsigned for gccVince Harron2015-05-271-0/+5
| | | | | | to work around a very noisy gcc warning llvm-svn: 238283
* test Makefile.rules - pick a more sensible default CC on LinuxVince Harron2015-05-271-1/+7
| | | | | | Differential Revision: http://reviews.llvm.org/D9920 llvm-svn: 238282
* dosep - force timeout processes to dump core when they timeoutVince Harron2015-05-271-2/+34
| | | | | | | | | | | | | move all core files to the session dir after all tests have completed TEST PLAN Run tests. Force a timeout by decreasing a timeout export LLDB_EVENTS_TIMEOUT=10s ./dosep.py Differential Revision: http://reviews.llvm.org/D9905 llvm-svn: 238281
* Allow clients to get parsing errors and also fix the ApplePropertyList so it ↵Greg Clayton2015-05-272-2/+29
| | | | | | parses the structured data correctly. llvm-svn: 238280
* Make StructureData objects dump themselves with correct indentation.Greg Clayton2015-05-271-19/+28
| | | | llvm-svn: 238279
* Add StructuredData.h to the Xcode project.Greg Clayton2015-05-271-0/+2
| | | | llvm-svn: 238278
* Object/COFF: Add accessors for import header bitfields.Rui Ueyama2015-05-271-0/+2
| | | | llvm-svn: 238277
* [inliner] Fix the early-exit of the inline cost analysis to correctlyChandler Carruth2015-05-272-25/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | model the dense vector instruction bonuses. Previously, this code really didn't effectively compute the density of inlined vector instructions and apply the intended inliner bonus. It would try to compute it repeatedly while analyzing the function and didn't handle the case where future vector instructions would tip the scales back towards the bonus. Instead, speculatively apply all possible bonuses to the threshold initially. Once we *know* that a certain bonus can not be applied, subtract it. This should delay early bailout enough to get much more consistent results without actually causing us to analyze huge swaths of code. I expect some (hopefully mild) compile time hit here, and some swings in performance, but this was definitely the intended behavior of these bonuses. This also dramatically simplifies the computation of the bonuses to not interact with each other in confusing ways. The previous code didn't do a good job of this and the values for bonuses may be surprising but are at least now clearly written in the code. Finally, fix code to be in line with comments and use zero as the bailout condition. Patch by Easwaran Raman, with some comment tweaks by me to try and further clarify what is going on with this code. http://reviews.llvm.org/D8267 llvm-svn: 238276
* Object/COFF: Add coff_import_header.Rui Ueyama2015-05-271-0/+11
| | | | | | This type is described in the PE/COFF spec section 7.1. llvm-svn: 238275
* Implement and use adb push for PlatformAndroid::PutFileRobert Flack2015-05-274-2/+73
| | | | | | | | | | | | | Using the adb push protocol is significantly faster than the current method of sending the hex encoded file data for the remote to write to the file. Test Plan: Tests continue to pass - and much faster (e.g. TestSBValuePersist.py takes 10s down from 4m51s on mac -> android) Differential Revision: http://reviews.llvm.org/D9943 llvm-svn: 238274
* Get thread sleep_for test passing in C++03Eric Fiselier2015-05-271-2/+5
| | | | llvm-svn: 238273
* [BitcodeReader] Change assert to report_fatal_errorFilipe Cabecinhas2015-05-273-1/+7
| | | | | | | | It can be triggered by user input. Bug found with AFL fuzz. llvm-svn: 238272
* Mark __convert_to_integral test as XFAIL in c++03Eric Fiselier2015-05-271-0/+3
| | | | llvm-svn: 238271
* Cleanup move/forward tests and remove references to __rv.Eric Fiselier2015-05-273-30/+15
| | | | llvm-svn: 238270
* [BitstreamReader] Make sure the Array operand type is an encodingFilipe Cabecinhas2015-05-273-0/+8
| | | | | | Bug found with AFL fuzz. llvm-svn: 238269
* clang-format a couple of linesFilipe Cabecinhas2015-05-271-2/+2
| | | | llvm-svn: 238268
* Add test macros header to remove dependance on __config macros.Eric Fiselier2015-05-272-0/+141
| | | | llvm-svn: 238267
* clang-cl: Handle dll attributes in explicit class template specialization ↵Hans Wennborg2015-05-275-19/+46
| | | | | | | | | | definitions (PR23667) Previously, we wouldn't call checkDLLAttribute() after the class template specialization definition if the class template was already instantiated by an explicit class template specialization declaration. llvm-svn: 238266
* [BitcodeReader] Make sure abbrev records have at least one operand (record code)Filipe Cabecinhas2015-05-263-0/+8
| | | | | | Bug found with AFL fuzz. llvm-svn: 238265
* Add initial support for the convergent attribute.Owen Anderson2015-05-2616-5/+61
| | | | llvm-svn: 238264
* Make sure !empty() before calling String::front().Chaoren Lin2015-05-261-4/+7
| | | | | | | | | | Reviewers: howard.hinnant Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D9954 llvm-svn: 238263
* Add 'qXfer:features:read' to known stub listYing Chen2015-05-261-0/+1
| | | | | | | | | | | | | | | | | | Summary: -Fix darwin bot failure "unknown qSupported stub feature reported: qXfer:features:read" -TestGdbRemoteAuxvSupport.py and TestLldbGdbServer.py were affected by this problem Test Plan: dotest.py -m --executable /Users/lldb_build/testSlave/buildDir/lldb.src/build/Debug/lldb --framework /Users/lldb_build/testSlave/buildDir/lldb.src/build/Debug/LLDB.framework -A x86_64 -C clang -p TestLldbGdbServer.py dotest.py -m --executable /Users/lldb_build/testSlave/buildDir/lldb.src/build/Debug/lldb --framework /Users/lldb_build/testSlave/buildDir/lldb.src/build/Debug/LLDB.framework -A x86_64 -C clang -p TestGdbRemoteAuxvSupport.py Reviewers: clayborg, sivachandra, vharron Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10043 llvm-svn: 238262
* [BitcodeReader] Sanity check on Comdat IDFilipe Cabecinhas2015-05-264-2/+14
| | | | | | | | Shouldn't be an assert, since user input can trigger it. Bug found with AFL fuzz. llvm-svn: 238261
* Modify the ApplePropertyList to be able to create StructuredData objects ↵Greg Clayton2015-05-263-8/+158
| | | | | | from the plist XML. llvm-svn: 238260
* [MS ABI, DebugInfo] Omit the size for model-less pointers-to-membersDavid Majnemer2015-05-262-5/+17
| | | | | | | | | | | | | | The representation of a pointer-to-member in the MS ABI is governed by the layout of the relevant class or if a model has been explicitly specified. If no model is specified, then an appropriate "worst-case-scenario" model is implicitly chosen if, and only, if the pointer-to-member type's representation was needed. Debug info cannot force a pointer-to-member type to have a representation so do not try to query the size of such a type unless we know it is safe to do so. llvm-svn: 238259
OpenPOWER on IntegriCloud