]> granicus.if.org Git - clang/commit
[CUDA] Let NVPTX inherit the host's calling conventions.
authorJustin Lebar <jlebar@google.com>
Thu, 5 Jan 2017 16:53:38 +0000 (16:53 +0000)
committerJustin Lebar <jlebar@google.com>
Thu, 5 Jan 2017 16:53:38 +0000 (16:53 +0000)
commit6f52d3c5b4969cbed606a750364e5e3901860877
tree1276b06c42216bcba5056e6a2a43999aef9a2c2f
parentbd340f16a9137c20e1ec9403036a7bcd5c52e44f
[CUDA] Let NVPTX inherit the host's calling conventions.

Summary:
When compiling device code, we may still see host code with explicit
calling conventions.  NVPTX needs to claim that it supports these CCs,
so that (a) we don't raise noisy warnings, and (b) we don't break
existing code which relies on the existence of these CCs when
specializing templates.  (If a CC doesn't exist, clang ignores it, so
two template specializations which are different only insofar as one
specifies a CC are considered identical and therefore are an error if
that CC is not supported.)

Reviewers: tra

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D28323

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291136 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/SemaCUDA/cuda-inherits-calling-conv.cu [new file with mode: 0644]