1. Oct 08, 2019
    • Matt Arsenault's avatar
      AMDGPU/GlobalISel: Fix selection of 16-bit shifts · 1237aa29
      Matt Arsenault authored
      llvm-svn: 373945
      1237aa29
    • Matt Arsenault's avatar
      AMDGPU/GlobalISel: Select VALU G_AMDGPU_FFBH_U32 · 09ec6918
      Matt Arsenault authored
      llvm-svn: 373944
      09ec6918
    • Matt Arsenault's avatar
      AMDGPU/GlobalISel: Use S_MOV_B64 for inline constants · 0b2ea91d
      Matt Arsenault authored
      This hides some defects in SIFoldOperands when the immediates are
      split.
      
      llvm-svn: 373943
      0b2ea91d
    • Matt Arsenault's avatar
      AMDGPU/GlobalISel: Widen 16-bit G_MERGE_VALUEs sources · 578fa281
      Matt Arsenault authored
      Continue making a mess of merge/unmerge legality.
      
      llvm-svn: 373942
      578fa281
    • Louis Dionne's avatar
      [libc++abi] Do not define -Dcxxabi_shared_EXPORTS when building libc++abi · d03068c3
      Louis Dionne authored
      CMake sets adds that definition automatically, but we don't need
      or use it.
      
      llvm-svn: 373940
      d03068c3
    • Alexey Bataev's avatar
      [OPENMP50]Treat range-based for as canonical loop. · bef93a98
      Alexey Bataev authored
      According to OpenMP 5.0, range-based for is also considered as a
      canonical form of loops.
      
      llvm-svn: 373939
      bef93a98
    • Matt Arsenault's avatar
      AMDGPU/GlobalISel: Select more G_INSERT cases · b4cbf986
      Matt Arsenault authored
      At minimum handle the s64 insert type, which are emitted in real cases
      during legalization.
      
      We really need TableGen to emit something to emit something like the
      inverse of composeSubRegIndices do determine the subreg index to use.
      
      llvm-svn: 373938
      b4cbf986
    • Matt Arsenault's avatar
      GlobalISel: Add target pre-isel instructions · 27269054
      Matt Arsenault authored
      Allows targets to introduce regbankselectable
      pseudo-instructions. Currently the closet feature to this is an
      intrinsic. However this requires creating a public intrinsic
      declaration. This litters the public intrinsic namespace with
      operations we don't necessarily want to expose to IR producers, and
      would rather leave as private to the backend.
      
      Use a new instruction bit. A previous attempt tried to keep using enum
      value ranges, but it turned into a mess.
      
      llvm-svn: 373937
      27269054
    • Michal Gorny's avatar
      [clang] [cmake] Support LLVM_DISTRIBUTION_COMPONENTS in stand-alone build · cdbeaf54
      Michal Gorny authored
      Differential Revision: https://reviews.llvm.org/D68412
      
      llvm-svn: 373936
      cdbeaf54
    • Jordan Rose's avatar
      Second attempt to add iterator_range::empty() · fdaa7421
      Jordan Rose authored
      Doing this makes MSVC complain that `empty(someRange)` could refer to
      either C++17's std::empty or LLVM's llvm::empty, which previously we
      avoided via SFINAE because std::empty is defined in terms of an empty
      member rather than begin and end. So, switch callers over to the new
      method as it is added.
      
      https://reviews.llvm.org/D68439
      
      llvm-svn: 373935
      fdaa7421
    • Louis Dionne's avatar
      [libc++abi] Remove redundant link flags on Apple platforms · f385a381
      Louis Dionne authored
      These flags are already set when we create the cxxabi_shared target
      using the SOVERSION and VERSION target properties, and the install_name
      was already being overriden to '@rpath/libc++abi.1.dylib' by CMake
      because no 'CMAKE_INSTALL_NAME_DIR' option was specified. So this is
      effectively a removal of dead code with no intended functionality change.
      
      The only think we're losing here is that we used to link against
      libSystem.B.dylib instead of libSystem.dylib when building libc++abi
      for macOS 10.6 -- however, I strongly suspect nobody's building
      libc++abi from source for that target anymore.
      
      llvm-svn: 373934
      f385a381
    • Nico Weber's avatar
      Try to get clangd tests passing on Windows. · 29f7e17c
      Nico Weber authored
      Part of PR43592. See also r328645.
      
      llvm-svn: 373932
      29f7e17c
    • Walter Erquinigo's avatar
      [platform process list] add a flag for showing the processes of all users · 6e1a0cf4
      Walter Erquinigo authored
      Summary:
      For context: https://reviews.llvm.org/D68293
      
      We need a way to show all the processes on android regardless of the user id.
      When you run `platform process list`, you only see the processes with the same user as the user that launched lldb-server. However, it's quite useful to see all the processes, though, and it will lay a foundation for full apk debugging support from lldb.
      
      Before:
      ```
      PID    PARENT USER       TRIPLE                   NAME
      ====== ====== ========== ======================== ============================
      3234   1                 aarch64-unknown-linux-android adbd
      8034   3234              aarch64-unknown-linux-android sh
      9096   3234              aarch64-unknown-linux-android sh
      9098   9096              aarch64-unknown-linux-android lldb-server
      (lldb) ^D
      ```
      
      Now:
      ```
      (lldb) platform process list -x
      205 matching processes were found on "remote-android"
      PID    PARENT USER       TRIPLE                   NAME
      ====== ====== ========== ======================== ============================
      1      0                                          init
      524    1                                          init
      525    1                                          init
      531    1                                          ueventd
      568    1                                          logd
      569    1                 aarch64-unknown-linux-android servicemanager
      570    1                 aarch64-unknown-linux-android hwservicemanager
      571    1                 aarch64-unknown-linux-android vndservicemanager
      577    1                 aarch64-unknown-linux-android qseecomd
      580    577               aarch64-unknown-linux-android qseecomd
      ...
      23816  979                                        com.android.providers.calendar
      24600  979                                        com.verizon.mips.services
      27888  979                                        com.hualai
      28043  2378                                       com.android.chrome:sandboxed_process0
      31449  979                                        com.att.shm
      31779  979                                        com.samsung.android.authfw
      31846  979                                        com.samsung.android.server.iris
      32014  979                                        com.samsung.android.MtpApplication
      32045  979                                        com.samsung.InputEventApp
      ```
      
      Reviewers: labath,xiaobai,aadsm,clayborg
      
      Subscribers:
      
      llvm-svn: 373931
      6e1a0cf4
    • Kostya Kortchinsky's avatar
      [scudo][standalone] Correct releaseToOS behavior · bebdab63
      Kostya Kortchinsky authored
      Summary:
      There was an issue in `releaseToOSMaybe`: one of the criteria to
      decide if we should proceed with the release was wrong. Namely:
      
      ```
      const uptr N = Sci->Stats.PoppedBlocks - Sci->Stats.PushedBlocks;
      if (N * BlockSize < PageSize)
        return; // No chance to release anything.
      ```
      
      I meant to check if the amount of bytes in the free list was lower
      than a page, but this actually checks if the amount of **in use** bytes
      was lower than a page.
      
      The correct code is:
      
      ```
      const uptr BytesInFreeList =
        Region->AllocatedUser -
        (Region->Stats.PoppedBlocks - Region->Stats.PushedBlocks) * BlockSize;
      if (BytesInFreeList < PageSize)
        return 0; // No chance to release anything.
      ```
      
      Consequences of the bug:
      - if a class size has less than a page worth of in-use bytes (allocated
        or in a cache), reclaiming would not occur, whatever the amount of
        blocks in the free list; in real world scenarios this is unlikely to
        happen and be impactful;
      - if a class size had less than a page worth of free bytes (and enough
        in-use bytes, etc), then reclaiming would be attempted, with likely
        no result. This means the reclaiming was overzealous at times.
      
      I didn't have a good way to test for this, so I changed the prototype
      of the function to return the number of bytes released, allowing to
      get the information needed. The test added fails with the initial
      criteria.
      
      Another issue is that `ReleaseToOsInterval` can actually be 0, meaning
      we always try to release (side note: it's terrible for performances).
      so change a `> 0` check to `>= 0`.
      
      Additionally, decrease the `CanRelease` threshold to `PageSize / 32`.
      I still have to make that configurable but I will do it at another time.
      
      Finally, rename some variables in `printStats`: I feel like "available"
      was too ambiguous, so change it to "total".
      
      Reviewers: morehouse, hctim, eugenis, vitalybuka, cferris
      
      Reviewed By: morehouse
      
      Subscribers: delcypher, #sanitizers, llvm-commits
      
      Tags: #llvm, #sanitizers
      
      Differential Revision: https://reviews.llvm.org/D68471
      
      llvm-svn: 373930
      bebdab63
    • Erich Keane's avatar
      Fix Calling Convention through aliases · 8a410bce
      Erich Keane authored
      r369697 changed the behavior of stripPointerCasts to no longer include
      aliases.  However, the code in CGDeclCXX.cpp's createAtExitStub counted
      on the looking through aliases to properly set the calling convention of
      a call.
      
      The result of the change was that the calling convention mismatch of the
      call would be replaced with a llvm.trap, causing a runtime crash.
      
      Differential Revision: https://reviews.llvm.org/D68584
      
      llvm-svn: 373929
      8a410bce
    • Yitzhak Mandelbaum's avatar
      [libTooling][NFC] Fix build break in r373916. · e4cec2d3
      Yitzhak Mandelbaum authored
      r373916 used raw strings inside macro calls, which breaks some builds.
      
      llvm-svn: 373928
      e4cec2d3
    • Vedant Kumar's avatar
      [DWARFASTParserClang] Factor out structure-like type parsing, NFC · 40a1853c
      Vedant Kumar authored
      Split out the logic to parse structure-like types into a separate
      function, in an attempt to reduce the complexity of ParseTypeFromDWARF.
      
      Inspired by discussion in https://reviews.llvm.org/D68130.
      
      Differential Revision: https://reviews.llvm.org/D68422
      
      llvm-svn: 373927
      40a1853c
    • Vedant Kumar's avatar
      [DWARFASTParserClang] Delete commented-out typedef, NFC · fccfe2c0
      Vedant Kumar authored
      (& group together all the protected members & typedefs)
      
      llvm-svn: 373926
      fccfe2c0
    • Pavel Labath's avatar
      ProcessInstanceInfoMatch: Don't match processes with no name if a name match was requested · f7bd5bff
      Pavel Labath authored
      Since D68289, a couple of tests on linux started being extremely flaky.
      All of them were doing name-based attaching and were failing because
      they couldn't find an unambiguous process to attach to.
      
      The patch above changed the process finding logic, so that failure to
      find a process name does not constitute an error. This meant that a lot
      more transient processes showed up in the process list during the test
      suite run. Previously, these processes would not appear as they would be
      gone by the time we went to read their executable name, arguments, etc.
      
      Now, this alone should not cause an issue were it not for the fact that
      we were considering a process with no name as if it matched by default
      (even if we were explicitly searching for a process with a specified
      name). This meant that any of the "transient" processes with no name
      would make the name match ambiguous. That clearly seems like a bug to me
      so I fix that.
      
      llvm-svn: 373925
      f7bd5bff
    • Kadir Cetinkaya's avatar
      [clangd] Fix raciness in code completion tests · de859977
      Kadir Cetinkaya authored
      Reviewers: sammccall, ilya-biryukov
      
      Subscribers: MaskRay, jkorous, arphaman, usaxena95, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D68273
      
      llvm-svn: 373924
      de859977
    • Florian Hahn's avatar
      [Remarks] Pass StringBlockValue as StringRef. · 90b7dc9e
      Florian Hahn authored
      After changing the remark serialization, we now pass StringRefs to the
      serializer. We should use StringRef for StringBlockVal, to avoid
      creating temporary objects, which then cause StringBlockVal.Value to
      point to invalid memory.
      
      Reviewers: thegameg, anemet
      
      Reviewed By: thegameg
      
      Differential Revision: https://reviews.llvm.org/D68571
      
      llvm-svn: 373923
      90b7dc9e
    • Paul Hoad's avatar
      [clang-format] [PR27004] omits leading space for noexcept when formatting operator delete() · 2c3f7380
      Paul Hoad authored
      Summary:
      clang-format is incorrectly thinking the parameter parens are part of a cast operation, this is resulting in there sometimes being not space between the paren and the noexcept (and other keywords like volatile etc..)
      
      ```
      void operator++(int) noexcept;
      void operator++(int &) noexcept;
      void operator delete(void *, std::size_t, const std::nothrow_t &)noexcept;
      ```
      
      Reviewers: klimek, owenpan, mitchell-stellar
      
      Reviewed By: mitchell-stellar
      
      Subscribers: cfe-commits
      
      Tags: #clang-format, #clang
      
      Differential Revision: https://reviews.llvm.org/D68481
      
      llvm-svn: 373922
      2c3f7380
    • Paul Hoad's avatar
      [clang-format] [NFC] Ensure clang-format is itself clang-formatted. · a65cfe30
      Paul Hoad authored
      Summary:
      Before making a proposed change, ensure ClangFormat.cpp is fully clang-formatted,
      
      no functional change just clang-formatting using the in tree .clang-format.
      
      Reviewers: mitchell-stellar
      
      Reviewed By: mitchell-stellar
      
      Subscribers: Eugene.Zelenko, cfe-commits
      
      Tags: #clang-format, #clang
      
      Differential Revision: https://reviews.llvm.org/D68551
      
      llvm-svn: 373921
      a65cfe30
    • Wei Mi's avatar
      Fix build errors caused by rL373914. · 283df8cf
      Wei Mi authored
      llvm-svn: 373919
      283df8cf
    • Simon Pilgrim's avatar
      Codegen - silence static analyzer getAs<> null dereference warnings. NFCI. · 7e38f0c4
      Simon Pilgrim authored
      The static analyzer is warning about potential null dereferences, but in these cases we should be able to use castAs<> directly and if not assert will fire for us.
      
      llvm-svn: 373918
      7e38f0c4
    • Wenlei He's avatar
      [llvm-profdata] Minor format fix · b3342e18
      Wenlei He authored
      Summary: Minor format fix for output of "llvm-profdata -show"
      
      Reviewers: wmi
      
      Subscribers: hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D68440
      
      llvm-svn: 373917
      b3342e18
    • Yitzhak Mandelbaum's avatar
      [libTooling] Add `toString` method to the Stencil class · d5b98355
      Yitzhak Mandelbaum authored
      Summary:
      `toString` generates a string representation of the stencil.
      
      Patch by Harshal T. Lehri.
      
      Reviewers: gribozavr
      
      Subscribers: cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D68574
      
      llvm-svn: 373916
      d5b98355
    • Simon Pilgrim's avatar
      [X86][SSE] getTargetShuffleInputs - move VT.isSimple/isVector checks inside. NFCI. · 9c2e1230
      Simon Pilgrim authored
      Stop all the callers from having to check the value type before calling getTargetShuffleInputs.
      
      llvm-svn: 373915
      9c2e1230
    • Wei Mi's avatar
      [SampleFDO] Add compression support for any section in ExtBinary profile format · b523790a
      Wei Mi authored
      Previously ExtBinary profile format only supports compression using zlib for
      profile symbol list. In this patch, we extend the compression support to any
      section. User can select some or all of the sections to compress. In an
      experiment, for a 45M profile in ExtBinary format, compressing name table
      reduced its size to 24M, and compressing all the sections reduced its size
      to 11M.
      
      Differential Revision: https://reviews.llvm.org/D68253
      
      llvm-svn: 373914
      b523790a
  2. Oct 07, 2019