This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Make 0 the private nullptr value
ClosedPublic

Authored by arsenm on Feb 23 2017, 5:07 PM.

Details

Reviewers
yaxunl

Diff Detail

Event Timeline

arsenm created this revision.Feb 23 2017, 5:07 PM
yaxunl accepted this revision.Feb 24 2017, 11:43 AM

LGTM. Thanks! I assume you will make corresponding changes in backend.

This revision is now accepted and ready to land.Feb 24 2017, 11:43 AM

LGTM. Thanks! I assume you will make corresponding changes in backend.

This is to match r295891, so then D28937 is required to fix addrspacecast

AMDGPUTargetMachine::getNullPointerValue needs also be changed to match this, otherwise the static initializer will be incorrect for null pointer to private addr space. Do you plan to change that?

AMDGPUTargetMachine::getNullPointerValue needs also be changed to match this, otherwise the static initializer will be incorrect for null pointer to private addr space. Do you plan to change that?

Yes, that came after I posted the initial version. I need to update to re-use that

arsenm closed this revision.Mar 13 2017, 1:00 PM

r297658, r297659