HomePhabricator

[OpenCL] Use long instead of long long in x86 builtins

Description

[OpenCL] Use long instead of long long in x86 builtins

Summary: According to C99 standard long long is at least 64 bits in
size. However, OpenCL C defines long long as 128 bit signed
integer. This prevents one to use x86 builtins when compiling OpenCL C
code for x86 targets. The patch changes long long to long for OpenCL
only.

Patch by: Alexander Batashev <alexander.batashev@intel.com>

Reviewers: craig.topper, Ka-Ka, eandrews, erichkeane, Anastasia

Reviewed By: Ka-Ka, erichkeane, Anastasia

Subscribers: a.elovikov, yaxunl, Anastasia, cfe-commits, ivankara, etyurin, asavonic

Tags: #clang

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

Details

Committed
asavonicJun 3 2019, 5:34 AM
Reviewer
Ka-Ka
Differential Revision
D62580: [OpenCL] Use long instead of long long in x86 builtins
Parents
rL362390: AMDGPU/GFX10: V_CMPX_xxx instructions still have an omod operand
Branches
Unknown
Tags
Unknown