This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] Make tensor load/store intrinsics overloaded.
ClosedPublic

Authored by tra on Feb 13 2018, 4:30 PM.

Details

Summary

This way we can support address-space specific variants without explicitly encoding the space in the name of the intrinsic. Less intrinsics to deal with -> less boilerplate.

Added a bit of tablegen magic to match/replace an intrinsics with a pointer argument in particular address space with the space-specific instruction variant.

Updated tests to use non-default address spaces.

Diff Detail

Repository
rL LLVM

Event Timeline

tra created this revision.Feb 13 2018, 4:30 PM
jlebar accepted this revision.Feb 15 2018, 11:48 AM
jlebar added inline comments.
llvm/lib/Target/NVPTX/NVPTXIntrinsics.td
7590 ↗(On Diff #134145)

nit: missing space

This revision is now accepted and ready to land.Feb 15 2018, 11:48 AM
tra updated this revision to Diff 134482.Feb 15 2018, 11:52 AM
tra marked an inline comment as done.

whitespace fix.

This revision was automatically updated to reflect the committed changes.