1. Nov 17, 2018
  2. Nov 16, 2018
    • Sanjay Patel's avatar
      [InstSimplify] add test to demonstrate undef matching differences; NFC · 5ebd2a78
      Sanjay Patel authored
      This is a baseline test for D54631.
      Patch by:
      @nikic (Nikita Popov)
      
      llvm-svn: 347055
      5ebd2a78
    • Simon Pilgrim's avatar
      [X86][SSE] Move number of input limit out of resolveTargetShuffleInputs. · bcd6631a
      Simon Pilgrim authored
      Only combineX86ShufflesRecursively needs this limit.
      
      llvm-svn: 347054
      bcd6631a
    • Alexander Kornienko's avatar
      [clang-tidy] Expanded a test NFC · 12354c91
      Alexander Kornienko authored
      Expanded the readability-inconsistent-declaration-parameter-name-macros.cpp to
      check notes and added a test with pasted tokens.
      
      llvm-svn: 347053
      12354c91
    • Louis Dionne's avatar
      [libcxx] Mention restriction on inline namespaces in LIBCXX_ABI_NAMESPACE docs · 91c0a462
      Louis Dionne authored
      I also kept the original "vague" documentation that saying that users are
      responsible for not breaking us. This doesn't mean anything because there's
      no way they can actually enforce that unless we restrict ourselves to a
      specific naming scheme, but I left the documentation because it acts as a
      good warning and gives us more leeway.
      
      llvm-svn: 347052
      91c0a462
    • Sanjay Patel's avatar
      [x86] regenerate complete checks for test; NFC · 8da76a65
      Sanjay Patel authored
      llvm-svn: 347051
      8da76a65
    • Than McIntosh's avatar
      [IRVerifier] Allow StructRet in statepoint · 4a1c5da7
      Than McIntosh authored
      Summary:
      StructRet attribute is not allowed in vararg calls. The statepoint
      intrinsic is vararg, but the wrapped function may be not. Allow
      calls of statepoint with StructRet arg, as long as the wrapped
      function is not vararg.
      
      Reviewers: thanm, anna
      
      Reviewed By: anna
      
      Subscribers: anna, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D53602
      
      llvm-svn: 347050
      4a1c5da7
    • Simon Atanasyan's avatar
      [DWARF] Use PRIx64 instead of 'x' to format 64-bit values · 705fbd5d
      Simon Atanasyan authored
      This is a follow-up to r346715. Use PRIx64 to formatted print of 64-bit
      value in the `DWARFDebugLoclists::LocationList::dump` to escape problem
      on big-endian hosts.
      
      llvm-svn: 347049
      705fbd5d
    • Roman Lebedev's avatar
      [X86] X86DAGToDAGISel::matchBitExtract(): extract 'lshr' from `X` · 90c5b3f7
      Roman Lebedev authored
      Summary:
      As discussed in previous review, and noted in the FIXME, if `X` is actually an `lshr Y, Z` (logical!),
      we can fold the `Z` into 'control`, and let the `BEXTR` do this too.
      We could just insert those 8 bits of shift amount into control,
      but it is better to instead zero-extend them, and 'or' them in place.
      
      We can only do this for `lshr`, not `ashr`, because we do not know that the mask cover only the bits of `Y`,
      and not any of the sign-extended bits.
      
      The obvious question is, is this actually legal to do?
      I believe it is. Relevant quotes, from `Intel® 64 and IA-32 Architectures Software Developer’s Manual`, `BEXTR — Bit Field Extract`:
      * `Bit 7:0 of the second source operand specifies the starting bit position of bit extraction.`
      * `A START value exceeding the operand size will not extract any bits from the second source operand.`
      * `Only bit positions up to (OperandSize -1) of the first source operand are extracted.`
      * `All higher order bits in the destination operand (starting at bit position LENGTH) are zeroed.`
      * `The destination register is cleared if no bits are extracted.`
      
      FIXME: if we can do this, i wonder if we should prefer `BEXTR` over `BZHI` in such cases.
      
      Reviewers: RKSimon, craig.topper, spatel, andreadb
      
      Reviewed By: RKSimon, craig.topper, andreadb
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D54095
      
      llvm-svn: 347048
      90c5b3f7
    • Henry Wong's avatar
      [lldb] NFC: Remove the extra ';' · 831be096
      Henry Wong authored
      Summary:
      Remove extra `;` to eliminate the following pedantic warning.
      
      ```
      warning: extra ';' [-Wpedantic]
      
      ```
      
      Reviewers: shafik
      
      Reviewed By: shafik
      
      Subscribers: abidh, lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D54528
      
      llvm-svn: 347047
      831be096
    • Benjamin Kramer's avatar
      Remove BUILD file from google-benchmark · 9dfe32e4
      Benjamin Kramer authored
      This was removed in r336666, but accidentally re-added in r346984.
      
      llvm-svn: 347046
      9dfe32e4
    • Simon Pilgrim's avatar
      [TargetLowering] Cleanup more of the EXTEND demanded bits cases so that they match. NFCI. · 3c8baf4f
      Simon Pilgrim authored
      Use the same variable names etc.
      
      llvm-svn: 347045
      3c8baf4f
    • Haojian Wu's avatar
      [clangd] Truncate SymbolID to 8 bytes. · 22c9f7b2
      Haojian Wu authored
      Summary:
      This is our goal. It has a non-zero rick, but so far we haven't see any
      collision (externally and internally).
      
      Reviewers: sammccall
      
      Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D54622
      
      llvm-svn: 347044
      22c9f7b2
    • Alex Bradbury's avatar
      [RISCV][NFC] Define and use the new CA instruction format · b4a64ced
      Alex Bradbury authored
      The RISC-V ISA manual was updated on 2018-11-07 (commit 00557c3) to define a 
      new compressed instruction format, RVC format CA (no actual instruction 
      encodings were changed). This patch updates the RISC-V backend to define the 
      new format, and to use it in the relevant instructions.
      
      Differential Revision: https://reviews.llvm.org/D54302
      Patch by Luís Marques.
      
      llvm-svn: 347043
      b4a64ced
    • Alex Bradbury's avatar
      [RISCV] Constant materialisation for RV64I · 2146e8fb
      Alex Bradbury authored
      This commit introduces support for materialising 64-bit constants for RV64I,
      making use of the RISCVMatInt::generateInstSeq helper in order to share logic
      for immediate materialisation with the MC layer (where it's used for the li
      pseudoinstruction).
      
      test/CodeGen/RISCV/imm.ll is updated to test RV64, and gains new 64-bit
      constant tests. It would be preferable if anyext constant returns were sign
      rather than zero extended (see PR39092). This patch simply adds an explicit
      signext to the returns in imm.ll.
      
      Further optimisations for constant materialisation are possible, most notably
      for mask-like values which can be generated my loading -1 and shifting right.
      A future patch will standardise on the C++ codepath for immediate selection on
      RV32 as well as RV64, and then add further such optimisations to
      RISCVMatInt::generateInstSeq in order to benefit both RV32 and RV64 for
      codegen and li expansion.
      
      Differential Revision: https://reviews.llvm.org/D52962
      
      llvm-svn: 347042
      2146e8fb
    • Anton Korobeynikov's avatar
      [MSP430] Add support for .refsym directive · 411773d2
      Anton Korobeynikov authored
      Introduces support for '.refsym' assembler directive.
      
      From GCC docs (for MSP430):
      '.refsym' - This directive instructs assembler to add an undefined reference
      to the symbol following the directive. No relocation is created for this symbol;
      it will exist purely for pulling in object files from archives.
      
      Patch by Kristina Bessonova!
      
      Differential Revision: https://reviews.llvm.org/D54618
      
      llvm-svn: 347041
      411773d2
    • Anton Korobeynikov's avatar
      [MSP430] Add more tests for ABI and calling convention · cad2b831
      Anton Korobeynikov authored
      Patch by Kristina Bessonova!
      
      Differential Revision: https://reviews.llvm.org/D54582
      
      llvm-svn: 347040
      cad2b831