1. Nov 01, 2017
  2. Oct 31, 2017
    • Pavel Labath's avatar
      Add a "watchpoint" test category and annotate tests appropriately · 22e71a03
      Pavel Labath authored
      Most of the watchpoint tests are organized into subtrees, so we can use the
      file-based .categories approach to annotate them. The exception are the
      concurrent_events tests, which needed to be annotated on a per-test basis.
      
      The motivation behind this is to provide an easy way to disable watchpoint
      tests on systems where the watchpoint functionality is not present/unreliable.
      
      llvm-svn: 317004
      22e71a03
    • Benjamin Kramer's avatar
      [LoopVectorize] Replace manual VPlan memory management with unique_ptr. · 3f3d5be7
      Benjamin Kramer authored
      No functionality change intended.
      
      llvm-svn: 317003
      3f3d5be7
    • George Rimar's avatar
      [ELF] - Remove useless code. NFC. · f173a630
      George Rimar authored
      We set Type and Flags inside OutputSection::addSection,
      so this lines looks to be excessive.
      
      llvm-svn: 317002
      f173a630
    • Jonas Devlieghere's avatar
      [test] Fix dsymutil/cmdline.test · 5a213f2f
      Jonas Devlieghere authored
      This fixes dsymutil/cmdline.test on platforms where the dsymutil binary
      has an extension.
      
      llvm-svn: 317001
      5a213f2f
    • Florian Hahn's avatar
      [Reassociate] Remove FIXME from looptest.ll (NFC) · 51787b20
      Florian Hahn authored
      Summary: The loop invariant add (i+j) is reassoicated, I think the FIXME can be removed, because this is what the test case tries to check (AFAIK). I also changed the test to use FileCheck.
      
      Reviewers: mcrosier, davide
      
      Reviewed By: mcrosier, davide
      
      Subscribers: davide, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D39424
      
      llvm-svn: 317000
      51787b20
    • Jonas Devlieghere's avatar
      [dsymutil] Implement the --threads option · 2dd98483
      Jonas Devlieghere authored
      This patch adds the --threads option to dsymutil to process
      architectures in parallel. The feature is already present in the version
      distributed with Xcode, but was not yet upstreamed.
      
      This is NFC as far as the linking behavior is concerned. As threads are
      used automatically, the current tests cover the change in
      implementation.
      
      Differential revision: https://reviews.llvm.org/D39355
      
      llvm-svn: 316999
      2dd98483
    • Oleg Ranevskyy's avatar
      [lld] Fix --exclude-libs broken when --whole-archive is used · 0cf24ed9
      Oleg Ranevskyy authored
      Summary:
      **Problem**
      `--exclude-libs` does not work for static libraries affected by the `--whole-archive` option.
      
      **Description**
      `--exclude-libs` creates a list of static library paths and does library lookups in this list.
      `--whole-archive` splits the static libraries that follow it into separate objects. As a result, lld no longer sees static libraries among linked files and does no `--exclude-libs` lookups.
      
      **Solution**
      The proposed solution is to make `--exclude-libs` consider object files too. When lld finds an object file it checks whether this file originates from an archive and, if so, looks the archive up in the `--exclude-libs` list.
      
      Reviewers: ruiu, rafael
      
      Reviewed By: ruiu
      
      Subscribers: asl, ikudrin, llvm-commits, emaste
      
      Tags: #lld
      
      Differential Revision: https://reviews.llvm.org/D39353
      
      llvm-svn: 316998
      0cf24ed9
    • Pavel Labath's avatar
      Fix LLVM_LINK_LLVM_DYLIB build (pr35053) · f753bfee
      Pavel Labath authored
      Summary:
      r316368 broke this build when it introduced a reference to a pthread
      function to the Utility module. This caused cmake to generate an
      incorrect link line (wrong order of libs) because it did not see the
      dependency from Utility to the system libraries. Instead these libraries
      were being manually added to each final target.
      
      This changes moves the dependency management from the individual targets
      to the lldbUtility module, which is consistent with how llvm does it.
      The final targets will pick up these libraries as they will be a part of
      the link interface of the module.
      
      Technically, some of these dependencies could go into the host module,
      as that's where most of the os-specific code is, but I did not try to
      investigate which ones.
      
      Reviewers: zturner, sylvestre.ledru
      
      Subscribers: lldb-commits, mgorny
      
      Differential Revision: https://reviews.llvm.org/D39246
      
      llvm-svn: 316997
      f753bfee
    • Teresa Johnson's avatar
      [ThinLTO] Double bits of module hash used for renaming · d1089e5c
      Teresa Johnson authored
      Summary:
      Use 64 instead of 32 bits of the module hash as the suffix when renaming
      after promotion to reduce the likelihood of a collision (which we
      observed in a binary when using 32 bits).
      
      Reviewers: pcc
      
      Subscribers: llvm-commits, inglorion
      
      Differential Revision: https://reviews.llvm.org/D39443
      
      llvm-svn: 316996
      d1089e5c
    • Michael Kruse's avatar
      [DeLICM] Fix wrong assumed access execution order. · ff426d97
      Michael Kruse authored
      ForwardOpTree may already transform a scalar access to an array
      accesses. The access remains implicit (isOriginalScalarKind(), meaning
      that the access is always executed at the begin/end of a statement), but
      targets an array (isLatestArrayKind(), which is unrelated to whether the
      execution is implicit/explicit).
      
      Fix by properly using isOriginalXXX() to determine execution order.
      
      This fixes the buildbots on MultiSource/Benchmarks/DOE-ProxyApps-C/miniGMG.
      
      llvm-svn: 316995
      ff426d97
    • Matthew Simpson's avatar
      [InstCombine] Simplify selects that test cmpxchg instructions · b6915fbf
      Matthew Simpson authored
      If a select instruction tests the returned flag of a cmpxchg instruction and
      selects between the returned value of the cmpxchg instruction and its compare
      operand, the result of the select will always be equal to its false value.
      
      Differential Revision: https://reviews.llvm.org/D39383
      
      llvm-svn: 316994
      b6915fbf
    • Pavel Labath's avatar
      Increase AdbClient read timeout · aee3e26c
      Pavel Labath authored
      The previous value was not sufficient for Pixel 2 phones. One would have
      hoped that the newer phones are faster, but that does not seem to be the
      case here.
      
      llvm-svn: 316993
      aee3e26c
    • Pavel Labath's avatar
      Add data formatter for libc++'s forward_list · 89ac0c7d
      Pavel Labath authored
      Summary:
      This adds a data formatter for the implementation of forward_list in
      libc++. I've refactored the existing std::list data formatter a bit to
      enable more sharing of code (mainly the loop detection stuff).
      
      Reviewers: jingham, EricWF
      
      Subscribers: srhines, eugene, lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D35556
      
      llvm-svn: 316992
      89ac0c7d
    • Pavel Labath's avatar
      Fix mac build broken in r316987 · e4435642
      Pavel Labath authored
      Forgot one occurence of ArchSpec::SetTriple in mac-specific code.
      
      llvm-svn: 316990
      e4435642
    • Ayman Musa's avatar
      Adding a shufflevector and select LLVM IR instructions fuzz tool · 25589e2a
      Ayman Musa authored
      Based on similar python tool - utils/shuffle-fuzz.py - this tool extends the ability of it's previous by optionally attaching select instruction to the generated shufflevector instructions.
      This was mainly developed to perform exhaustive testing of the X86 AVX512 masked shuffle instructions. But yet it can be used for various other targets.
      The general design of the implementation is much modular than the original shuffle_fuzz.py tool, which makes it easier for anyone to extend it further.
      
      Differential Revision: https://reviews.llvm.org/D38031
      
      Change-Id: I0efc2aaa091b61a8a9552311c21cc77916a97111
      llvm-svn: 316989
      25589e2a
    • Ivan A. Kosarev's avatar
      [CodeGen] Propagate may-alias'ness of lvalues with TBAA info · b9c59f36
      Ivan A. Kosarev authored
      This patch fixes various places in clang to propagate may-alias
      TBAA access descriptors during construction of lvalues, thus
      eliminating the need for the LValueBaseInfo::MayAlias flag.
      
      This is part of D38126 reworked to be a separate patch to
      simplify review.
      
      Differential Revision: https://reviews.llvm.org/D39008
      
      llvm-svn: 316988
      b9c59f36
    • Pavel Labath's avatar
      Invert ArchSpec<->Platform dependency · 7263f1bd
      Pavel Labath authored
      Summary:
      ArchSpec::SetTriple was taking a Platform as an argument, and used it to
      fill in missing pieces of the specified triple. I invert the dependency
      by moving this code to other classes. For this purpose, I've created
      three new functions.
      - HostInfo::GetAugmentedArchSpec: fills in the triple using the host
        platform (this used to be implemented by passing a null platform
        pointer). By putting this code in the Host module, we can provide a
        way to anyone who does not have a platform instance (lldb-server) an
        easy way to get Host data.
      - Platform::GetAugmentedArchSpec: if you have a platform instance, you
        can call this to let it fill in the triple.
      - static Platform::GetAugmentedArchSpec: implements the "if platform ==
        0 then use_host() else use_platform()" part.
      
      Reviewers: zturner, jingham, clayborg
      
      Subscribers: mgorny, javed.absar, lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D39387
      
      llvm-svn: 316987
      7263f1bd