diff options
| author | Jason Henline <jhen@google.com> | 2016-08-24 21:31:53 +0000 |
|---|---|---|
| committer | Jason Henline <jhen@google.com> | 2016-08-24 21:31:53 +0000 |
| commit | bcc77b6249a6f193f7322dbb3fdf77482d67bbee (patch) | |
| tree | 0cc0ad0c30836983a7421f25febc7794a2ed55b4 /parallel-libs/streamexecutor/lib/Executor.cpp | |
| parent | 571a6478538ba4802ae19b488c3b3f1e0ae710c6 (diff) | |
| download | bcm5719-llvm-bcc77b6249a6f193f7322dbb3fdf77482d67bbee.tar.gz bcm5719-llvm-bcc77b6249a6f193f7322dbb3fdf77482d67bbee.zip | |
[StreamExecutor] Rename Executor to Device
Summary: This more clearly describes what the class is.
Reviewers: jlebar
Subscribers: jprice, parallel_libs-commits
Differential Revision: https://reviews.llvm.org/D23851
llvm-svn: 279669
Diffstat (limited to 'parallel-libs/streamexecutor/lib/Executor.cpp')
| -rw-r--r-- | parallel-libs/streamexecutor/lib/Executor.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/parallel-libs/streamexecutor/lib/Executor.cpp b/parallel-libs/streamexecutor/lib/Executor.cpp deleted file mode 100644 index f103a76a4d9..00000000000 --- a/parallel-libs/streamexecutor/lib/Executor.cpp +++ /dev/null @@ -1,41 +0,0 @@ -//===-- Executor.cpp - Executor implementation ----------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -/// -/// \file -/// Implementation of Executor class internals. -/// -//===----------------------------------------------------------------------===// - -#include "streamexecutor/Executor.h" - -#include <cassert> - -#include "streamexecutor/PlatformInterfaces.h" -#include "streamexecutor/Stream.h" - -#include "llvm/ADT/STLExtras.h" - -namespace streamexecutor { - -Executor::Executor(PlatformExecutor *PExecutor) : PExecutor(PExecutor) {} - -Executor::~Executor() = default; - -Expected<std::unique_ptr<Stream>> Executor::createStream() { - Expected<std::unique_ptr<PlatformStreamHandle>> MaybePlatformStream = - PExecutor->createStream(); - if (!MaybePlatformStream) { - return MaybePlatformStream.takeError(); - } - assert((*MaybePlatformStream)->getExecutor() == PExecutor && - "an executor created a stream with a different stored executor"); - return llvm::make_unique<Stream>(std::move(*MaybePlatformStream)); -} - -} // namespace streamexecutor |

