llvm-project/clang/test/CodeGenOpenCLCXX
Melanie Blower 320af6b138 Create SPIRABIInfo to enable SPIR_FUNC calling convention.
Background: Call to library arithmetic functions for div is emitted by the
compiler and it set wrong “C” calling convention for calls to these functions,
whereas library functions are declared with `spir_function` calling convention.
InstCombine optimization replaces such calls with “unreachable” instruction.
It looks like clang lacks SPIRABIInfo class which should specify default
calling conventions for “system” function calls. SPIR supports only
SPIR_FUNC and SPIR_KERNEL calling convention.

Reviewers: Erich Keane, Anastasia

Differential Revision: https://reviews.llvm.org/D92721
2020-12-12 05:48:20 -08:00
..
address-space-castoperators.cpp [OpenCL] Rename lang mode flag for C++ mode 2019-07-25 11:04:29 +00:00
address-space-deduction.cl [OpenCL] Handle address space conversions for constexpr (PR44177) 2019-12-09 11:09:16 +00:00
address-space-deduction2.cl [OpenCL] Rename lang mode flag for C++ mode 2019-07-25 11:04:29 +00:00
addrspace-conversion.cl [OpenCL] Rename lang mode flag for C++ mode 2019-07-25 11:04:29 +00:00
addrspace-derived-base.cl [CodeGen] Apply 'nonnull' and 'dereferenceable(N)' to 'this' pointer 2020-11-16 17:39:17 -08:00
addrspace-of-this.cl [CodeGen] Apply 'nonnull' and 'dereferenceable(N)' to 'this' pointer 2020-11-16 17:39:17 -08:00
addrspace-operators.cl [CodeGen] Apply 'nonnull' and 'dereferenceable(N)' to 'this' pointer 2020-11-16 17:39:17 -08:00
addrspace-references.cl [CGCall] Annotate references with "align" attribute. 2020-05-19 20:21:30 -07:00
addrspace-with-class.cl [CodeGen] Apply 'nonnull' and 'dereferenceable(N)' to 'this' pointer 2020-11-16 17:39:17 -08:00
addrspace_cast.cl [OpenCL] Added addrspace_cast operator in C++ mode. 2020-05-18 12:07:54 +01:00
atexit.cl Create SPIRABIInfo to enable SPIR_FUNC calling convention. 2020-12-12 05:48:20 -08:00
constexpr.cl [OpenCL] Support vec_step in C++ for OpenCL mode 2020-11-05 12:02:59 +00:00
global_init.cl [OpenCL] Rename lang mode flag for C++ mode 2019-07-25 11:04:29 +00:00
local_addrspace_init.cl [OpenCL] Rename lang mode flag for C++ mode 2019-07-25 11:04:29 +00:00
method-overload-address-space.cl [CodeGen] Apply 'nonnull' and 'dereferenceable(N)' to 'this' pointer 2020-11-16 17:39:17 -08:00
template-address-spaces.cl [CodeGen] Apply 'nonnull' and 'dereferenceable(N)' to 'this' pointer 2020-11-16 17:39:17 -08:00