[PATCH] D26196: [WIP] Add support for non-zero null pointers

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 7 14:04:00 PST 2016


yaxunl retitled this revision from "AMDGPU: Translate null pointers in private and local addr space" to "[WIP] Add support for non-zero null pointers".
yaxunl updated this revision to Diff 77097.
yaxunl added a comment.

This is work in progress. Revised by John's comments.

Refactored getNullPtr to add a QualType parameter for the original pointer type in source language.
Added support of non-zero null pointer in default initialization of global variables, including struct and array types.


https://reviews.llvm.org/D26196

Files:
  lib/CodeGen/CGDecl.cpp
  lib/CodeGen/CGExprConstant.cpp
  lib/CodeGen/CGExprScalar.cpp
  lib/CodeGen/CodeGenModule.h
  lib/CodeGen/CodeGenTypes.cpp
  lib/CodeGen/TargetInfo.cpp
  lib/CodeGen/TargetInfo.h
  test/CodeGenOpenCL/amdgpu-nullptr.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26196.77097.patch
Type: text/x-patch
Size: 27254 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161107/98953fd5/attachment-0001.bin>


More information about the cfe-commits mailing list