diff options
| author | Jason Henline <jhen@google.com> | 2016-08-16 18:18:32 +0000 |
|---|---|---|
| committer | Jason Henline <jhen@google.com> | 2016-08-16 18:18:32 +0000 |
| commit | a91dc70b18dd129761b66c1b76cbe64f54cd2eb1 (patch) | |
| tree | dcf6d82e7fe839a990e720b231193ee7fc71066f /parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp | |
| parent | 1d01a793042d3d0566b009915529ab4559ea72a9 (diff) | |
| download | bcm5719-llvm-a91dc70b18dd129761b66c1b76cbe64f54cd2eb1.tar.gz bcm5719-llvm-a91dc70b18dd129761b66c1b76cbe64f54cd2eb1.zip | |
[StreamExecutor] Rename StreamExecutor to Executor
Summary: No functional changes just renaming this class for better readability.
Reviewers: jlebar
Subscribers: jprice, parallel_libs-commits
Differential Revision: https://reviews.llvm.org/D23574
llvm-svn: 278833
Diffstat (limited to 'parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp')
| -rw-r--r-- | parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp b/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp index 9974e994023..b5ee8a0cbfc 100644 --- a/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp +++ b/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp @@ -14,10 +14,10 @@ #include <cassert> +#include "streamexecutor/Executor.h" #include "streamexecutor/Kernel.h" #include "streamexecutor/KernelSpec.h" #include "streamexecutor/PlatformInterfaces.h" -#include "streamexecutor/StreamExecutor.h" #include "llvm/ADT/STLExtras.h" @@ -27,7 +27,7 @@ namespace { namespace se = ::streamexecutor; -// A StreamExecutor that returns a dummy KernelInterface. +// An Executor that returns a dummy KernelInterface. // // During construction it creates a unique_ptr to a dummy KernelInterface and it // also stores a separate copy of the raw pointer that is stored by that @@ -39,11 +39,11 @@ namespace se = ::streamexecutor; // object. The raw pointer copy can then be used to identify the unique_ptr in // its new location (by comparing the raw pointer with unique_ptr::get), to // verify that the unique_ptr ended up where it was supposed to be. -class MockStreamExecutor : public se::StreamExecutor { +class MockExecutor : public se::Executor { public: - MockStreamExecutor() - : se::StreamExecutor(nullptr), - Unique(llvm::make_unique<se::KernelInterface>()), Raw(Unique.get()) {} + MockExecutor() + : se::Executor(nullptr), Unique(llvm::make_unique<se::KernelInterface>()), + Raw(Unique.get()) {} // Moves the unique pointer into the returned se::Expected instance. // @@ -51,7 +51,7 @@ public: // out. se::Expected<std::unique_ptr<se::KernelInterface>> getKernelImplementation(const se::MultiKernelLoaderSpec &) override { - assert(Unique && "MockStreamExecutor getKernelImplementation should not be " + assert(Unique && "MockExecutor getKernelImplementation should not be " "called more than once"); return std::move(Unique); } @@ -79,10 +79,10 @@ TYPED_TEST_CASE(GetImplementationTest, GetImplementationTypes); // Tests that the kernel create functions properly fetch the implementation // pointers for the kernel objects they construct from the passed-in -// StreamExecutor objects. +// Executor objects. TYPED_TEST(GetImplementationTest, SetImplementationDuringCreate) { se::MultiKernelLoaderSpec Spec; - MockStreamExecutor MockExecutor; + MockExecutor MockExecutor; auto MaybeKernel = TypeParam::create(&MockExecutor, Spec); EXPECT_TRUE(static_cast<bool>(MaybeKernel)); |

