1. Jul 28, 2014
  2. Jul 27, 2014
    • Simon Atanasyan's avatar
      Remove unused empty folder `unittest`. · b3cd5a10
      Simon Atanasyan authored
      llvm-svn: 214054
      b3cd5a10
    • Tim Northover's avatar
      AArch64: fix conversion of 'J' inline asm constraints. · 2c46beb0
      Tim Northover authored
      'J' represents a negative number suitable for an add/sub alias
      instruction, but while preparing it to become an int64_t we were
      mangling the sign extension. So "i32 -1" became 0xffffffffLL, for
      example.
      
      Should fix one half of PR20456.
      
      llvm-svn: 214052
      2c46beb0
    • Richard Smith's avatar
      9303357e
    • Richard Smith's avatar
      When looking for temporary dtors while building the CFG, do not walk into · 4137af28
      Richard Smith authored
      lambda expressions (other than their capture initializers) nor blocks. Do walk
      into default argument expressions and default initializer expressions.
      
      These bugs were causing us to produce broken CFGs whenever a lambda expression
      was used to initialize a libstdc++ std::function object!
      
      llvm-svn: 214050
      4137af28
    • Richard Smith's avatar
      [modules] Add some missing record names. We really should be generating this... · f1b4b8bf
      Richard Smith authored
      [modules] Add some missing record names. We really should be generating this from a .def file or similar...
      
      llvm-svn: 214049
      f1b4b8bf
    • Richard Smith's avatar
      [modules] Add abbreviation for ImplicitCastExpr. This is the most common · a27c26e7
      Richard Smith authored
      record type in LLVM's IR module.
      
      llvm-svn: 214048
      a27c26e7
    • Nico Weber's avatar
      Wrap to 80 columns. No behavior change. · 21ad7e52
      Nico Weber authored
      llvm-svn: 214047
      21ad7e52
    • Saleem Abdulrasool's avatar
      builtins: make ARM compilation with GAS work again · 3a2d6a30
      Saleem Abdulrasool authored
      The LLVM IAS seems to accept wide instructions for add and sub in ARM mode even
      though it is not permitted.  This uses a macro to ensure that the wide modifier
      is only applied when building in THUMB mode.
      
      This repairs building with GCC/GAS in ARM mode.
      
      llvm-svn: 214046
      3a2d6a30
    • Saleem Abdulrasool's avatar
      builtins: move macro definitions into assembly.h · b6690c34
      Saleem Abdulrasool authored
      The macro definitions are shared across multiple files.  Define them once in the
      assembly.h header rather than redefining it in each file.
      
      llvm-svn: 214045
      b6690c34
    • Saleem Abdulrasool's avatar
      builtins: whitespace · 31306b15
      Saleem Abdulrasool authored
      llvm-svn: 214044
      31306b15
    • Chandler Carruth's avatar
      [x86] Sink a variable only used by asserts into the asserts. Should fix · 64a7c828
      Chandler Carruth authored
      some -Werror bots, sorry for the noise.
      
      llvm-svn: 214043
      64a7c828
    • Chandler Carruth's avatar
      [x86] Add a much more powerful framework for combining x86 shuffle · 80c5bfd8
      Chandler Carruth authored
      instructions in the legalized DAG, and leverage it to combine long
      sequences of instructions to PSHUFB.
      
      Eventually, the other x86-instruction-specific shuffle combines will
      probably all be driven out of this routine. But the real motivation is
      to detect after we have fully legalized and optimized a shuffle to the
      minimal number of x86 instructions whether it is profitable to replace
      the chain with a fully generic PSHUFB instruction even though doing so
      requires either a load from a constant pool or tying up a register with
      the mask.
      
      While the Intel manuals claim it should be used when it replaces 5 or
      more instructions (!!!!) my experience is that it is actually very fast
      on modern chips, and so I've gon with a much more aggressive model of
      replacing any sequence of 3 or more instructions.
      
      I've also taught it to do some basic canonicalization to special-purpose
      instructions which have smaller encodings than their generic
      counterparts.
      
      There are still quite a few FIXMEs here, and I've not yet implemented
      support for lowering blends with PSHUFB (where its power really shines
      due to being able to zero out lanes), but this starts implementing real
      PSHUFB support even when using the new, fancy shuffle lowering. =]
      
      llvm-svn: 214042
      80c5bfd8
    • Chandler Carruth's avatar
      [ADT] Add a remarkbly useful little helper routine to ArrayRef for · 3ea985b3
      Chandler Carruth authored
      checking whether the ArrayRef is equal to an explicit list of arguments.
      
      This is particularly easy to implement even without variadic templates
      because ArrayRef happens to be homogeneously typed. As a consequence we
      can use a "clever" wrapper type and default arguments to capture in
      a single method many arguments as well as *how many* arguments the user
      specified.
      
      Thanks to Dave Blaikie for helping me pull together this little helper.
      Suggestions for how to improve or generalize it are of course welcome.
      I'll be using it immediately in my follow-up patch. =D
      
      llvm-svn: 214041
      3ea985b3
    • Saleem Abdulrasool's avatar
      builtins: avoid multiple definitions of symbols · b72a2fdd
      Saleem Abdulrasool authored
      The architecture specific implementation of routines would be built and included
      along with the generic implementation.  This would result in multiple
      definitions of those symbols.
      
      The linker is free to select either of the two.  Most of the time, this
      shouldn't be too terrible as the forward iteration should catch the architecture
      version due to the ordering.  Rather than relying on the linker and build
      infrastructure ordering things in a specific manner, only provide the
      architecture version when available.
      
      This reduces the size of compiler-rt, simplifies inspection of the library
      implementations, and guarantees that the desired version is selected at a
      slightly complex build system.
      
      llvm-svn: 214040
      b72a2fdd
    • Saleem Abdulrasool's avatar
      builtins: add missed files from previous commits · 24c68b26
      Saleem Abdulrasool authored
      This adds missed files in SVN r214033 for alignment and corrects a change from
      SVN r214034 for fixing compilation with GCC.
      
      llvm-svn: 214039
      24c68b26
    • Nico Weber's avatar
      Wrap to 80 columns. No behavior change. · 6381633c
      Nico Weber authored
      llvm-svn: 214038
      6381633c
    • Dan Albert's avatar
      Better defaults for in-tree libc++ with cmake. · 55d029e6
      Dan Albert authored
      This will detect if you are building libcxx in-tree and libcxxabi is
      available.  If so, it will default to using the in-tree libcxxabi by
      setting LIBCXX_CXX_ABI to "libcxxabi", LIBCXX_LIBCXXABI_INCLUDE_PATHS to
      "${CMAKE_SOURCE_DIR}/projects/libcxxabi/include" and will add "cxxabi"
      as a proper dependency.
      
      Patch by Russell Harmon.
      
      llvm-svn: 214037
      55d029e6
    • Nico Weber's avatar
      Wrap to 80 columns, no functionality change. · 61281faa
      Nico Weber authored
      llvm-svn: 214036
      61281faa