- Jul 26, 2016
-
-
Pavel Labath authored
Summary: The function was returning the null pointer for peeks of size zero, which seems like a sensible thing to do, but is actually pretty easy to get bitten by that if you are extracting a variable length field which happens to be of zero length and then doing pointer arithmetic on that (which SymbolFileDWARF does, and ended up crashing in case of empty DW_AT_location). This changes the function to return a null pointer only when it gets queried for data which is outside of the range of the extractor, which is more c++-y, as one can still do reasonable things with pointers to data of size zero (think, end() iterators). I also add a test and fix some signedness warnings in the existing data extractor tests. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D22755 llvm-svn: 276734
-
Craig Topper authored
[X86] Remove isCommutable=1 from instructions that also load. Commuting such instruction isn't useful as it would unfold the load. The exception being FMA3 instructions. llvm-svn: 276733
-
Craig Topper authored
[AVX512] Don't mark ADDSSZr_Int or MULSSZr_Int as commutable. The intrinsics have one of their arguments indicated as passing through the high bits and we can't commute that. llvm-svn: 276732
-
Eugene Leviant authored
llvm-svn: 276731
-
Dimitry Andric authored
FreeBSD with gcc 4.2.1, a long time ago (see r113824). Noticed by Pete Cooper. llvm-svn: 276730
-
Jason Molenda authored
that may be embedded in the Contents/Resources subdir of a dSYM bundle. These allow for the specification of a build-time path to debug-time path remapping for source files. Files may be built in /BuildDirectory/sources/project-100 but when the debugger is run, they're actually found via ~sources/project-100 - this plist allows for that remapping through the DBGBuildSourcePath and DBGSourcePath keys. This patch adds support for a new DBGSourcePathRemapping dictionary in the plist where the keys are the build-time paths and the values are the debug-time paths that they should be remapped to. There are instances were we have multiple possible build-time paths that need to be included, so the dictionary was required. <rdar://problem/26725174> llvm-svn: 276729
-
David Majnemer authored
InstSimplify has gained the ability to remove needless bitcasts which perturbed some clang codegen tests. llvm-svn: 276728
-
David Majnemer authored
This reverts commit r276700 and reapplies r276698. The relevant clang tests have been updated. llvm-svn: 276727
-
Kelvin Li authored
The OpenMP spec mandates that 'a teams construct must be contained within a target construct'. Currently, this scenario is not diagnosed. This patch is to add check for orphaned teams construct and issue an error message. Differential Revision: https://reviews.llvm.org/D22785 llvm-svn: 276726
-
Amaury Sechet authored
llvm-svn: 276725
-
Matthias Braun authored
If we move a last-use register read to a later position we may skip intermediate segments. This may require us to not only extend the segment before the NewIdx, but also extend the segment live-in to OldIdx. This switches LiveIntervalTest to use AMDGPU so we can test subregister liveness. llvm-svn: 276724
-
Tim Northover authored
llvm-svn: 276723
-
Jason Molenda authored
load address on 64-bit devices; it only needs to look in three. <rdar://problem/27061405> llvm-svn: 276721
-
Peter Collingbourne authored
llvm-svn: 276720
-
Peter Collingbourne authored
This flag is implemented similarly to --reproduce in the ELF linker. This patch implements /linkrepro by moving the cpio writer and associated utility functions to lldCore, and using that implementation in both linkers. One COFF-specific detail is that we store the object file from which the resource files were created in our reproducer, rather than the resource files themselves. This allows the reproducer to be used on non-Windows systems for example. Differential Revision: https://reviews.llvm.org/D22418 llvm-svn: 276719
-
Chris Bieneman authored
Recent changes to Xcode have changed the structure of Xcode toolchains. This patch makes the xcode-toolchain goop construct a new-format Xcode toolchain that is compatible with Xcode 7. The new format has a compatibility version key, so when a new format comes out we can support multiple formats in parallel. llvm-svn: 276718
-
Rui Ueyama authored
llvm-svn: 276717
-
Vedant Kumar authored
After r275121, we stopped mapping regions from system headers. Lambdas declared in regions belonging to system headers started producing empty coverage mappings, since the files corresponding to their spelling locs were being ignored. The coverage reader doesn't know what to do with these empty mappings. This commit makes sure that we don't produce them and adds a test. I'll make the reader stricter in a follow-up commit. llvm-svn: 276716
-
Rui Ueyama authored
llvm-svn: 276715
-
Sebastian Pop authored
Instead of DFS numbering basic blocks we now DFS number instructions that avoids the costly operation of which instruction comes first in a basic block. Patch mostly written by Daniel Berlin. Differential Revision: https://reviews.llvm.org/D22777 llvm-svn: 276714
-
Sebastian Pop authored
This patch adds an option to specify the maximum depth in a BB at which to consider hoisting instructions. Hoisting instructions from a deeper level is not profitable as it increases register pressure and compilation time. Differential Revision: https://reviews.llvm.org/D22772 llvm-svn: 276713
-
Evgeniy Stepanov authored
Stack guard slot is live throughout the function. llvm-svn: 276712
-
Chris Bieneman authored
On OS X 10.11 System Integrity Protection prevents the DYLD environment variables from being set on system binaries. To work around this r276710 accepts DYLD_LIBRARY_PATH as a CMake variable and sets it directly on the archiver commands. To make this work with bootstrapping we need to set DYLD_LIBRARY_PATH to the current stage's library directory and pass that into the next stage's configuration. llvm-svn: 276711
-
Chris Bieneman authored
OS X 10.11 has a feature named System Integrity Protection. The goal of the feature is to make system binaries immutable (even as root). One part of this is that protected binaries do not receive DYLD_* environment variables because the kernel scrubs them before process launch. This causes problems for LTO bootstrap builds on Darwin that try to use the just-built libLTO with the host ar, ranlib, or libtool. This patch addresses two problems. (1) The tools themselves aren't protected binaries but the shim tools installed at / are, so we need to call xcrun -find to find libtool instead of using the one CMake finds. (2) Some build tools (ninja and make) use /bin/sh to invoke their subprocesses. Since /bin/sh is a system binary, the kernel scrubs the DYLD envars from their environment. To work around this we need to set the environment variables as part of the archiver commands, so the envars are set by the shell process instead of on the shell process. llvm-svn: 276710
-
Enrico Granata authored
llvm-svn: 276709
-
Xinliang David Li authored
llvm-svn: 276708
-
Adam Nemet authored
For example, stop expanding 'opt' in -passes='require<opt-remark-emit>'. llvm-svn: 276707
-
Rui Ueyama authored
createSections function is getting longer, so it is time to split it into small functions. The reason why the function is long is because it has deeply nested for-loops. This patch constructs temporary data to reduce nesting level. Differential Revision: https://reviews.llvm.org/D22786 llvm-svn: 276706
-
Rui Ueyama authored
match() returns true of the first argument, a target string, matches one of the second argument, a list of glob patterns. Calling the target string, which is not a glob pattern, "Pattern" was very confusing. llvm-svn: 276705
-
Jan Vesely authored
OpenCL 1.0: "Returns y if y < x, otherwise it returns x. If x *and* y are infinite or NaN, the return values are undefined." OpenCL 1.1+: "Returns y if y < x, otherwise it returns x. If x *or* y are infinite or NaN, the return values are undefined." The 1.0 version is stricter so use that one. Signed-off-by:Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 276704
-
Michael Kuperstein authored
llvm-svn: 276703
-
Rui Ueyama authored
Because the file from which an input section is created can be obtained using getFile(). llvm-svn: 276702
-
Renato Golin authored
The saturation instructions appeared in v6T2, with DSP extensions, but they were being accepted / generated on any, with the new introduction of the saturation detection in the back-end. This commit restricts the usage to DSP-enable only cores. Fixes PR28607. llvm-svn: 276701
-
David Majnemer authored
This reverts commit r276698. Clang has tests which rely on the optimizer :( llvm-svn: 276700
-
David Majnemer authored
BitCasts of BitCasts can be folded away as can BitCasts which don't change the type of the operand. llvm-svn: 276698
-
Rui Ueyama authored
llvm-svn: 276697
-
Akira Hatanaka authored
on the nullabilities of its operands. This commit is a follow-up to r276076 and enables computeConditionalNullability to compute the merged nullability when the operands are objective-c pointers. rdar://problem/22074116 llvm-svn: 276696
-
Davide Italiano authored
This will grow because I have a patch to support more complex constructs, e.g.: KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors)) Let's make this a separate function. llvm-svn: 276695
-
David Blaikie authored
llvm-svn: 276694
-
Rui Ueyama authored
Re-commit r276543 with a fix for buildbots. llvm-svn: 276693
-