[PATCH] Added support for CUDA __launch_bounds__ attribute to CodeGen.

Manjunath Kudlur keveman at gmail.com
Tue Apr 8 10:18:01 PDT 2014


Hi eliben,

Added support for CUDA __launch_bounds__ attribute to CodeGen.
Sema does have a CUDALaunchBoundsAttr, but CodeGen was doing nothing with it.
This change translates CUDALaunchBoundsAttr to maxntidx and minctasm
metadata, which NVPTX then translates to the correct PTX directives.

http://reviews.llvm.org/D3318

Files:
  lib/CodeGen/TargetInfo.cpp
  test/CodeGenCUDA/launch-bounds.cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3318.1.patch
Type: text/x-patch
Size: 3921 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140408/586c3cb9/attachment.bin>


More information about the cfe-commits mailing list