- Jun 04, 2015
-
-
Chris Bieneman authored
Enabling Ninja Job Pools needs to be dependent on the CMAKE_MAKE_PROGRAM not the CMAKE_GENERATOR. There are generators (like "Sublime Text 2 - Ninja") that also generate ninja build files. Basing of the CMAKE_MAKE_PROGRAM is the best future-proof way to handle this. llvm-svn: 239076
-
Alexey Samsonov authored
Summary: Avoid parsing object file each time MachOObjectFile::getHeader() is called. Instead, cache the header in MachOObjectFile constructor, where it's parsed anyway. In future, we must avoid constructing the object at all if the header can't be parsed. Test Plan: regression test suite. Reviewers: rafael Subscribers: llvm-commits llvm-svn: 239075
-
Alexey Samsonov authored
llvm-svn: 239074
-
Rui Ueyama authored
llvm-svn: 239073
-
Rui Ueyama authored
llvm-svn: 239072
-
Alexei Starovoitov authored
Summary: -march=bpf -> host endian -march=bpf_le -> little endian -match=bpf_be -> big endian Test Plan: v1 was tested by IBM s390 guys and appears to be working there. It bit rots too fast here. Reviewers: chandlerc, tstellarAMD Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10177 llvm-svn: 239071
-
Andrea Di Biagio authored
Method 'visitBUILD_VECTOR' in the DAGCombiner knows how to combine a build_vector of a bunch of extract_vector_elt nodes and constant zero nodes into a shuffle blend with a zero vector. However, method 'visitBUILD_VECTOR' forgot that a floating point build_vector may contain negative zero as well as positive zero. Example: define <2 x double> @example(<2 x double> %A) { entry: %0 = extractelement <2 x double> %A, i32 0 %1 = insertelement <2 x double> undef, double %0, i32 0 %2 = insertelement <2 x double> %1, double -0.0, i32 1 ret <2 x double> %2 } Before this patch, llc (with -mattr=+sse4.1) wrongly generated movq %xmm0, %xmm0 # xmm0 = xmm0[0],zero So, the sign bit of the negative zero was effectively lost. This patch fixes the problem by adding explicit checks for positive zero. With this patch, llc produces the following code for the example above: movhpd .LCPI0_0(%rip), %xmm0 where .LCPI0_0 referes to a 'double -0'. llvm-svn: 239070
-
Evgeniy Stepanov authored
The current check never passes, because CMAKE_MAKE_PROGRAM, at least on Linux, includes the full path to the "ninja" binary; this effectively disables compile/link jobs pools. Use CMAKE_GENERATOR STREQUAL "Ninja" as a more reliable check. llvm-svn: 239069
-
Alexey Samsonov authored
llvm-svn: 239068
-
Rafael Espindola authored
For some reason llvm's r239045 made lld propagate data_1's size. This indicates a bug somewhere in lld. I hesitated between changing the test or just checking in a .o produced with the old llvm-mc. Since the size is now correct, it seemed better to update the test. llvm-svn: 239067
-
Bill Seurer authored
[PowerPC] This revision adds 68 of the missing "Predefined Functions for Vector Programming" from appendix A of the OpenPOWER ABI for Linux Supplement document. I also added tests for the new functions and updated another test that was looking for specific line numbers in error messages from altivec.h. https://llvm.org/bugs/show_bug.cgi?id=23679 http://reviews.llvm.org/D10131 llvm-svn: 239066
-
Alexey Samsonov authored
* If the input file is missing; * If the type of input object file can't be recognized; * If the object file can't be parsed correctly. llvm-svn: 239065
-
Yaron Keren authored
llvm-svn: 239064
-
Evgeniy Stepanov authored
llvm-svn: 239063
-
Benjamin Kramer authored
Add a unit test. llvm-svn: 239062
-
Tobias Grosser authored
This fixes a memory leak caused by us not freeing the expanded region nodes. llvm-svn: 239061
-
Tobias Grosser authored
llvm-svn: 239060
-
Gabor Ballabas authored
GCC allows case-insensitive values for -mcpu, -march and -mtune options. This patch implements the same behaviour for the -mcpu option. llvm-svn: 239059
-
Gabor Ballabas authored
Fix trailing whitespace. llvm-svn: 239058
-
Jonathan Peyton authored
This change changes kmp_bstate.old_tid to sign integer instead of unsigned integer. It also defines two new macros KMP_NSEC_PER_SEC and KMP_USEC_PER_SEC which lets us take control of the sign (we want them to be longs). Also, in kmp_wait_release.h, the byteref() function's return type is changed from char to unsigned char. llvm-svn: 239057
-
Benjamin Kramer authored
llvm-svn: 239056
-
Bruce Mitchener authored
Summary: Building the doxygen target presented some warnings which are now addressed by this patch. Test Plan: Ran doxygen build target and these warnings were no longer present. Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10181 llvm-svn: 239055
-
Samuel Benzaquen authored
Summary: Force braces around leaf 'else if' for consistency. This complements r233697. Reviewers: alexfh Subscribers: curdeius, cfe-commits Differential Revision: http://reviews.llvm.org/D10245 llvm-svn: 239054
-
Matt Arsenault authored
Now that we sometimes know the address space, this can theoretically do a better job. This needs better test coverage, but this mostly depends on first updating the loop optimizatiosn to provide the address space. llvm-svn: 239053
-
Matt Arsenault authored
Use -1 as the address space if it can't be determined. llvm-svn: 239052
-
Matt Arsenault authored
No test because I don't know of a target that makes use of address spaces and indexed load / store. llvm-svn: 239051
-
Tobias Grosser authored
This fixes two more memory leaks. llvm-svn: 239050
-
Matt Arsenault authored
Mostly argument loads were producing broken zextloads from an FP type. llvm-svn: 239049
-
Hans Wennborg authored
When checking (High - Low + 1).sle(BitWidth), BitWidth would be truncated to the size of the left-hand side. In the case of this PR, the left-hand side was i4, so BitWidth=64 got truncated to 0 and the assert failed. llvm-svn: 239048
-
James Y Knight authored
llvm-svn: 239047
-
James Y Knight authored
They should be 'int' instead of 'long int' everywhere else except NetBSD too, from what I gather in GCC's spec files. So, optimistically changing it for everyone else, too. llvm-svn: 239046
-
Rafael Espindola authored
Section symbols exist as an optimization: instead of having multiple relocations point to different symbols, many of them can point to a single section symbol. When that optimization is unused, a section symbol is also unused and adds no extra information to the object file. This saves a bit of space on the object files and makes the output of llvm-objdump -t easier to read and consequently some tests get quite a bit simpler. llvm-svn: 239045
-
Chris Bieneman authored
[CMake] Add warning for using compile and link pools on unsupported versions of CMake or non-ninja generators. Summary: I've gotten feedback from users on CMake 2.8 that the compile and link pool options were not working. This is expected so I'm adding a warning so we can report invalid configurations to users. Reviewers: eugenis Reviewed By: eugenis Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10193 llvm-svn: 239044
-
Rafael Espindola authored
llvm-svn: 239043
-
Rafael Espindola authored
llvm-svn: 239042
-
Rafael Espindola authored
llvm-svn: 239041
-
Benjamin Kramer authored
Less code, clearer and more efficient. No functionality change intended. llvm-svn: 239040
-
Rafael Espindola authored
We already handled a section with no symbols, extend that to also handle a section with symbols that don't include the section start. llvm-svn: 239039
-
Douglas Katzman authored
llvm-svn: 239038
-
James Molloy authored
If the compare in a select pattern has another use then it can't be removed, so we'd just be creating repeated code if we created a min/max node. Spotted by Matt Arsenault! llvm-svn: 239037
-