[StreamExecutor] Pass device memory by ref
authorJason Henline <jhen@google.com>
Fri, 2 Sep 2016 00:25:52 +0000 (00:25 +0000)
committerJason Henline <jhen@google.com>
Fri, 2 Sep 2016 00:25:52 +0000 (00:25 +0000)
commitc15c9ebb1d51d55564889a567aa70e9b42319b9b
tree8f6185b0bd5b8cba96dd9ba63a5fe0425061bf62
parent3efddd22b911f5b572d5d6a8a4d13e7caa7e9fb2
[StreamExecutor] Pass device memory by ref

Summary:
Step 3 of getting GlobalDeviceMemory to own its handle.

Since GlobalDeviceMemory will no longer by copy-constructible, we must
pass instances by reference rather than by value.

Reviewers: jlebar

Subscribers: jprice, parallel_libs-commits

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

llvm-svn: 280439
parallel-libs/streamexecutor/include/streamexecutor/Device.h
parallel-libs/streamexecutor/include/streamexecutor/DeviceMemory.h
parallel-libs/streamexecutor/include/streamexecutor/Stream.h