diff options
| author | Jason Henline <jhen@google.com> | 2016-10-25 20:38:08 +0000 |
|---|---|---|
| committer | Jason Henline <jhen@google.com> | 2016-10-25 20:38:08 +0000 |
| commit | b3f709e10f37225ae65c1d48c4623f6abc2cac1e (patch) | |
| tree | 935df072bbc2ee7873c138dd75f04a32d96c2249 /parallel-libs/streamexecutor/lib/Kernel.cpp | |
| parent | 209a77d8d9247b7612025a15f0b4c18bc49e66eb (diff) | |
| download | bcm5719-llvm-b3f709e10f37225ae65c1d48c4623f6abc2cac1e.tar.gz bcm5719-llvm-b3f709e10f37225ae65c1d48c4623f6abc2cac1e.zip | |
[SE] Remove StreamExecutor
Summary:
The project has been renamed to Acxxel, so this old directory needs to
be deleted.
Reviewers: jlebar, jprice
Subscribers: beanz, mgorny, parallel_libs-commits, modocache
Differential Revision: https://reviews.llvm.org/D25964
llvm-svn: 285115
Diffstat (limited to 'parallel-libs/streamexecutor/lib/Kernel.cpp')
| -rw-r--r-- | parallel-libs/streamexecutor/lib/Kernel.cpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/parallel-libs/streamexecutor/lib/Kernel.cpp b/parallel-libs/streamexecutor/lib/Kernel.cpp deleted file mode 100644 index 911ac6656aa..00000000000 --- a/parallel-libs/streamexecutor/lib/Kernel.cpp +++ /dev/null @@ -1,60 +0,0 @@ -//===-- Kernel.cpp - General kernel implementation ------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -/// -/// \file -/// This file contains the implementation details for kernel types. -/// -//===----------------------------------------------------------------------===// - -#include <cassert> - -#include "streamexecutor/Device.h" -#include "streamexecutor/Kernel.h" -#include "streamexecutor/PlatformDevice.h" - -#include "llvm/DebugInfo/Symbolize/Symbolize.h" - -namespace streamexecutor { - -KernelBase::KernelBase(PlatformDevice *D, const void *PlatformKernelHandle, - llvm::StringRef Name) - : PDevice(D), PlatformKernelHandle(PlatformKernelHandle), Name(Name), - DemangledName( - llvm::symbolize::LLVMSymbolizer::DemangleName(Name, nullptr)) { - assert(D != nullptr && - "cannot construct a kernel object with a null platform device"); - assert(PlatformKernelHandle != nullptr && - "cannot construct a kernel object with a null platform kernel handle"); -} - -KernelBase::KernelBase(KernelBase &&Other) noexcept - : PDevice(Other.PDevice), PlatformKernelHandle(Other.PlatformKernelHandle), - Name(std::move(Other.Name)), - DemangledName(std::move(Other.DemangledName)) { - Other.PDevice = nullptr; - Other.PlatformKernelHandle = nullptr; -} - -KernelBase &KernelBase::operator=(KernelBase &&Other) noexcept { - PDevice = Other.PDevice; - PlatformKernelHandle = Other.PlatformKernelHandle; - Name = std::move(Other.Name); - DemangledName = std::move(Other.DemangledName); - Other.PDevice = nullptr; - Other.PlatformKernelHandle = nullptr; - return *this; -} - -KernelBase::~KernelBase() { - if (PlatformKernelHandle) - // TODO(jhen): Handle the error here. - consumeError(PDevice->destroyKernel(PlatformKernelHandle)); -} - -} // namespace streamexecutor |

