- Jun 04, 2016
-
-
Saleem Abdulrasool authored
Windows itanium is nearly identical to windows-msvc (MS ABI for C, itanium for C++). Enable the TLS support for the target similar to the MSVC model. llvm-svn: 271797
-
Simon Pilgrim authored
The AVX2 v16i16 shift lowering works by unpacking to 2 x v8i32, performing the shift and then truncating the result. The unpacking is used to place the values in the upper 16-bits so that we can correctly sign-extend for SRA shifts. Unfortunately we weren't ensuring that the lower 16-bits were zero to ensure that SHL correctly shifts in zero bits. llvm-svn: 271796
-
Craig Topper authored
llvm-svn: 271795
-
Marshall Clow authored
llvm-svn: 271794
-
David Majnemer authored
C++ has a builtin type called wchar_t. Clang also provides a type called __wchar_t in C mode. In C mode, wchar_t can be a typedef to unsigned short. llvm-svn: 271793
-
David Majnemer authored
It was checking for Union when it should have checked for Interface. llvm-svn: 271792
-
David Majnemer authored
llvm-svn: 271791
-
David Majnemer authored
llvm-svn: 271790
-
Simon Pilgrim authored
Add the MMX implementation to the SimplifyDemandedUseBits SSE/AVX MOVMSK support added in D19614 Requires a minor tweak as llvm.x86.mmx.pmovmskb takes a x86_mmx argument - so we have to be explicit about the implied v8i8 vector type. llvm-svn: 271789
-
Chandler Carruth authored
There appears to be a strange exception thrown and crash using call_once on a PPC build bot, and a *really* weird windows link error for GCMetadata.obj. Still need to investigate the cause of both problems. Original change summary: [LPM] Reinstate r271652 to replace the CALL_ONCE_... macro in the legacy pass manager with the new llvm::call_once facility. llvm-svn: 271788
-
Chandler Carruth authored
llvm-svn: 271787
-
Chandler Carruth authored
fixing tis test. There are different configurations running, and they have subtly different backtraces. I didn't notice that the configs changed and so I kept occilating between the two. Now I've looked at two different configs at the same time, and so this should be much more likely to work. llvm-svn: 271786
-
Chandler Carruth authored
available along side the leak checking, so use the REQUIRES for that. Also, use %run as other tests do when launching the built binary. This fixes check-asan for me on Linux and looks like it should fix the linux sanitizer bots as well. llvm-svn: 271785
-
Chandler Carruth authored
of lines provided with the filecheck output from the previous run. I'll probably give up after this and get someone with a Windows build to help me out. llvm-svn: 271784
-
Chandler Carruth authored
This should fail on frame #1 and show what that should actually be. llvm-svn: 271783
-
Chandler Carruth authored
with this, the Windows sanitizer bot will go green! llvm-svn: 271782
-
Chandler Carruth authored
pass manager with the new llvm::call_once facility. This reverts commit r271657 and re-applies r271652 with a fix to actually work with arguments. In the original version, we just ended up directly calling std::call_once via ADL because of the std::once_flag argument. The llvm::call_once never worked with arguments. Now, llvm::call_once is a variadic template that perfectly forwards everything. As a part of this it had to move to the header and we use a generic functor rather than an explict function pointer. It would be nice to use std::invoke here but we don't have it yet. That means pointer to members won't work here, but that seems a tolerable compromise. I've also tested this by forcing the fallback path, so hopefully it sticks this time. Original commit message: ---- [LPM] Replace the CALL_ONCE_... macro in the legacy pass manager with the new llvm::call_once facility. This facility matches the standard APIs and when the platform supports it actually directly uses the standard provided functionality. This is both more efficient on some platforms and much more TSan friendly. The only remaining user of the cas_flag and home-rolled atomics is the fallback implementation of call_once. I have a patch that removes them entirely, but it needs a Windows patch to land first. This alone substantially cleans up the macros for the legacy pass manager, and should subsume some of the work Mehdi was doing to clear the path for TSan testing of ThinLTO, a really important step to have reliable upstream testing of ThinLTO in all forms. llvm-svn: 271781
-
Roman Gareev authored
[NFC] Check that a parameter of ScheduleTreeOptimizer::isMatrMultPattern contains a correct partial schedule llvm-svn: 271780
-
Chandler Carruth authored
show enough information for me to fix the patterns used here. llvm-svn: 271779
-
Craig Topper authored
[X86] Use unsigned types for vector arithmetic in intrinsics to avoid undefined behavior for signed integer overflow. This is really only needed for addition, subtraction, and multiplication, but I did the bitwise ops too for overall consistency. Clang currently doesn't set NSW for signed vector operations so the undefined behavior shouldn't happen today. llvm-svn: 271778
-
Craig Topper authored
llvm-svn: 271777
-
Craig Topper authored
llvm-svn: 271776
-
Craig Topper authored
[X86] Use X86ISD::ABS for lowering pabs SSSE3/AVX intrinsics to match AVX512. Should allow those intrinsics to use the EVEX encoded instructions and get the extra registers when available. llvm-svn: 271775
-
Jason Molenda authored
as a prototype for adding armv7 compact unwind reading to lldb. llvm-svn: 271774
-
Petr Hosek authored
The truncateToSize function already has assertion to check the lower boundary for the number bytes, but it does not check the upper boundary which could still lead to usage errors. Differential Revision: http://reviews.llvm.org/D20755 llvm-svn: 271773
-
Taewook Oh authored
Revert commit r271704, a patch that enables warnings for non-portable #include and #import paths (Corresponding clang patch has been reverted by r271761). Patches are reverted because they generate lots of unadressable warnings for windows and fail tests under ASAN. llvm-svn: 271764
-
Chandler Carruth authored
Original commit message: [sancov] Run sancov tests on more platforms The only tests that need to be run on Linux are the ones that use C++ demangling. I'm assuming they will fail on Mac, since __cxa_demangle there won't handle the non-double-underscore prefixed mangled names. llvm-svn: 271763
-
Saleem Abdulrasool authored
We would attempt to evaluate the sizeof a dependent type to check for an integral overflow. However, because the dependent type is not yet resolved, we cannot determine if the expression would overflow. Report a failure to perform a symbolic evaluation of a constant involving the dependent type. llvm-svn: 271762
-
Taewook Oh authored
llvm-svn: 271761
-
Chandler Carruth authored
and/or tests aren't working on Windows currently. There seems to be some problem with quoting the file paths. I don't understand the test structure here or the code well enough to try to come up with a way to correctly handle paths with back slashes in them, and this has caused the Windows builds to be failing for 7 hours now, so I'm reverting the whole thing to bring them back to life. Sorry for the disruption, but a couple of these were bug fixes anyways that can be folded into a fresh commit. Reverts the following patches: r271756: Clean up the way we create the input filenames buffer (NFC) r271748: Fix use-after-free from discarded MemoryBuffer (NFC) r271710: Fix option description (NFC) r271709: Add option to ingest filepaths from a file llvm-svn: 271760
-
Xinliang David Li authored
llvm-svn: 271759
-
Bruno Cardoso Lopes authored
Uses error message now provided by LockFileManager in LLVM r271755. rdar://problem/26529101 llvm-svn: 271758
-
Devin Coughlin authored
This commit adds a convenience is_contained() function which checks if an element exists in a container. It is part of a larger series of patches adding an MPI checker to the clang static analyzer. Reviewers: dblaikie,bkramer A patch by Alexander Droste! Differential Revision:http://reviews.llvm.org/D16053 llvm-svn: 271757
-
Vedant Kumar authored
Create the buffer before calling parseInputFilenamesFile(), and add a comment explaining why this is done. Thanks to David Li for the suggestion! llvm-svn: 271756
-
Bruno Cardoso Lopes authored
This is currently used by clang to lock access to modules; improve the error message so that clang can use better output messages from locking error issues. rdar://problem/26529101 Differential Review: http://reviews.llvm.org/D20942 llvm-svn: 271755
-
Richard Smith authored
evaluator if they are actually int expressions. llvm-svn: 271754
-
Adrian Prantl authored
llvm-svn: 271753
-
Matthias Braun authored
This is allowed (though used rarely) and useful to keep your tests short. llvm-svn: 271752
-
Xinliang David Li authored
llvm-svn: 271751
-
Saleem Abdulrasool authored
The assertion added earlier was overly strict. We need to strip the pointer casts (as when constructing the GV). Correct the types (Function or Variable). llvm-svn: 271750
-