1. Nov 20, 2019
  2. Nov 19, 2019
    • Mitchell Balan's avatar
      [clang-tidy] Give readability-redundant-member-init an option... · 98065362
      Mitchell Balan authored
      [clang-tidy] Give readability-redundant-member-init an option IgnoreBaseInCopyConstructors to avoid breaking code with gcc -Werror=extra
      
      Summary:
      readability-redundant-member-init removes redundant / unnecessary member and base class initialization. Unfortunately for the specific case of a copy constructor's initialization of a base class, gcc at strict warning levels warns if "base class is not initialized in the copy constructor of a derived class".
      
      This patch adds an option `IgnoreBaseInCopyConstructors` defaulting to 0 (thus maintaining current behavior by default) to skip the specific case of removal of redundant base class initialization in the copy constructor. Enabling this option enables the resulting code to continue to compile successfully under `gcc -Werror=extra`. New test cases `WithCopyConstructor1` and `WithCopyConstructor2` in clang-tools-extra/test/clang-tidy/readability-redundant-member-init.cpp show that it removes redundant members even from copy constructors.
      
      Reviewers: malcolm.parsons, alexfh, hokein, aaron.ballman, lebedev.ri
      
      Patch by: poelmanc
      
      Subscribers: mgehre, lebedev.ri, cfe-commits
      
      Tags: #clang, #clang-tools-extra
      
      Differential revision: https://reviews.llvm.org/D69145
      98065362
    • Sanjay Patel's avatar
      [SLP] fix insertion point for min/max reduction · 39de82ec
      Sanjay Patel authored
      As discussed in D70148 (and caused a revert of the original commit):
      if we insert at the select, then we can produce invalid IR because
      the replacement for the compare may have uses before the select.
      39de82ec
    • LLVM GN Syncbot's avatar
      gn build: Merge 765b1250 · 41bac76d
      LLVM GN Syncbot authored
      41bac76d
    • David Bozier's avatar
      Fixup AVR tests to reflect changes in addend format in llvm-objdump · e6c55fbe
      David Bozier authored
      Summary: Changes to llvm-objdump made in D69997
      
      Reviewers: thakis, jhenderson, grimar
      
      Reviewed By: thakis
      
      Subscribers: dylanmckay, Jim, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D70438
      e6c55fbe
    • Sanjay Patel's avatar
      [SLP] add test for reduction miscompile; NFC · 6265be27
      Sanjay Patel authored
      See D70148 for discussion.
      6265be27
    • Raphael Isemann's avatar
    • Simon Tatham's avatar
      [ARM,MVE] Add intrinsics for scalar shifts. · 254b4f25
      Simon Tatham authored
      This fills in the small family of MVE intrinsics that have nothing to
      do with vectors: they implement bit-shift operations on 32- or 64-bit
      values held in one or two general-purpose registers. Most of these
      shift operations saturate if shifting left, and round to nearest if
      shifting right, although LSLL and ASRL behave like ordinary shifts.
      
      When these instructions take a variable shift count in a register,
      they pay attention to its sign, so that (for example) LSLL or UQRSHLL
      will shift left if given a positive number but right if given a
      negative one. That makes even LSLL and ASRL different enough from
      standard LLVM IR shift semantics that I couldn't see any better
      alternative than to simply model the whole family as a set of
      MVE-specific IR intrinsics.
      
      (The //immediate// forms of LSLL and ASRL, on the other hand, do
      behave exactly like a standard IR shift of a 64-bit value. In fact,
      those forms don't have ACLE intrinsics defined at all, because you can
      just write an ordinary C shift operation if you want one of those.)
      
      The 64-bit shifts have to be instruction-selected in C++, because they
      deliver two output values. But the 32-bit ones are simple enough that
      I could write a DAG isel pattern directly into each Instruction
      record.
      
      Reviewers: ostannard, MarkMurrayARM, dmgreen
      
      Reviewed By: dmgreen
      
      Subscribers: kristof.beyls, hiraditya, cfe-commits, llvm-commits
      
      Tags: #clang, #llvm
      
      Differential Revision: https://reviews.llvm.org/D70319
      254b4f25
    • Sam McCall's avatar
      [clangd] Show values of more expressions on hover · 33d93c3d
      Sam McCall authored
      Reviewers: kadircet
      
      Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D70359
      33d93c3d