summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [CMake] Don't use OBJLIB on Xcode.NAKAMURA Takumi2015-09-021-2/+4
| | | | | | I got a few reports it didn't work. llvm-svn: 246629
* Fix Clang-tidy misc-use-override warnings in source/Commands headers, unify ↵Pavel Labath2015-09-0228-194/+130
| | | | | | | | | | closing inclusion guards patch by Eugene Zelenko. Differential Revision: http://reviews.llvm.org/D12207 llvm-svn: 246628
* Fix Clang-tidy misc-use-override warnings in some files in ↵Pavel Labath2015-09-0219-310/+290
| | | | | | | | | | include/lldb/Interpreter, unify closing inclusion guards patch by Eugene Zelenko. Differential Revision: http://reviews.llvm.org/D12171 llvm-svn: 246627
* Fix Clang-tidy misc-use-override warnings in some files in ↵Pavel Labath2015-09-0216-259/+244
| | | | | | | | | | include/lldb/Target, unify closing inclusion guards patch by Eugene Zelenko. Differential Revision: http://reviews.llvm.org/D12167 llvm-svn: 246626
* AVX-512: store <4 x i1> and <2 x i1> values in memoryElena Demikhovsky2015-09-022-0/+19
| | | | | | | | Enabled DAG pattern lowering for SKX with DQI predicate. Differential Revision: http://reviews.llvm.org/D12550 llvm-svn: 246625
* Fix Clang-tidy misc-use-override warnings in include/lldb/API, Breakpoint ↵Pavel Labath2015-09-0224-197/+141
| | | | | | | | and Symbol, unify closing inclusion guards patch by Eugene Zelenko. llvm-svn: 246624
* Address flakyness in TestAttachResumePavel Labath2015-09-023-45/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The test (among other things) attempts to verify that detaching works while the inferior is running. However, this was racy since the inferior could end up stopping again before we got a chance to detach from it (the test could be made to fail reliably by inserting a sleep just after the last "continue" command). The reason for the stop was that we had a breakpoint set in a place that can be hit by multiple threads, and we stop because another thread hit a breakpoint. I fix this by moving the breakpoint to a place that is reachable from only one thread. I also make sure that the same thread cannot hit the breakpoint if we are exceptionaly slow by flipping a flag which makes the breakpoint unreachable (I cannot just disable or delete the breakpoint as the test makes it a point to try detaching while breakpoints are still set). Another source or racyness was that the test verified that the process resumes and stops after a "continue". However, if these two events happened too fast, the initial start event would be lost, and the test would end up confused. I have implemented this in a safer manner and made a utility function out of it, as I know of a couple of other tests which need the same functionality. Reviewers: zturner, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12527 llvm-svn: 246623
* Optimization for Gather/Scatter with uniform baseElena Demikhovsky2015-09-022-31/+148
| | | | | | | | | Vector 'getelementptr' with scalar base is an opportunity for gather/scatter intrinsic to generate a better sequence. While looking for uniform base, we want to use the scalar base pointer of GEP, if exists. Differential Revision: http://reviews.llvm.org/D11121 llvm-svn: 246622
* COFF: Attempt to fix a flaky test.Rui Ueyama2015-09-021-3/+2
| | | | | | | | | | | | | | | | | I don't understand why the previous code is pretty flaky and the new code is at least less flaky, but the original test occasionally failed on the second run of lib.exe. My guess was that lib.exe was failing because the output of the echo command executed immediately before lib.exe was not flushed to a file, but as far as I can say, the file descriptor is properly closed in TestRunner.py, so this's probably not correct. Other theory is that, on Windows, file output is not guaranteed to be visible to other processes even if a process flushes file descriptors, but I'd think that's unlikely. So honestly I don't know the cause yet. llvm-svn: 246621
* COFF: Preserve original spelling of DLL file name.Rui Ueyama2015-09-025-16/+18
| | | | | | | | | | | This patch fixes a subtle incompatibility with MSVC linker. MSVC linker preserves the original spelling of a DLL in the import descriptor table. LLD previously converted all characters to lowercase. Usually this difference is benign, but if a program explicitly checks for DLL file names, the program could fail. llvm-svn: 246620
* Move createEliminateAvailableExternallyPass earlier in the pass pipelineYaron Keren2015-09-021-11/+13
| | | | | | | to save running many ModulePasses on available external functions that are thrown away anyhow. llvm-svn: 246619
* [Sema] Avoid crash on tag-type mismatch (Fixes PR24610)Vedant Kumar2015-09-022-0/+7
| | | | | | Differential Revision: http://reviews.llvm.org/D12444 llvm-svn: 246618
* CFI: Make the cfi target a dependency of compiler-rt.Peter Collingbourne2015-09-021-0/+1
| | | | | | This causes the blacklist to be copied into place as a default build step. llvm-svn: 246617
* Move more functionality from the LanguageRuntimes to the Languages.Jim Ingham2015-09-0215-977/+889
| | | | llvm-svn: 246616
* [CodeGen] Fix FREM on 32-bit MSVC on x86Vedant Kumar2015-09-022-1/+23
| | | | | | | | Patch by Dylan McKay! Differential Revision: http://reviews.llvm.org/D12099 llvm-svn: 246615
* Add a Language::ForAllLanguages helper functionEnrico Granata2015-09-022-14/+28
| | | | llvm-svn: 246614
* Use Language::LanguageIsCPlusPlus instead of doing the same switch over languageEnrico Granata2015-09-021-10/+3
| | | | llvm-svn: 246613
* Move the functions that FormatManager uses to actually load formatters into ↵Enrico Granata2015-09-025-99/+205
| | | | | | | | their own file These are useful helpers over the low-level API of the FormattersContainer, and since we're actually going to start moving formatters into plugins, it makes sense to simplify things llvm-svn: 246612
* Move things from the LanguageRuntime that obviously belong in the new ↵Jim Ingham2015-09-0218-189/+201
| | | | | | Language plugin instead. llvm-svn: 246611
* Migrate the target attribute parsing code into an extension off ofEric Christopher2015-09-022-30/+52
| | | | | | | | | | the main attribute and cache the results so we don't have to parse a single attribute more than once. This reapplies r246596 with a fix for an uninitialized class member, and a couple of cleanups and formatting changes. llvm-svn: 246610
* Simplify find_first_of & find_last_of on single char.Bruce Mitchener2015-09-0111-19/+19
| | | | | | | | | | | | | | | Summary: When calling find_first_of and find_last_of on a single character, we can instead just call find / rfind and make our intent more clear. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12518 llvm-svn: 246609
* Remove ABIMacOSX_i386::PrepareNormalCall().Bruce Mitchener2015-09-012-185/+0
| | | | | | | | | | | | | | | Summary: This was removed from the other ABI plugins long ago. This removes a warning that was happening in this unused code as a result of adding 2 new types to Scalar.h (e_uint128 and e_sint128). Reviewers: clayborg Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12514 llvm-svn: 246608
* [MC] Generate a timestamp for COFF object filesDavid Majnemer2015-09-012-3/+8
| | | | | | | | | | | The MS incremental linker seems to inspect the timestamp written into the object file to determine whether or not it's contents need to be considered. Failing to set the timestamp to a date newer than the executable will result in the object file not participating in subsequent links. To ameliorate this, write the current time into the object file's TimeDateStamp field. llvm-svn: 246607
* [debugserver] Fix sign comparison warning.Bruce Mitchener2015-09-012-1/+2
| | | | | | | | | | | | | | | | | Summary: Comparing m_page_size against kInvalidPageSize was resulting in a warning about comparing integers with different signs. Since kInvalidPageSize isn't used anywhere outside of MachVMMemory.cpp, we can readily transform it into a static const vm_size_t with the correct value to avoid the sign comparison warnings. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12519 llvm-svn: 246606
* Use -Wno-vla-extension globally.Bruce Mitchener2015-09-012-6/+6
| | | | | | | | | | | | | | | Summary: This was previously only established within debugserver, but there is a use of the VLA extension in source/Host/macosx/Symbols.cpp, so ignore this warning globally. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12515 llvm-svn: 246605
* [MC] Remove MCAssembler's copy of OSDavid Majnemer2015-09-013-9/+6
| | | | | | | We can just ask the ObjectWriter for it's stream instead of caching around our own reference to it. No functionality change is intended. llvm-svn: 246604
* Merge visibility from all symbols with the same name.Rafael Espindola2015-09-015-8/+105
| | | | | | | | | | | | | | | The ELF spec says: ... if any reference to or definition of a name is a symbol with a non-default visibility attribute, the visibility attribute must be propagated to the resolving symbol in the linked object. If different visibility attributes are specified for distinct references to or definitions of a symbol, the most constraining visibility attribute must be propagated to the resolving symbol in the linked object. The attributes, ordered from least to most constraining, are: STV_PROTECTED, STV_HIDDEN and STV_INTERNAL. llvm-svn: 246603
* CFI: Add blacklist entries for various standard library functions.Peter Collingbourne2015-09-011-0/+18
| | | | llvm-svn: 246602
* Fix ProcessKDP.cpp for the change in r246578.Jim Ingham2015-09-012-16/+18
| | | | llvm-svn: 246601
* Fix assertion failure in TransformOpaqueValueExprHubert Tong2015-09-012-1/+7
| | | | | | | | | | | | | | | | | | | | Summary: `OpaqueValueExpr`s may not have a source expression (as in the case when they are created due to a default argument error). This can cause an assertion failure in `TransformOpaqueValueExpr` during template instantiation. This patch fixes the assertion failure. Reviewers: hfinkel, rsmith Subscribers: fraggamuffin, cfe-commits Differential Revision: http://reviews.llvm.org/D11582 Patch by Rachel Craik! llvm-svn: 246600
* [autoconf] Add ___udivti3 to iOS builtinsChris Bieneman2015-09-011-2/+3
| | | | llvm-svn: 246599
* Revert "Migrate the target attribute parsing code into an extension off of"Eric Christopher2015-09-012-54/+30
| | | | | | | | This is failing in release mode. Revert while I figure out what's happening. This reverts commit r246596. llvm-svn: 246598
* std::initializer_list is not safe to return from a function, as copies are ↵Enrico Granata2015-09-011-1/+1
| | | | | | not guaranteed to extend the lifetime of the underlying storage llvm-svn: 246597
* Migrate the target attribute parsing code into an extension off ofEric Christopher2015-09-012-30/+54
| | | | | | | the main attribute and cache the results so we don't have to parse a single attribute more than once. llvm-svn: 246596
* Use hasAttr, not getAttr if we're just checking for presence.Eric Christopher2015-09-011-1/+1
| | | | llvm-svn: 246595
* [ARM] Don't abort on variable-idx extractelt in ReconstructShuffle.Ahmed Bougacha2015-09-012-0/+20
| | | | | | | | | The code introduced in r244314 assumed that EXTRACT_VECTOR_ELT only takes constant indices, but it does accept variables. Bail out for those: we can't use them, as the shuffles we want to reconstruct do require constant masks. llvm-svn: 246594
* Don't leave unused strings in the string table.Rafael Espindola2015-09-014-20/+22
| | | | llvm-svn: 246593
* [tsan] workaround for a crash in deadlock detector, bug ↵Kostya Serebryany2015-09-012-1/+15
| | | | | | https://github.com/google/sanitizers/issues/594 llvm-svn: 246592
* [MS ABI] Switch to the CRC implementation in LLVMDavid Majnemer2015-09-011-29/+5
| | | | | | | We now have an implementation of the CRC in LLVM's libSupport. Let's consolidate around that one. llvm-svn: 246591
* [MC] Add support for generating COFF CRCsDavid Majnemer2015-09-018-8/+181
| | | | | | | | | | | | | | | | | | COFF sections are accompanied with an auxiliary symbol which includes a checksum. This checksum used to be filled with just zero but this seems to upset LINK.exe when it is processing a /INCREMENTAL link job. Instead, fill the CheckSum field with the JamCRC of the section contents. This matches MSVC's behavior. This fixes PR19666. N.B. A rather simple implementation of JamCRC is given. It implements a byte-wise calculation using the method given by Sarwate. There are implementations with higher throughput like slice-by-eight and making use of PCLMULQDQ. We can switch to one of those techniques if it turns out to be a significant use of time. llvm-svn: 246590
* Make trunk release notes point to 3.7, not 3.6Nico Weber2015-09-011-2/+2
| | | | llvm-svn: 246589
* Make trunk release notes point to 3.7, not 3.6Nico Weber2015-09-011-1/+1
| | | | llvm-svn: 246588
* rename "slow-unaligned-mem-under-32" to slow-unaligned-mem-16" (NFCI)Sanjay Patel2015-09-015-53/+59
| | | | | | | | | | | | | | | This is a follow-on suggested by: http://reviews.llvm.org/D12154 ( http://reviews.llvm.org/rL245729 ) http://reviews.llvm.org/D10662 ( http://reviews.llvm.org/rL245075 ) This makes the attribute name match most of the existing lowering logic and regression test expectations. But the current use of this attribute is inconsistent; see the FIXME comment for "allowsMisalignedMemoryAccesses()". That change will result in functional changes and should be coming soon. llvm-svn: 246585
* gold-plugin: Implement parallel LTO code generation using llvm::splitCodeGen.Peter Collingbourne2015-09-012-34/+69
| | | | | | | | | Parallelism can be enabled using a new plugin option, jobs=N, where N is the number of code generation threads. Differential Revision: http://reviews.llvm.org/D12308 llvm-svn: 246584
* Don't include hidden or internal symbols in the symbol table.Rafael Espindola2015-09-013-3/+24
| | | | llvm-svn: 246583
* Re-commit r246497 (and dependent changes r246524 and r246521), reverted inRichard Smith2015-09-0113-254/+570
| | | | | | | | | | | | | | | | | | | r246546, with a workaround for an MSVC 2013 miscompile and an MSVC 2015 rejects-valid. Original commit message: [modules] Rework serialized DeclContext lookup table management. Instead of walking the loaded ModuleFiles looking for lookup tables for the context, store them all in one place, and merge them together if we find we have too many (currently, more than 4). If we do merge, include the merged form in our serialized lookup table, so that downstream readers never need to look at our imports' tables. This gives a huge performance improvement to builds with very large numbers of modules (in some cases, more than a 2x speedup was observed). llvm-svn: 246582
* Every symbol now has an Elf_Sym. Simplify. NFC.Rafael Espindola2015-09-011-20/+13
| | | | llvm-svn: 246581
* Add logging to a couple of regions of codeEnrico Granata2015-09-012-2/+74
| | | | llvm-svn: 246580
* Make ProcessWindows not create a strong reference to itself.Zachary Turner2015-09-014-12/+55
| | | | llvm-svn: 246579
* Have the Process hold a weak_ptr to the Target.Zachary Turner2015-09-0114-150/+154
| | | | llvm-svn: 246578
OpenPOWER on IntegriCloud