HomePhabricator

[CUDA][HIP] Check calling convention based on function target

Authored by yaxunl on Feb 26 2019, 2:24 PM.

Description

[CUDA][HIP] Check calling convention based on function target

MSVC header files using vectorcall to differentiate overloaded functions, which
causes failure for AMDGPU target. This is because clang does not check function
calling convention based on function target.

This patch checks calling convention using the proper target info.

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

llvm-svn: 354929