1. Jul 17, 2014
  2. Jul 16, 2014
    • Marshall Clow's avatar
      Correctly implement LWG 2049; std::is_destructible. · f52c88f0
      Marshall Clow authored
      llvm-svn: 213163
      f52c88f0
    • Tim Northover's avatar
      CodeGen: don't form illegail EXTLOAD operations. · 7f3e11e7
      Tim Northover authored
      It turns out that in most cases (the main exception being i1-related
      types) once these operations are formed we cannot separate them and
      the targets end up having to deal with them whether they want to or
      not.
      
      This is not a good situation, and a more reasonable default can be
      formed by ackowledging this and having targets leave them as Legal.
      Only x86 seems to be affected (other targets don't even try marking
      the operation Expand).
      
      Mostly there's no visible change here yet, but it will be useful to
      have truly expanded EXTLOADS for MVT::f16 softening support.
      
      llvm-svn: 213162
      7f3e11e7
    • Tim Northover's avatar
      Convert test to CHECK-LABEL · db8011a4
      Tim Northover authored
      llvm-svn: 213161
      db8011a4
    • Daniel Sanders's avatar
      [mips][fp64a] Temporarily disable odd-numbered double-precision registers when using the FP64A ABI. · 68dcb4ff
      Daniel Sanders authored
      Summary:
      A few instructions (mostly cvt.d.w and similar) are causing problems with
      -mfp64 and -mno-odd-spreg and it looks like fixing it properly may
      take several weeks. In the meantime, let's disable the odd-numbered
      double-precision registers so that the generated code is at least valid.
      
      The problem is that instructions like cvt.d.w read from the 32-bit low
      subregister of a double-precision FPU register. This often leads to the compiler
      to inserting moves to transfer a GPR32 to a FGR32 using mtc1. Such moves
      violate the rules against 32-bit writes to odd-numbered FPU registers imposed
      by -mno-odd-spreg. By disabling the odd-numbered double-precision registers, it
      becomes impossible for the 32-bit low subregister to be odd-numbered.
      
      This fixes numerous test-suite failures when compiling for the FP64A ABI
      ('-mfp64 -mno-odd-spreg'). There is no LLVM test case because it's difficult to
      test that odd-numbered FPU registers are not allocatable. Instead, we depend on
      the assembler (GAS and -fintegrated-as) raising errors when the rules are
      violated.
      
      Differential Revision: http://reviews.llvm.org/D4532
      
      llvm-svn: 213160
      68dcb4ff
    • Alp Toker's avatar
      Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" · a3c494f0
      Alp Toker authored
      We've decided to make the core rewriter class and PP rewriters mandatory.
      They're only a few hundred lines of code in total and not worth supporting as a
      distinct build configuration, especially since doing so disables key compiler
      features.
      
      This reverts commit r213150.
      
      Revert "clang/test: Introduce the feature "rewriter" for --enable-clang-rewriter."
      
      This reverts commit r213148.
      
      Revert "Move clang/test/Frontend/rewrite-*.c to clang/test/Frontend/Rewriter/"
      
      This reverts commit r213146.
      
      llvm-svn: 213159
      a3c494f0
    • Todd Fiala's avatar
      Add kalimba as a platform. · cfee9632
      Todd Fiala authored
      This change comprises of additions and some minor changes in order that
      "kalimba" is listed as a supported platform and that debugging any
      kalimbas results in PlatformKalimba being associated with the target.
      
      The changes are as follows:
      
      * The PlatformKalimba implementation itself
      * A tweak to ArchSpec
      * .note parsing for Kalimba in ObjectFileELF.cpp
      * Plugin registration
      * Makefile additions
      
      Change by Matthew Gardiner
      
      Minor tweak for cmake and Xcode by Todd Fiala
      
      Tested:
      Ubuntu 14.04 x86_64, clang 3.5-built lldb, all tests pass.
      MacOSX 10.9.4, Xcode 6.0 Beta 1-built lldb, all tests pass.
      
      llvm-svn: 213158
      cfee9632
    • Benjamin Kramer's avatar
      [clang-tidy] As a simple heuristic don't emit a swap fixit that would create · 806bcabc
      Benjamin Kramer authored
      negative-sized memsets.
      
      memset(x, -1, 0) is still useless but swapping makes no sense here. Just emit
      a warning.
      
      llvm-svn: 213157
      806bcabc