Skip to content
  1. Nov 18, 2016
    • Justin Lebar's avatar
      [CUDA] Attempt to fix test failures in cuda-macos-includes.cu. · fbe0a576
      Justin Lebar authored
      Run clang -cc1 -E instead of -S, in an attempt to make this test work
      cross-platform.
      
      llvm-svn: 287292
      fbe0a576
    • John McCall's avatar
      Forward ns_consumed delegate arguments with a move. · 811b291d
      John McCall authored
      StartFunction enters a release cleanup for ns_consumed arguments in
      ARC, so we need to balance that somehow.  We could teach StartFunction
      that it's emitting a delegating function, so that the cleanup is
      unnecessary, but that would be invasive and somewhat fraught.  We could
      balance the consumed argument with an extra retain, but clearing the
      original variable should be easier to optimize and avoid some extra work
      at -O0.  And there shouldn't be any difference as long as nothing else
      uses the argument, which should always be true for the places we emit
      delegate arguments.
      
      Fixes PR 27887.
      
      llvm-svn: 287291
      811b291d
    • Justin Lebar's avatar
      [CUDA] Update docs to indicate that MacOS is now supported. · 2d229200
      Justin Lebar authored
      llvm-svn: 287290
      2d229200
    • Justin Lebar's avatar
      [CUDA] Update docs; CUDA 8.0 is supported as of a while ago. · 7880141d
      Justin Lebar authored
      llvm-svn: 287289
      7880141d
    • Justin Lebar's avatar
      [CUDA] Wrapper header changes necessary to support MacOS. · 50fe9853
      Justin Lebar authored
      Reviewers: tra
      
      Subscribers: cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D26780
      
      llvm-svn: 287288
      50fe9853
    • Justin Lebar's avatar
      [CUDA] Use the right section and constant names for fatbins when compiling for macos. · d14fe883
      Justin Lebar authored
      Reviewers: tra
      
      Subscribers: cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D26777
      
      llvm-svn: 287287
      d14fe883
    • Justin Lebar's avatar
      [CUDA] Initialize our header search using the host triple. · f91086b0
      Justin Lebar authored
      Summary:
      This used to work because system headers are found in a (somewhat)
      predictable set of locations on Linux.  But this is not the case on
      MacOS; without this change, we don't look in the right places for our
      headers when doing device-side compilation on Mac.
      
      Reviewers: tra
      
      Subscribers: cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D26776
      
      llvm-svn: 287286
      f91086b0
    • Justin Lebar's avatar
      [CUDA] Driver changes to support CUDA compilation on MacOS. · 66c4fd79
      Justin Lebar authored
      Summary:
      Compiling CUDA device code requires us to know the host toolchain,
      because CUDA device-side compiles pull in e.g. host headers.
      
      When we only supported Linux compilation, this worked because
      CudaToolChain, which is responsible for device-side CUDA compilation,
      inherited from the Linux toolchain.  But in order to support MacOS,
      CudaToolChain needs to take a HostToolChain pointer.
      
      Because a CUDA toolchain now requires a host TC, we no longer will
      create a CUDA toolchain from Driver::getToolChain -- you have to go
      through CreateOffloadingDeviceToolChains.  I am *pretty* sure this is
      correct, and that previously any attempt to create a CUDA toolchain
      through getToolChain() would eventually have resulted in us throwing
      "error: unsupported use of NVPTX for host compilation".
      
      In any case hacking getToolChain to create a CUDA+host toolchain would
      be wrong, because a Driver can be reused for multiple compilations,
      potentially with different host TCs, and getToolChain will cache the
      result, causing us to potentially use a stale host TC.
      
      So that's the main change in this patch.
      
      In addition, we have to pull CudaInstallationDetector out of Generic_GCC
      and into a top-level class.  It's now used by the Generic_GCC and MachO
      toolchains.
      
      Reviewers: tra
      
      Subscribers: rryan, hfinkel, sfantao
      
      Differential Revision: https://reviews.llvm.org/D26774
      
      llvm-svn: 287285
      66c4fd79
    • Rafael Espindola's avatar
      Add missing REQUIRES. · 25a41c1f
      Rafael Espindola authored
      llvm-svn: 287284
      25a41c1f
    • Saleem Abdulrasool's avatar
      EHABI: mark some functions as exported · f27bfd25
      Saleem Abdulrasool authored
      These are part of the EHABI specification and are exported to be available to
      users.  Mark them as `_LIBUNWIND_EXPORT` like the rest of the unwind interfaces.
      
      llvm-svn: 287283
      f27bfd25
    • Zachary Turner's avatar
      Resubmit "Change RegisterValue getters / setters to use StringRef." · ac96f66a
      Zachary Turner authored
      This resubmits r287279 with a fix for the original issue, which
      was a trivial typo.
      
      llvm-svn: 287282
      ac96f66a
    • Zachary Turner's avatar
      Revert "Change RegisterValue getters / setters to use StringRef." · 8df8046b
      Zachary Turner authored
      This reverts commit r287279, which breaks some register
      tests on Linux.
      
      llvm-svn: 287281
      8df8046b
    • Rafael Espindola's avatar
      Always compute sh_link for SHF_LINK_ORDER sections. · 933fcab2
      Rafael Espindola authored
      Since the output has a section table too, it is meaningful to compute
      the sh_link. In a more practical note, the binutils' strip crashes if
      sh_link is not set for SHT_ARM_EXIDX.
      
      llvm-svn: 287280
      933fcab2
    • Zachary Turner's avatar
      Change RegisterValue getters / setters to use StringRef. · b379d7df
      Zachary Turner authored
      In the process, found some functions that were duplicates of
      existing StringRef member functions.  So deleted those functions
      and used the StringRef functions instead.
      
      llvm-svn: 287279
      b379d7df
    • Ekaterina Romanova's avatar
      Minor changes in x86 intrinsics headers; NFC · 2174b6fe
      Ekaterina Romanova authored
      I made several changes for consistency with the rest of x86 instrinsics header files. Some of these changes help to render doxygen comments better.
      
      1. avxintrin.h –  Moved the opening bracket on a separate line for several 
                        intrinsics (for consistency with the rest of the intrinsics).
      
      2. emmintrin.h -  Moved the doxygen comment next to the body of the function;
                     -  Added braces after extern "C"  even though there is only 
                        one declaration each time
      
      3. xmmintrin.h -  Moved the doxygen comment next to the body of the function;
                     -  Added intrinsic prototypes for a couple of macro definitions
                        into the doxygen comment;
                     -  Added braces after extern "C"  even though there is only one
                        declaration each time
      
      4. ammintrin.h –  Removed extra line between the doxygen comment and the body
                        of the functions (for consistency with the rest of the files).
      
      Desk reviewed by Paul Robinson.
      
      llvm-svn: 287278
      2174b6fe
  2. Nov 17, 2016
Loading