HomePhabricator

[OpenCL] AMDGCN: Fix size_t type

Authored by yaxunl on Aug 18 2016, 12:34 PM.

Description

[OpenCL] AMDGCN: Fix size_t type

Pointers of certain GPUs in AMDGCN target in private address space is 32 bit but pointers in other address spaces are 64 bit. size_t type should be defined as 64 bit for these GPUs so that it could hold pointers in all address spaces. Also fixed issues in pointer arithmetic codegen by using pointer specific intptr type.

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

llvm-svn: 279121

Details

Committed
yaxunlAug 18 2016, 12:34 PM
Differential Revision
D23361: [OpenCL] AMDGCN: Fix size_t type
Parents
rG9e60a2ad734e: Resubmit "[Tooling] Parse compilation database command lines on Windows."
Branches
Unknown
Tags
Unknown