This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] Added -f[no-]cuda-short-ptr option
ClosedPublic

Authored by tra on Apr 26 2018, 3:20 PM.

Details

Summary

The option enables use of 32-bit pointers for accessing
const/local/shared memory. The feature is disabled by default.

Diff Detail

Repository
rL LLVM

Event Timeline

tra created this revision.Apr 26 2018, 3:20 PM
tra updated this revision to Diff 144216.Apr 26 2018, 3:24 PM

Removed debug printout.

bkramer accepted this revision.Apr 27 2018, 2:00 PM

lgtm

This revision is now accepted and ready to land.Apr 27 2018, 2:00 PM
tra updated this revision to Diff 144419.Apr 27 2018, 4:30 PM
tra added a subscriber: arsenm.

Do not use subtarget feature to control codegen of short pointers.
Instead we need to add a field to TargetOptions which is the only way to pass this info to NVPTXTargetInfo constructor where we calculate DataLayout.

This revision was automatically updated to reflect the committed changes.