- Aug 13, 2016
-
-
Reid Kleckner authored
They aren't static, and moving them to the entry block across something else will only result in tears. Root cause of http://crbug.com/636558. llvm-svn: 278571
-
Pete Cooper authored
Pattern match has some paths which can operate on constant instructions, but not all. This adds a version of m_value() to return const Value* and changes ICmp matching to use auto so that it can match both constant and mutable instructions. Tests also included for both mutable and constant ICmpInst matching. This will be used in a future commit to constify ValueTracking.cpp. llvm-svn: 278570
-
Tim Shen authored
Differential Revision: https://reviews.llvm.org/D22951 llvm-svn: 278569
-
Artem Belevich authored
This bring LLVM-generated PTX closer to what nvcc generates and avoids triggering issues in ptxas. For instance, ptxas does not accept .s16 (or .u16) registers as operands for .fp16 instructions. Differential Revision: https://reviews.llvm.org/D23460 llvm-svn: 278568
-
Saleem Abdulrasool authored
llvm-svn: 278567
-
Teresa Johnson authored
Summary: The BitcodeWriterPass was ported a couple years ago, and predates the PassInfoMixin. Make BitcodeWriterPass from that base class. Should BitcodeWriterPass be added to the PassRegistry.def file? It seems like that is only for passes that can be added arbitrarily, e.g. via the -passes flag to the opt tool. Whereas the bitcode writer is added specially based on the output type (and requires an output stream and other parameters). For now I have left it out of the PassRegistry, but let me know if it should go there. Finally, I was considering an NFC change of the legacy WriteBitcodePass to BitcodeWriterLegacyPass to make its usage clearer and more consistent with other legacy passes. WDYT? Reviewers: mehdi_amini Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23465 llvm-svn: 278566
-
David L Kreitzer authored
llvm-svn: 278565
-
Krzysztof Parzyszek authored
Remove the following single-vector load/store pseudo instructions, use real instructions instead: LDriv_pseudo_V6 STriv_pseudo_V6 LDriv_pseudo_V6_128B STriv_pseudo_V6_128B LDrivv_indexed STrivv_indexed LDrivv_indexed_128B STrivv_indexed_128B Rename the double-vector load/store pseudo instructions, add unaligned counterparts: -- old -- -- new -- -- unaligned -- LDrivv_pseudo_V6 PS_vloadrw_io PS_vloadrwu_io LDrivv_pseudo_V6_128B PS_vloadrw_io_128B PS_vloadrwu_io_128B STrivv_pseudo_V6 PS_vstorerw_io PS_vstorerwu_io STrivv_pseudo_V6_128B PS_vstorerw_io_128 PS_vstorerwu_io_128 llvm-svn: 278564
-
Kostya Serebryany authored
llvm-svn: 278563
-
Eli Friedman authored
The existing code accidentally skipped the aliasing check in edge cases. Differential revision: https://reviews.llvm.org/D23372 llvm-svn: 278562
-
George Rimar authored
Previously we searched output section by name to assign VA. That did not work in the case when multiple output sections with different constraints were defined in script. Testcase shows the possible issue scenario, patch fixes the issue. Differential revision: https://reviews.llvm.org/D23451 llvm-svn: 278561
-
Mike Aizatsky authored
Even in this form it is useful: it can detect branch instructions. https://github.com/google/sanitizers/issues/706 Subscribers: aemerson, rengolin Differential Revision: https://reviews.llvm.org/D23426 llvm-svn: 278560
-
Eli Friedman authored
Trunk would try to create something like "stp x9, x8, [x0], #512", which isn't actually a valid instruction. Differential revision: https://reviews.llvm.org/D23368 llvm-svn: 278559
-
Chris Bieneman authored
Since we don't actually have the autoconf subdirectories anymore, we don't need this reference here. llvm-svn: 278558
-
Kevin Enderby authored
This contains the two missing checks for LC_SEGMENT load command fields. And checks for the Mach-O sections fields that would make them invalid. With the new checks, some of the existing malformed file checks now trips one of these instead of the issue it was having before so those tests were adjusted. llvm-svn: 278557
-
Mike Aizatsky authored
llvm-svn: 278556
-
George Rimar authored
After latest changes we combine input sections with different attributes into single output section. Problem here is that regular output sections does not support adding mergeable input sections (and vise versa). Patch just temporarily disables merging for now at the same way we do for -O0 for example. This change helps for linking FreeBSD kernel. Differential revision: https://reviews.llvm.org/D23447 llvm-svn: 278555
-
George Rimar authored
After 278461 "Create only one section for a name in LinkerScript." this loop is excessive. Patch also reorders code slightly to use early return. Differential revision: https://reviews.llvm.org/D23442 llvm-svn: 278554
-
Alexander Droste authored
... This check verifies if a buffer passed to an MPI (Message Passing Interface) function is sufficiently dereferenced. Buffers should be passed as a single pointer or array. As MPI function signatures specify void * for their buffer types, insufficiently dereferenced buffers can be passed, like for example as double pointers or multidimensional arrays, without a compiler warning emitted. Instructions on how to apply the check can be found at: https://github.com/0ax1/MPI-Checker/tree/master/examples Reviewers: Haojian Wu Differential revision: https://reviews.llvm.org/D22729 llvm-svn: 278553
-
Todd Fiala authored
Change r278527 was filtering out too many libraries. The Xcode lldb-gtest target depends on linking libgtest*.a, but those were not being included. This caused the lldb-gtest linkage step to fail to find a main entry point that is present in the filtered out libs. This change restores the libgtest* libraries to the link list by whitelisting them in the filter. llvm-svn: 278552
-
Mike Aizatsky authored
Differential Revision: https://reviews.llvm.org/D23338 llvm-svn: 278551
-
George Rimar authored
We found that GNU assembler 2.17.50 [FreeBSD] 2007-07-03 could generate broken objects. STT_SECTION symbols can be associated with SHT_REL[A]/SHT_SYMTAB/SHT_STRTAB sections. This is PR28868, patch fixes handling of such files. Differential revision: https://reviews.llvm.org/D23201 llvm-svn: 278550
-
Artem Belevich authored
This matches the way nvcc encapsulates GPU binaries into host object file. Now cuobjdump can deal with clang-compiled object files. Differential Revision: https://reviews.llvm.org/D23429 llvm-svn: 278549
-
Tim Shen authored
Summary: It triggers exponential behavior when the DAG has many branches. Reviewers: hfinkel, kbarton Subscribers: iteratee, nemanjai, echristo Differential Revision: https://reviews.llvm.org/D23428 llvm-svn: 278548
-
Zachary Turner authored
llvm-svn: 278547
-
Zachary Turner authored
The include order check would get notified of all include directives in a depth-first manner. This created the possibility of an include directive from a header file interfering with the sort order of a set of two distinct blocks from the top level cpp file, if that include directive was on just the right line. With this patch we bucket the include directives by the file in which they appear in and process one bucket at a time, so that directives from different files do not get mixed together into the same list. Reviewed By: alexfh Differential Revision: https://reviews.llvm.org/D23434 llvm-svn: 278546
-
Benjamin Kramer authored
llvm-svn: 278545
-
Dan Liew authored
The original `ExecuteCommand()` called `system()` from the C library. The C library implementation of this on macOS contains a mutex which serializes calls to `system()`. This prevented the `-jobs=` flag from running copies of the fuzzing binary in parallel which is the opposite of what is intended. To fix this on macOS an alternative implementation of `ExecuteCommand()` is provided that can be used concurrently. This is provided in `FuzzerUtilDarwin.cpp` which is guarded to only compile code on Apple platforms. The existing implementation has been moved to a new file `FuzzerUtilLinux.cpp` which is guarded to only compile code on Linux. This commit includes a simple test to check that LibFuzzer is being executed in parallel when requested. Differential Revision: https://reviews.llvm.org/D22742 llvm-svn: 278544
-
Bruno Cardoso Lopes authored
Reapply r278457 with test fixed to not abouse fs case sensitivity. When the VFS uses a YAML file, the real file path for a virtual file is described in the "external-contents" field. Example: ... { 'type': 'file', 'name': 'a.h', 'external-contents': '/a/b/c/a.h' } Currently, when parsing umbrella directories, we use vfs::recursive_directory_iterator to gather the header files to generate the equivalent modules for. If the external contents for a header does not exist, we currently are unable to build a module, since the VFS vfs::recursive_directory_iterator will fail when it finds an entry without a reliable real path. Since the YAML file could be prepared ahead of time and shared among different compiler invocations, an entry might not yet have a reliable path in 'external-contents', breaking the iteration. Give the VFS the capability to skip such entries whenever 'ignore-non-existent-contents' property is set in the YAML file. rdar://problem/27531549 llvm-svn: 278543 -
Duncan P. N. Exon Smith authored
Thanks to Mehdi for noticing. llvm-svn: 278542
-
Teresa Johnson authored
Summary: This changes clang to use the llvm::lto::thinBackend function instead of its own less comprehensive ThinLTO backend implementation. Patch by Peter Collingbourne Reviewers: tejohnson, mehdi_amini Subscribers: cfe-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D21545 llvm-svn: 278541
-
Duncan P. N. Exon Smith authored
The fixup from r278537 was insufficient. Just #ifdef it out for MSVC. llvm-svn: 278539
-
Duncan P. N. Exon Smith authored
The HasGetNext type trait was cluttered with a few things it didn't need. Try to clean it up, hoping to fix windows bots: http://lab.llvm.org:8011/builders/lld-x86_64-win7/builds/38063 I may just have to delete the trait... llvm-svn: 278537
-
David Majnemer authored
llvm-svn: 278536
-
Zachary Turner authored
Currently, if --driver-mode is not passed at all, it will default to GCC style driver. This is never an issue for clang because it manually constructs a --driver-mode option and passes it. However, we should still try to do as good as we can even if no --driver-mode is passed. LibTooling, for example, does not pass a --driver-mode option and while it could, it seems like we should still fallback to the best possible default we can. This is one of two steps necessary to get clang-tidy working on Windows. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D23454 llvm-svn: 278535
-
Alexander Droste authored
llvm-svn: 278534
-
Alexander Droste authored
llvm-svn: 278533
-
Duncan P. N. Exon Smith authored
No one is using the capability to implement next and prev another way (since lld stopped doing it in r278468). Remove the customization point by moving the API from ilist_nextprev_traits<T> to ilist_node_access. The old traits class is still useful/necessary API as a target for friends of node types that inherit privately from ilist_node. Eventually I plan to either remove it entirely or move the template parameters to the methods. (Note: if there's desire to bring back customization of next/prev pointers in the future (e.g., to pack some bits in there), I think a traits class like this is an awkward way to accomplish it. Instead, we should change ilist<T> to be ilist<ilist_node<T>>, and give an extra template parameter to ilist_node.) llvm-svn: 278532
-
Michael Kuperstein authored
llvm-svn: 278531
-
Ivan Krasin authored
Summary: Add a test case for __attribute__((no_sanitize("cfi"))) being effective. Reviewers: kcc Subscribers: dberris Differential Revision: https://reviews.llvm.org/D23425 llvm-svn: 278530
-