Skip to content
  1. Jun 13, 2015
  2. Jun 12, 2015
    • Davide Italiano's avatar
      [COFF] Spell the namespace correctly. · d106ab26
      Davide Italiano authored
      llvm-svn: 239641
      d106ab26
    • Lang Hames's avatar
      [Orc] Fix a bug in the CompileOnDemand layer where stub decls were not cloned · 2e36ddf6
      Lang Hames authored
      into partitions. Also, add an option to clone stub definitions (not just decls)
      into partitions: these definitions could be inlined in some places to avoid the
      overhead of calling via the stub.
      
      Found by inspection - no test case yet, although I plan to add a unit test for
      this once the CompileOnDemand layer refactoring settles down.
      
      llvm-svn: 239640
      2e36ddf6
    • Hans Wennborg's avatar
      [ms] Don't try to delay lookup for failures in SFINAE context (PR23823) · b2747387
      Hans Wennborg authored
      The underlying problem in PR23823 already existed before my recent change
      in r239558, but that change made it worse (failing not only for undeclared
      symbols, but also failed overload resolution). This makes Clang not try to
      delay the lookup in SFINAE context. I assume no current code is relying on
      SFINAE working with lookups that need to be delayed, because that never
      seems to have worked.
      
      Differential Revision: http://reviews.llvm.org/D10417
      
      llvm-svn: 239639
      b2747387
    • Alexey Samsonov's avatar
      [CGCall] Fix potential invalid iterator decrement in findDominatingStoreToReturnValue. · 1054420b
      Alexey Samsonov authored
      If llvm.lifetime.end turns out to be the first instruction in the last
      basic block, we can decrement the iterator twice, going past rend.
      At the moment, this can never happen because llvm.lifetime.end always
      goes immediately after bitcast, but relying on this is very brittle.
      
      llvm-svn: 239638
      1054420b
    • Tom Stellard's avatar
      R600/SI: Add assembler support for FLAT instructions · 12a1910e
      Tom Stellard authored
      - Add glc, slc, and tfe operands to flat instructions
      - Add missing flat instructions
      - Fix the encoding of flat_load_dwordx3 and flat_store_dwordx3.
      
      llvm-svn: 239637
      12a1910e
    • Yaron Keren's avatar
      Rangify several for loops in ValueEnumerator constructor. · 4c20debe
      Yaron Keren authored
      llvm-svn: 239636
      4c20debe
    • Eric Christopher's avatar
      Quote the user provided string in the warning message and update · 0ee1c8cd
      Eric Christopher authored
      tests accordingly.
      
      llvm-svn: 239635
      0ee1c8cd
    • Colin LeMahieu's avatar
      [Hexagon] Making intrinsic tests agnostic to register allocation. Narrowing... · 79ec0652
      Colin LeMahieu authored
      [Hexagon] Making intrinsic tests agnostic to register allocation.  Narrowing intrinsic parameters to appropriate width.
      
      llvm-svn: 239634
      79ec0652
    • Tim Northover's avatar
      Driver: only set -mlinker-version based on host if it's valid · 018578c3
      Tim Northover authored
      We were adding an extra "-mlinker-version" argument to the invocation
      based on a value inferred from "ld -v". This is set by the build
      systems to either a sane value or an empty string (e.g. for custom
      built ld), which we don't want to pass on.
      
      No test really possible because the value depends on both host system
      and how CMake was invoked.
      
      llvm-svn: 239633
      018578c3
    • Douglas Katzman's avatar
      Wrap some long lines in LLVMBuild files. NFC · 8f01f1cf
      Douglas Katzman authored
      As suggested by jroelofs in a prior review (D9752),
      it makes sense to generally prefer multi-line format.
      
      llvm-svn: 239632
      8f01f1cf
    • Douglas Katzman's avatar
      Add 'shave' processor name to Triple · 1b5767f7
      Douglas Katzman authored
      Based on ArchType, Clang's driver can select a non-Clang compiler.
      String parsing in Clang would have sufficed if it were only that,
      however this change anticipates true llvm support.
      
      Differential Revision: http://reviews.llvm.org/D10413
      
      llvm-svn: 239631
      1b5767f7
    • Ahmed Bougacha's avatar
      [builtins] Hide long double fp_test.h helpers if it's not fp128. · f190def8
      Ahmed Bougacha authored
      Like we do for the various __*tf* tests, check that long double is the
      128bit type we expect directly in the header. The latter is now used by
      unrelated tests (__*hf* since r237161), and those tests will break for
      no reason if uint128_t doesn't exist, and long double isn't fp128.
      
      llvm-svn: 239630
      f190def8
    • David Blaikie's avatar
      Refix a use of explicit pointer types in GEP constant folding · 473b943e
      David Blaikie authored
      In the glorious future of opaque pointer types, it won't be possible to
      retrieve the pointee type of a pointer type which is what's being done
      in this GEP loop - but the first iteration is always a pointer type and
      the loop doesn't care about that case, except whether or not the index
      is a constant.
      
      So pull that special case out before the loop and start at the second
      iteration (index 1) instead.
      
      Originally committed in r236670 and reverted with a test case in
      r239015. This change keeps the test case working while also avoiding
      depending on pointee types.
      
      llvm-svn: 239629
      473b943e
    • Matt Wala's avatar
      Fix a typo in a comment in MemCpyOpt (test commit) · a4afccd8
      Matt Wala authored
      llvm-svn: 239628
      a4afccd8
    • Yaron Keren's avatar
      Rangify two for loops in BitcodeReader.cpp. · ef5e7add
      Yaron Keren authored
      llvm-svn: 239627
      ef5e7add
    • Pete Cooper's avatar
      Remove unnecessary MCExpr.h include from MCSymbol.h · 83a930c8
      Pete Cooper authored
      MCSymbol.h already forwards declares MCExpr and only uses MCExpr* so doesn't
      need to include the header.
      
      llvm-svn: 239626
      83a930c8
    • David Majnemer's avatar
      [MS ABI] Lock-in the derived memptr rep. for base-to-derived conversions · fc22e477
      David Majnemer authored
      We would get this right in the case where an explicit cast was formed
      but not when we were performing an implicit conversion.
      
      This fixes PR23828.
      
      llvm-svn: 239625
      fc22e477
    • Pete Cooper's avatar
      255d117d
    • Pete Cooper's avatar
      Move OperandList to be allocated prior to User for hung off subclasses. · b676b01b
      Pete Cooper authored
      For hung off uses, we need a Use* to tell use where the operands are.
      This was User::OperandList but we want to remove that to save space
      of all subclasses which aren't making use of 'hung off uses'.
      
      Hung off uses now allocate their own 'OperandList' Use* in the
      User::new which they call.
      
      getOperandList() now uses the hung off uses bit to work out where the
      Use* for the OperandList lives.  If a User has hung off uses, then this
      bit tells them to go back a single Use* from the User* and use that
      value as the OperandList.
      
      If a User has no hung off uses, then we get the first operand by
      subtracting (NumOperands * sizeof(Use)) from the User this pointer.
      
      This saves a pointer from User and all subclasses.  Given the average
      size of a subclass of User is 112 or 128 bytes, this saves around 7% of space
      With malloc tending to align to 16-bytes the real saving is typically more like 3.5%.
      
      On 'opt -O2 verify-uselistorder.lto.bc', peak memory usage prior to this change
      is 149MB and after is 143MB so the savings are around 2.5% of peak.
      
      Looking at some passes which allocate many Instructions and Values, parseIR drops
      from 54.25MB to 52.21MB while the Inliner calls to Instruction::clone() drops
      from 28.20MB to 27.05MB.
      
      Reviewed by Duncan Exon Smith.
      
      llvm-svn: 239623
      b676b01b
    • Pete Cooper's avatar
      Added a version of User::new for hung off uses. · c91fda3b
      Pete Cooper authored
      There are now 2 versions of User::new.  The first takes a size_t and is the current
      implementation for subclasses which need 0 or more Use's allocated for their operands.
      
      The new version takes no extra arguments to say that this subclass needs 'hung off uses'.
      The HungOffUses bool is now set in this version of User::new and we can assert in
      allocHungOffUses that we are allowed to have hung off uses.
      This ensures we call the correct version of User::new for subclasses which need hung off uses.
      
      A future commit will then allocate space for a single Use* which will be used
      in place of User::OperandList once that field has been removed.
      
      Reviewed by Duncan Exon Smith.
      
      llvm-svn: 239622
      c91fda3b
    • Pete Cooper's avatar
      Rename NumOperands to make it clear its managed by the User. NFC. · b4eede2c
      Pete Cooper authored
      This is to try make it very clear that subclasses shouldn't be changing
      the value directly.  Now that OperandList for normal instructions is computed
      using the NumOperands, its critical that the NumOperands is accurate or we
      could compute the wrong offset to the first operand.
      
      I looked over all places which update NumOperands and they are all safe.
      Hung off use User's don't use NumOperands to compute the OperandList so they
      are safe to continue to manipulate it.  The only other User which changed it
      was GlobalVariable which has an optional init list but always allocated space
      for a single Use.  It was correctly setting NumOperands to 1 before setting an
      initializer, and setting it to 0 after clearing the init list, so the order was safe.
      
      Added some comments to that code to make sure that this isn't changed in future
      without being aware of this constraint.
      
      Reviewed by Duncan Exon Smith.
      
      llvm-svn: 239621
      b4eede2c
    • Pete Cooper's avatar
      Replace all accesses to User::OperandList with getter and setter methods. NFC. · 74510a40
      Pete Cooper authored
      We don't want anyone to access OperandList directly as its going to be removed
      and computed instead.  This uses getter's and setter's instead in which we
      can later change the underlying implementation of OperandList.
      
      Reviewed by Duncan Exon Smith.
      
      llvm-svn: 239620
      74510a40
    • Gabor Ballabas's avatar
      Allow case-insensitive values for -mcpu for AArch64 target in line with GCC. · 726ce7fc
      Gabor Ballabas authored
      GCC allows case-insensitive values for -mcpu, -march and -mtune options.
      This patch implements the same behaviour for the -mcpu option for the AArch64 target.
      
      llvm-svn: 239619
      726ce7fc
    • Rafael Espindola's avatar
      Have the ELF symbol predicates match more directly the spec. · c74ac023
      Rafael Espindola authored
      The underlaying issues is that this code can't really know if an OS specific or
      processor specific section number should return true or false.
      
      One option would be to assert or return an error, but that looks like over
      engineering since extensions are not that common.
      
      It seems better to have these be direct implementation of the ELF spec so that
      they are natural for someone familiar with ELF reading the code.
      
      Code that does have to handle OS/Architecture specific values can do it at
      a higher level.
      
      llvm-svn: 239618
      c74ac023
Loading