[PATCH] D68031: [CUDA][HIP] Enable kernel function return type deduction.

Michael Liao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 25 08:40:43 PDT 2019


hliao created this revision.
hliao added reviewers: tra, jlebar.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

- Even though only `void` is still accepted as the deduced return type, enabling deduction/instantiation on the return type allows more consistent coding.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68031

Files:
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/lib/Sema/SemaExpr.cpp
  clang/lib/Sema/SemaStmt.cpp
  clang/lib/Sema/SemaTemplateDeduction.cpp
  clang/test/SemaCUDA/autoret-global.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68031.221781.patch
Type: text/x-patch
Size: 4233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190925/f2ec956b/attachment.bin>


More information about the cfe-commits mailing list