[SE] Clean up device and host memory slices
authorJason Henline <jhen@google.com>
Mon, 12 Sep 2016 17:20:43 +0000 (17:20 +0000)
committerJason Henline <jhen@google.com>
Mon, 12 Sep 2016 17:20:43 +0000 (17:20 +0000)
commitc16fb8748d0e8bbc72853f26cda012302206359b
tree55eba552d323f2ee4d3450deadd6261ede4bcf73
parent8d4be3aacf48db17b3c7429492ed1a36264fe30a
[SE] Clean up device and host memory slices

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.

Reviewers: jlebar

Subscribers: jprice, parallel_libs-commits

Differential Revision: https://reviews.llvm.org/D24464

llvm-svn: 281239
parallel-libs/streamexecutor/include/streamexecutor/DeviceMemory.h
parallel-libs/streamexecutor/include/streamexecutor/HostMemory.h
parallel-libs/streamexecutor/unittests/CoreTests/DeviceTest.cpp
parallel-libs/streamexecutor/unittests/CoreTests/StreamTest.cpp