This is an archive of the discontinued LLVM Phabricator instance.

[SE] Clean up device and host memory slices
ClosedPublic

Authored by jhen on Sep 12 2016, 9:37 AM.

Details

Summary
  • Add LLVM_ATTRIBUTE_UNUSED_RESULT used to slicing methods in order to emphasize that the slicing is not done in place.
  • Change device memory slice function name from drop_front to slice in order to match the naming convention of llvm::ArrayRef and host memory slice.
  • Change the parameter names of host memory slice functions to DropCount and TakeCount to match device memory slice declarations.

Diff Detail

Repository
rL LLVM

Event Timeline

jhen updated this revision to Diff 71025.Sep 12 2016, 9:37 AM
jhen retitled this revision from to [SE] Clean up device and host memory slices.
jhen updated this object.
jhen added a reviewer: jlebar.
jhen added subscribers: parallel_libs-commits, jprice.
jlebar accepted this revision.Sep 12 2016, 9:56 AM
jlebar edited edge metadata.
This revision is now accepted and ready to land.Sep 12 2016, 9:56 AM
This revision was automatically updated to reflect the committed changes.