1. Apr 21, 2017
  2. Apr 20, 2017
    • Zachary Turner's avatar
      [BitVector] Add operator<<= and operator>>=. · 7500b0ec
      Zachary Turner authored
      Differential Revision: https://reviews.llvm.org/D32244
      
      llvm-svn: 300848
      7500b0ec
    • Daniel Sanders's avatar
      [globalisel] Enable tracing the legalizer with --debug-only=legalize-mir · 5377fb34
      Daniel Sanders authored
      Reviewers: t.p.northover, ab, qcolombet, aditya_nandakumar, rovka, kristof.beyls
      
      Reviewed By: kristof.beyls
      
      Subscribers: dberris, igorb, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D31750
      
      llvm-svn: 300847
      5377fb34
    • Kostya Kortchinsky's avatar
      [scudo] Minor changes and refactoring · 006805d1
      Kostya Kortchinsky authored
      Summary:
      This is part of D31947 that is being split into several smaller changes.
      
      This one deals with all the minor changes, more specifically:
      - Rename some variables and functions to make their purpose clearer;
      - Reorder some code;
      - Mark the hot termination incurring checks as `UNLIKELY`; if they happen, the
        program will die anyway;
      - Add a `getScudoChunk` method;
      - Add an `eraseHeader` method to ScudoChunk that will clear a header with 0s;
      - Add a parameter to `allocate` to know if the allocated chunk should be filled
        with zeros. This allows `calloc` to not have to call
        `GetActuallyAllocatedSize`; more changes to get rid of this function on the
        hot paths will follow;
      - reallocate was missing a check to verify that the pointer is properly
        aligned on `MinAlignment`;
      - The `Stats` in the secondary have to be protected by a mutex as the `Add`
        and `Sub` methods are actually not atomic;
      - The software CRC32 function was moved to the header to allow for inlining.
      
      Reviewers: dvyukov, alekseyshl, kcc
      
      Reviewed By: dvyukov
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D32242
      
      llvm-svn: 300846
      006805d1
    • Davide Italiano's avatar
      [Utility] Placate another GCC warning. · 04e7c08d
      Davide Italiano authored
      Differential Revision:  https://reviews.llvm.org/D32137
      
      llvm-svn: 300845
      04e7c08d
    • Amaury Sechet's avatar
      Introduce LLVMDIBuilderRef · a52b03d2
      Amaury Sechet authored
      Summary:
      This patch adds a definition of `LLVMDIBuilderRef` that represents an `llvm::DIBuilder`.
      
      Authored by Harlan Haskins
      
      Reviewers: deadalnix, aprantl, probinson, dblaikie, echristo, whitequark
      
      Reviewed By: deadalnix, whitequark
      
      Subscribers: CodaFi, loladiro
      
      Differential Revision: https://reviews.llvm.org/D32122
      
      llvm-svn: 300843
      a52b03d2
    • Amara Emerson's avatar
      [MVT][SVE] Scalable vector MVTs (3/3) · 23e79ec2
      Amara Emerson authored
      Adds MVT::ElementCount to represent the length of a
      vector which may be scalable, then adds helper functions
      that work with it.
      
      Patch by Graham Hunter.
      
      Differential Revision: https://reviews.llvm.org/D32019
      
      llvm-svn: 300842
      23e79ec2
    • Krasimir Georgiev's avatar
      Delete unused IncompleteFormat variable, NFCi. · e48c1b56
      Krasimir Georgiev authored
      llvm-svn: 300841
      e48c1b56
    • Amara Emerson's avatar
      [MVT][SVE] Scalable vector MVTs (2/3) · bfbdebd0
      Amara Emerson authored
      Adds scalable vector machine value types, and updates
      the switch statements required for tablegen.
      
      Patch by Graham Hunter.
      
      Differential Revision: https://reviews.llvm.org/D32018
      
      llvm-svn: 300840
      bfbdebd0
    • Petar Jovanovic's avatar
      [mips][msa] Mask vectors holding shift amounts · 2b6fe3ff
      Petar Jovanovic authored
      Masked vectors which hold shift amounts when creating the following nodes:
      ISD::SHL, ISD::SRL or ISD::SRA.
      Instructions that use said nodes, which have had their arguments altered are
      sll, srl, sra, bneg, bclr and bset.
      
      For said instructions, the shift amount or the bit position that is
      specified in the corresponding vector elements will be interpreted as the
      shift amount/bit position modulo the size of the element in bits.
      
      The problem lies in compiling with -O2 enabled, where the instructions for
      formats .w and .d are not generated, but are instead optimized away.
      In this case, having shift amounts that are either negative or greater than
      the element bit size results in generation of incorrect results when
      constant folding.
      
      We remedy this by masking the operands for the nodes mentioned above before
      actually creating them, so that the final result is correct before placed
      into the constant pool.
      
      Patch by Stefan Maksimovic.
      
      Differential Revision: https://reviews.llvm.org/D31331
      
      llvm-svn: 300839
      2b6fe3ff
    • Amara Emerson's avatar
      [MVT][SVE] Scalable vector MVTs (1/3) · 50547820
      Amara Emerson authored
      This patch adds a few helper functions to obtain new vector
      value types based on existing ones without needing to care
      about whether they are scalable or not.
      
      I've confined their use to a few common locations right now,
      and targets that don't have scalable vectors should never
      need to care about these.
      
      Patch by Graham Hunter.
      
      Differential Revision: https://reviews.llvm.org/D32017
      
      llvm-svn: 300838
      50547820
    • Pavel Labath's avatar
      Skip TestLibCxxAtomic with gcc · 69883aa0
      Pavel Labath authored
      older versions of libc++ (still used on some linux systems) are not
      compatible with gcc.
      
      llvm-svn: 300837
      69883aa0
    • Pavel Labath's avatar
      Recompute ArchSpec core after MergeFrom · 68e3886e
      Pavel Labath authored
      Summary:
      MergeFrom was updating the architecture if the target triple did not
      have it set. However, it was leaving the core field as invalid. This
      resulted in assertion failures in core file tests as a missing core
      meant we were unable to compute the address byte size properly.
      
      Add a unit test for the new behaviour.
      
      Reviewers: jingham, clayborg
      
      Subscribers: lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D32221
      
      llvm-svn: 300836
      68e3886e
    • Pavel Labath's avatar
      Make TestStaticVariables XFAIL more specific · 7b46633c
      Pavel Labath authored
      The test fails because an older clang did not emit the required debug
      info (I am not sure when this got added, but clang-3.7 certainly did not
      work yet). The actual platform has nothing to do with this.
      
      llvm-svn: 300834
      7b46633c
    • Pavel Labath's avatar
      Add libc++ category the three more tests · a93310ad
      Pavel Labath authored
      I thought my previous commit got the last ones but somehow I missed
      these. This also resurrects TestDataFormatterLibcxxSet, which got
      commented out in r263859 as a part of some seemingly unrelated change.
      
      llvm-svn: 300833
      a93310ad
    • Alex Lorenz's avatar
      [index] Record class template specializations using a new 'SpecializationOf' · f6071c34
      Alex Lorenz authored
      relationship
      
      rdar://31603531
      
      Differential Revision: https://reviews.llvm.org/D32010
      
      llvm-svn: 300832
      f6071c34
    • John Brawn's avatar
      [ARM] Fix handling of mapping symbols when changing sections · 66719f63
      John Brawn authored
      ChangeSection incorrectly registers LastEMSInfo as belonging to the previous
      section, not the current section. This happens to work when changing sections
      using .section, as the previous section is set to the current section before
      the call to ChangeSection, but not when using .popsection.
      
      Differential Revision: https://reviews.llvm.org/D32225
      
      llvm-svn: 300831
      66719f63