This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] Let NVPTX inherit the host's calling conventions.
ClosedPublic

Authored by jlebar on Jan 4 2017, 2:00 PM.

Details

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.)

Event Timeline

jlebar updated this revision to Diff 83130.Jan 4 2017, 2:00 PM
jlebar retitled this revision from to [CUDA] Let NVPTX inherit the host's calling conventions..
jlebar updated this object.
jlebar added a reviewer: tra.
jlebar added a subscriber: cfe-commits.
tra accepted this revision.Jan 4 2017, 5:10 PM
tra edited edge metadata.
This revision is now accepted and ready to land.Jan 4 2017, 5:10 PM
This revision was automatically updated to reflect the committed changes.