1. Dec 01, 2014
    • Daniel Sanders's avatar
      Merged from r218260: · a90d2012
      Daniel Sanders authored
      Fix test/CodeGen/mips-varargs.c to use %clang_cc1
      
      Only tests under test/Driver should use %clang, and test/CodeGen in
      particular must always use %clang_cc1.
      
      llvm-svn: 223001
      a90d2012
    • Daniel Sanders's avatar
      Merged from r218256: · 6c9c1dcd
      Daniel Sanders authored
      clang/test/CodeGen/mips-varargs.c: Fixup for -Asserts.
      
      llvm-svn: 223000
      6c9c1dcd
    • Daniel Sanders's avatar
      Merged from r218248: · 6f900021
      Daniel Sanders authored
      [mips] Correct alignment of vectors passed in varargs for the O32 ABI.
      
      Summary:
      Vectors are normally 16-byte aligned, however the O32 ABI enforces a
      maximum alignment of 8-bytes since the base of the stack is 8-byte aligned.
      Previously, this was enforced on the caller side, but not on the callee side.
      
      This fixes the output of OpenCL's printf when given vectors.
      
      Reviewers: atanasyan
      
      Reviewed By: atanasyan
      
      Subscribers: llvm-commits, pekka.jaaskelainen
      
      Differential Revision: http://reviews.llvm.org/D5433
      
      llvm-svn: 222999
      6f900021
    • Daniel Sanders's avatar
      Merging r217160: · 4ce9a1a5
      Daniel Sanders authored
      [mips] Mark aggregates returned in registers with the 'inreg' attribute.
      
      Summary:
      This allows us to easily find them in the backend after the aggregates have
      been lowered to other types. This is important on big-endian targets using
      the N32/N64 ABI's since these ABI's must shift small structures into the
      upper bits of the register.
      
      Reviewers: atanasyan
      
      Reviewed By: atanasyan
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D5005
      
      llvm-svn: 222998
      4ce9a1a5
  2. Nov 27, 2014
    • Daniel Sanders's avatar
      Merging r217257: · 942a2456
      Daniel Sanders authored
      ------------------------------------------------------------------------
      r217257 | tomatabacu | 2014-09-05 17:32:09 +0100 (Fri, 05 Sep 2014) | 9 lines
      
      [mips] Change Feature-related types from unsigned to uint64_t in MipsAsmParser. No functional changes.
      
      Summary: Found a couple of cases where unsigned was still being used. These two should be the last ones in the (entire) Mips backend.
      
      Reviewers: dsanders
      
      Reviewed By: dsanders
      
      Differential Revision: http://reviews.llvm.org/D5028
      ------------------------------------------------------------------------
      
      llvm-svn: 222875
      942a2456
  3. Nov 26, 2014
    • Daniel Sanders's avatar
      Merging r213769: · 34493255
      Daniel Sanders authored
      ------------------------------------------------------------------------
      r213769 | askrobov | 2014-07-23 18:09:26 +0100 (Wed, 23 Jul 2014) | 6 lines
      
      Fix test/Driver/cl-x86-flags.c by providing explicit --target
      
      This isn't very neat, but we haven't found any better ways to
      make this test work with non-X86 default target.
      
      
      ------------------------------------------------------------------------
      
      llvm-svn: 222815
      34493255
  4. Nov 25, 2014
    • Daniel Sanders's avatar
      Merging r218745: · 2bace4c6
      Daniel Sanders authored
      ------------------------------------------------------------------------
      r218745 | dsanders | 2014-10-01 09:26:55 +0100 (Wed, 01 Oct 2014) | 7 lines
      
      [mips] Fix disassembly of [ls][wd]c[23], cache, and pref                          
                                                                                        
      Fixes PR21015, and PR20993.                                                       
                                                                                        
      Patch by Jun Koi
      
      
      ------------------------------------------------------------------------
      
      llvm-svn: 222696
      2bace4c6
    • Daniel Sanders's avatar
      Merging r216262: · 55b9030c
      Daniel Sanders authored
      ------------------------------------------------------------------------
      r216262 | sstankovic | 2014-08-22 10:23:22 +0100 (Fri, 22 Aug 2014) | 5 lines
      
      [mips] Don't use odd-numbered float registers for double arguments for fastcc
      calling convention if FP is 64-bit and +nooddspreg is used.
      
      Differential Revision: http://reviews.llvm.org/D4981.diff
      
      ------------------------------------------------------------------------
      
      llvm-svn: 222695
      55b9030c
    • Daniel Sanders's avatar
      Merging r221453: · 0cb1d7aa
      Daniel Sanders authored
      ------------------------------------------------------------------------
      r221453 | tomatabacu | 2014-11-06 14:25:42 +0000 (Thu, 06 Nov 2014) | 17 lines
      
      [mips] Tolerate the use of the %z inline asm operand modifier with non-immediates.
      
      Summary:
      Currently, we give an error if %z is used with non-immediates, instead of continuing as if the %z isn't there.
      
      For example, you use the %z operand modifier along with the "Jr" constraints ("r" makes the operand a register, and "J" makes it an immediate, but only if its value is 0). 
      In this case, you want the compiler to print "$0" if the inline asm input operand turns out to be an immediate zero and you want it to print the register containing the operand, if it's not.
      
      We give an error in the latter case, and we shouldn't (GCC also doesn't).
      
      Reviewers: dsanders
      
      Reviewed By: dsanders
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D6023
      ------------------------------------------------------------------------
      
      llvm-svn: 222693
      0cb1d7aa
    • Daniel Sanders's avatar
      Merging r221408: · 39158405
      Daniel Sanders authored
      ------------------------------------------------------------------------
      r221408 | petarj | 2014-11-05 22:42:31 +0000 (Wed, 05 Nov 2014) | 9 lines
      
      [mips64] Fix MIPS64 exception personality encoding
      
      Remove dynamic relocations of __gxx_personality_v0 from the .eh_frame.
      The MIPS64 follow-up of the MIPS32 fix (rL209907).
      
      Patch by Vladimir Stefanovic.
      
      Differential Revision: http://reviews.llvm.org/D6141
      
      ------------------------------------------------------------------------
      
      llvm-svn: 222692
      39158405
    • Daniel Sanders's avatar
      Merging r216920: · e222c9e1
      Daniel Sanders authored
      ------------------------------------------------------------------------
      r216920 | samsonov | 2014-09-02 18:49:16 +0100 (Tue, 02 Sep 2014) | 4 lines
      
      Fix left shifts of negative values in MipsDisassembler.
      
      This bug was reported by UBSan.
      
      ------------------------------------------------------------------------
      
      llvm-svn: 222691
      e222c9e1
    • Daniel Sanders's avatar
      Merging r217147: · a5166ef9
      Daniel Sanders authored
      ------------------------------------------------------------------------
      r217147 | dsanders | 2014-09-04 14:28:14 +0100 (Thu, 04 Sep 2014) | 18 lines
      
      [mips] Zero-sized structs cannot be ignored in MipsABIInfo::classifyReturnType() for O32
      
      Summary:
      They are returned indirectly which causes the other arguments to move to
      the next argument slot.
      
      With this, utils/ABITest does not discover any failing cases in the first
      500 attempts on big/little endian for O32. Previously some of these failed.
      Also tested N32/N64 little endian (big endian has other known issues) with
      no issues.
      
      Reviewers: atanasyan
      
      Reviewed By: atanasyan
      
      Subscribers: atanasyan, cfe-commits
      
      Differential Revision: http://reviews.llvm.org/D4811
      ------------------------------------------------------------------------
      
      llvm-svn: 222690
      a5166ef9
    • Daniel Sanders's avatar
      Merging r214662: · 98def300
      Daniel Sanders authored
      ------------------------------------------------------------------------
      r214662 | atanasyan | 2014-08-03 17:11:05 +0100 (Sun, 03 Aug 2014) | 2 lines
      
      [Mips] Add the `mips64-linux-gnu` target to the test case to check `in128`
      type handling.
      ------------------------------------------------------------------------
      
      llvm-svn: 222689
      98def300
    • Daniel Sanders's avatar
      Merging r214025: · 1c81157a
      Daniel Sanders authored
      ------------------------------------------------------------------------
      r214025 | atanasyan | 2014-07-26 10:52:21 +0100 (Sat, 26 Jul 2014) | 4 lines
      
      [Driver][Mips] Check output of -dynamic-linker arguments by the Clang driver
      for a couple of MIPS toolchains.
      
      No functional changes.
      ------------------------------------------------------------------------
      
      llvm-svn: 222686
      1c81157a
  5. Nov 11, 2014
    • Tom Stellard's avatar
      Merging r220148: · 322fcb0c
      Tom Stellard authored
      ------------------------------------------------------------------------
      r220148 | me | 2014-10-18 19:36:12 -0400 (Sat, 18 Oct 2014) | 6 lines
      
      New round of fixes for "Always compile debuginfo-tests for the host triple"
      
      clang tests were breaking, at least when compiling clang only, from an
      installed llvm. Make the lit.cfg script deal with the case when we don't
      have a host_triple available.
      
      ------------------------------------------------------------------------
      
      llvm-svn: 221618
      322fcb0c
    • Tom Stellard's avatar
      Merging r220112: · aacbb875
      Tom Stellard authored
      ------------------------------------------------------------------------
      r220112 | me | 2014-10-17 19:50:47 -0400 (Fri, 17 Oct 2014) | 2 lines
      
      Fix makefile for debuginfo-tests execution.
      
      ------------------------------------------------------------------------
      
      llvm-svn: 221617
      aacbb875
    • Tom Stellard's avatar
      Merging r219989: · 06d5a61a
      Tom Stellard authored
      ------------------------------------------------------------------------
      r219989 | me | 2014-10-16 19:41:40 -0400 (Thu, 16 Oct 2014) | 2 lines
      
      Added %itanium_abi_host_triple to fix debuginfo-tests when clang is a cross-compiler by default
      
      ------------------------------------------------------------------------
      
      llvm-svn: 221616
      06d5a61a
  6. Nov 06, 2014
    • Tom Stellard's avatar
      Merging r220401: · 971e92b4
      Tom Stellard authored
      ------------------------------------------------------------------------
      r220401 | mail | 2014-10-22 14:18:54 -0400 (Wed, 22 Oct 2014) | 6 lines
      
      test: Make this test runnable in directories with @ in their names
      
      Jenkins likes to use directories with names involving the '@'
      character, which breaks the sed expression in this test. Switch to use
      '|' on the assumption that it's less likely to show up in a path.
      
      ------------------------------------------------------------------------
      
      llvm-svn: 221390
      971e92b4
  7. Nov 04, 2014
    • Hans Wennborg's avatar
      Merging r220874: · 4b156f75
      Hans Wennborg authored
      ------------------------------------------------------------------------
      r220874 | hans | 2014-10-29 14:20:57 -0700 (Wed, 29 Oct 2014) | 3 lines
      
      Follow-up to r216619: use isCXXCLassMember() instead of trying to
      check the context ourselves when selectively allowing late-added
      dll attributes on unused free functions and variables (PR20746)
      ------------------------------------------------------------------------
      
      llvm-svn: 221253
      4b156f75
  8. Nov 01, 2014
  9. Sep 30, 2014
    • Hans Wennborg's avatar
      Merging r216619: · 2bf62cbd
      Hans Wennborg authored
      ------------------------------------------------------------------------
      r216619 | hans | 2014-08-27 14:27:40 -0700 (Wed, 27 Aug 2014) | 7 lines
      
      Allow adding dll attributes on certain redecls with a warning if the decl hasn't been used yet (PR20746)
      
      This shouldn't really be allowed, but it comes up in real code (see PR). As
      long as the decl hasn't been used there's no technical difficulty in supporting
      it, so downgrade the error to a warning.
      
      Differential Revision: http://reviews.llvm.org/D5087
      ------------------------------------------------------------------------
      
      llvm-svn: 218644
      2bf62cbd
  10. Sep 12, 2014
    • Dan Liew's avatar
      Merging r217490: · 484f12f6
      Dan Liew authored
      ------------------------------------------------------------------------
      r217490 | delcypher | 2014-09-10 12:09:23 +0100 (Wed, 10 Sep 2014) | 4 lines
      
      Don't attempt to run llvm-config in cmake/modules/Makefile when doing
      ``make clean`` because it won't be available.
      
      This is an attempt to unbreak buildbots broken by r217484.
      ------------------------------------------------------------------------
      
      llvm-svn: 217640
      484f12f6
    • Dan Liew's avatar
      Merging r217484: · f0154914
      Dan Liew authored
      ------------------------------------------------------------------------
      r217484 | delcypher | 2014-09-10 11:18:59 +0100 (Wed, 10 Sep 2014) | 13 lines
      
      Attempt to fix PR20884
      
      This fixes the generation of broken LLVMExports.cmake file by
      the Autoconf/Makefile build system when --enable-shared is passed to
      configure.
      
      When --enable_shared is passed the Makefile.rules does not set the
      LLVMConfigLibs variable which cmake/modules/Makefile previously relied
      on. Now it runs the llvm-config command itself to get the library names.
      
      This still isn't perfect because the generated LLVM targets refer to the
      static libraries and not the shared library but that is much larger
      problem to fix.
      ------------------------------------------------------------------------
      
      llvm-svn: 217638
      f0154914
  11. Sep 06, 2014
  12. Sep 05, 2014
  13. Sep 03, 2014
  14. Aug 31, 2014
  15. Aug 30, 2014
  16. Aug 28, 2014
    • Bill Wendling's avatar
      Merging r216572: · 83f8b92b
      Bill Wendling authored
      ------------------------------------------------------------------------
      r216572 | chandlerc | 2014-08-27 11:21:27 -0700 (Wed, 27 Aug 2014) | 3 lines
      
      Fix PR20773 which I introduced with a silly edit mistake in r216531.
      Trivial fix, and I've made the gentoo tests more representative. With
      the changes, they would have caught this failure.
      ------------------------------------------------------------------------
      
      llvm-svn: 216588
      83f8b92b
    • Bill Wendling's avatar
      Merging r216531: · d2cd7c59
      Bill Wendling authored
      ------------------------------------------------------------------------
      r216531 | chandlerc | 2014-08-27 01:41:41 -0700 (Wed, 27 Aug 2014) | 22 lines
      
      Significantly fix Clang's header search for Ubuntu (and possibly other
      modern Debian-based distributions) due to on-going multiarch madness.
      
      It appears that when the multiarch heeader search support went into the
      clang driver, it went in in a quite bad state. The order of includes
      completely failed to match the order exhibited by GCC, and in a specific
      case -- when the GCC triple and the multiarch triple don't match as with
      i686-linux-gnu and i386-linux-gnu -- we would absolutely fail to find
      the libstdc++ target-specific header files.
      
      I assume that folks who have been using Clang on Ubuntu 32-bit systems
      have been applying weird patches to hack around this. I can't imagine
      how else it could have worked. This was originally reported by a 64-bit
      operating system user who had a 32-bit crosscompiler installed. We tried
      to use that rather than the bi-arch support of the 64-bit compiler, but
      failed due to the triple differences.
      
      I've corrected all the wrong orderings in the existing tests and added
      a specific test for the multiarch triple strings that are different in
      a significant way. This should significantly improve the usability of
      Clang when checked out vanilla from upstream onto Ubuntu machines with
      an i686 GCC installation for whatever reason.
      ------------------------------------------------------------------------
      
      llvm-svn: 216587
      d2cd7c59
    • Michael Wong's avatar
      updated with clang openmp notes by Michael Wong · 76d25814
      Michael Wong authored
      llvm-svn: 216578
      76d25814
  17. Aug 23, 2014
  18. Aug 21, 2014
    • Bill Wendling's avatar
      Merging r216064: · 368a2bed
      Bill Wendling authored
      ------------------------------------------------------------------------
      r216064 | kongyi | 2014-08-20 03:40:20 -0700 (Wed, 20 Aug 2014) | 9 lines
      
      ARM: Fix codegen for rbit intrinsic
      
      LLVM generates illegal `rbit r0, #352` instruction for rbit intrinsic.
      According to ARM ARM, rbit only takes register as argument, not immediate.
      The correct instruction should be rbit <Rd>, <Rm>.
      
      The bug was originally introduced in r211057.
      
      Differential Revision: http://reviews.llvm.org/D4980
      ------------------------------------------------------------------------
      
      llvm-svn: 216089
      368a2bed
  19. Aug 20, 2014