HomePhabricator

[OpenCL] AMDGCN: Fix size_t type

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

Details

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