- Jul 26, 2014
-
-
NAKAMURA Takumi authored
llvm-svn: 214016
-
NAKAMURA Takumi authored
llvm-svn: 214015
-
NAKAMURA Takumi authored
llvm-svn: 214014
-
Saleem Abdulrasool authored
Re-apply SVN r213684 which was reverted in SVN r213724 since it broke the build bots. Add a tweak to enable inclusion of the assembly sources in standalone build as well. Original commit message: This patch address the PR20360. The CMake assembler build system ignores the .S assembly files in builtins library build. This patch fixes the issue. llvm-svn: 214013
-
Saleem Abdulrasool authored
The .rodata directive was added on the IA-64 (Itanium) platform. The LLVM IAS supports the .rodata on i386 and x86_64 as well. There is no reason to really restrict compilation of the builtins to just clang. By explicitly indicating that the data is meant to be pushed into the .rodata section via the .section .rodata, the assembly is made compatible with clang and gcc (with GAS). This will enable building these routines on the Linux buildbots via CMake. llvm-svn: 214012
-
Chandler Carruth authored
The tale starts with r212808 which attempted to fix inversion of the low and high bits when lowering MUL_LOHI. Sadly, that commit did not include any positive test cases, and just removed some operations from a test case where the actual logic being changed isn't fully visible from the test. What this commit did was two things. First, it reversed the low and high results in the formation of the MERGE_VALUES node for the multiple results. This is entirely correct. Second it changed the shuffles for extracting the low and high components from the i64 results of the multiplies to extract them assuming a big-endian-style encoding of the multiply results. This second change is wrong. There is no big-endian encoding in x86, the results of the multiplies are normal v2i64s: when cast to v4i32, the low i32s are at offsets 0 and 2, and the high i32s are at offsets 1 and 3. However, the first change wasn't enough to actually fix the bug, which is (I assume) why the second change was also made. There was another bug in the MERGE_VALUES formation: we weren't using a VTList, and so were getting a single result node! When grabbing the *second* result from the node, we got... well.. colud be anything. I think this *appeared* to invert things, but had to be causing other problems as well. Fortunately, I fixed the MERGE_VALUES issue in r213931, so we should have been fine, right? NOOOPE! Because the core bug was never addressed, the test in vector-idiv failed when I fixed the MERGE_VALUES node. Because there are essentially no docs for this node, I had to guess at how to fix it and tried swapping the operands, restoring the order of the original code before r212808. While this "fixed" the test case (in that we produced the write instructions) we were still extracting the wrong elements of the i64s, and thus PR20355 was still broken. This commit essentially reverts the big-endian-style extraction part of r212808 and goes back to the original masks which were correct. Now that the MERGE_VALUES node formation is also correct, everything works. I've also included a more detailed test from PR20355 to make sure this stays fixed. llvm-svn: 214011
-
Chandler Carruth authored
in r214007 and then reverted when I backed that (very misguided) patch out. This recovers the test case cleanup which was good. llvm-svn: 214010
-
Chandler Carruth authored
The clever way to implement signed multiplication with unsigned *is already implemented* and tested and working correctly. The bug is somewhere else. Re-investigating. This will teach me to not scroll far enough to read the code that did what I thought needed to be done. llvm-svn: 214009
-
Richard Trieu authored
if the two arguments are equal. llvm-svn: 214008
-
Chandler Carruth authored
signed multiplication is requested. While there is not a difference in the *low* half of the result, the *high* half (used specifically to implement the signed division by these constants) certainly is used. The test case I've nuked was actively asserting wrong code. There is a delightful solution to doing signed multiplication even when we don't have it that Richard Smith has crafted, but I'll add the machinery back and implement that in a follow-up patch. This at least restores correctness. llvm-svn: 214007
-
Alexey Samsonov authored
We used to initialize symbolizer lazily, but this doesn't work in various sandboxed environments. Instead, let's be consistent with the rest of sanitizers. llvm-svn: 214006
-
Alexey Samsonov authored
Get rid of Symbolizer::Init(path_to_external) in favor of thread-safe Symbolizer::GetOrInit(), and use the latter version everywhere. Implicitly depend on the value of external_symbolizer_path runtime flag instead of passing it around manually. No functionality change. llvm-svn: 214005
-
Reid Kleckner authored
This moves some memptr specific code into the generic thunk emission codepath. Fixes PR20053. Reviewers: majnemer Differential Revision: http://reviews.llvm.org/D4613 llvm-svn: 214004
-
Reid Kleckner authored
llvm-svn: 214003
-
Jordan Rose authored
This isn't a real diagnostic kind, only a location note, and this form isn't even used if the SourceManager can provide a valid presumed location. But still. llvm-svn: 214002
-
Chandler Carruth authored
SSE4.1. llvm-svn: 214001
-
Richard Smith authored
llvm-svn: 214000
-
Tom Stellard authored
llvm-svn: 213999
-
Bob Wilson authored
It requires an arm backend and also writes output in the test directory. llvm-svn: 213998
-
Alexey Samsonov authored
llvm-svn: 213997
-
Richard Smith authored
each different enum value here. llvm-svn: 213996
-
NAKAMURA Takumi authored
llvm-svn: 213995
-
NAKAMURA Takumi authored
llvm-svn: 213994
-
rdar://problem/17803206Bob Wilson authored
llvm revision 210639 renamed the -global-merge backend option to -enable-global-merge. This change simply updates clang to match that. Patch by Steven Wu! llvm-svn: 213993
-
NAKAMURA Takumi authored
llvm-svn: 213992
-
Chandler Carruth authored
llvm-svn: 213991
-
Reid Kleckner authored
Previously we were building up the inalloca struct in the usual pattern of return type followed by arguments. However, on Windows, 'this' always precedes the 'sret' parameter, so we need to insert it into the struct first as a special case. llvm-svn: 213990
-
Chandler Carruth authored
llvm-svn: 213989
-
Chandler Carruth authored
llvm-svn: 213988
-
Larisse Voufo authored
Add test case for fix of linkage bug that miscompiled variable templates instantiated from similarly named local types (cf. r212233) llvm-svn: 213987
-
Chandler Carruth authored
instructions which happen to have a constant mask. Currently, this only handles a very narrow set of cases, but those happen to be the cases that I care about for testing shuffles sanely. This is a bit trickier than other shuffle instructions because we're decoding constants out of the constant pool. The current MC layer makes it completely impossible to inspect a constant pool entry, so we have to do it at the MI level and attach the comment to the streamer on its way out. So no joy for disassembling, but it does make test cases and asm dumps *much* nicer. Sorry for no test cases, but it didn't really seem that valuable to go trolling through existing old test cases and updating them. I'll have lots of testing of this in the upcoming patch for SSSE3 emission in the new vector shuffle lowering code paths. llvm-svn: 213986
-
Matt Arsenault authored
llvm-svn: 213985
-
Rui Ueyama authored
llvm-svn: 213984
-
Alexey Samsonov authored
Specifically, use .preinit_array initialization on Linux and dynamic global initializer on another platforms. Historically UBSan didn't have any initialization code and its runtime was stateless. This is no longer the case - UBSan relies on some non-trivial functionality from sanitizer_common (e.g. online symbolization) and is now configurable by runtime flags. Additionally, we've dropped support for enabling UBSan only for a few shared objects, so UBSan is now always linked into the main executable, so now we can use similar initialization as all the rest sanitizers. llvm-svn: 213983
-
Eric Christopher authored
No functional change. llvm-svn: 213982
-
Alex Lorenz authored
This patch removes the empty coverage mapping regions. Those regions were produced by clang's old mapping region generation algorithm, but the new algorithm doesn't generate them. llvm-svn: 213981
-
Alexey Samsonov authored
Get rid of ASAN_USE_PREINIT_ARRAY and LSAN_USE_PREINIT_ARRAY - just always use .preinit_array if it's available. This mode seems stable enough, and we've been relying on default values of these macro for a long time. llvm-svn: 213980
-
Reid Kleckner authored
llvm-svn: 213979
-
Reid Kleckner authored
llvm-svn: 213978
-
Hal Finkel authored
Adds simple logical canonicalization of assumption intrinsics to instcombine, currently: - invariant(a && b) -> invariant(a); invariant(b) - invariant(!(a || b)) -> invariant(!a); invariant(!b) llvm-svn: 213977
-