diff options
| author | Jacques Pienaar <jpienaar@google.com> | 2019-08-17 11:05:35 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-08-17 11:06:03 -0700 |
| commit | 79f53b0cf1fd204af0a09c8e085dd09a1ce0b6d9 (patch) | |
| tree | 066738742712f75cc95b5ea30ae10d9a9c379d8b /mlir/lib/ExecutionEngine | |
| parent | dbf8538b64a61d0b93420b293b8508b158377757 (diff) | |
| download | bcm5719-llvm-79f53b0cf1fd204af0a09c8e085dd09a1ce0b6d9.tar.gz bcm5719-llvm-79f53b0cf1fd204af0a09c8e085dd09a1ce0b6d9.zip | |
Change from llvm::make_unique to std::make_unique
Switch to C++14 standard method as llvm::make_unique has been removed (
https://reviews.llvm.org/D66259). Also mark some targets as c++14 to ease next
integrates.
PiperOrigin-RevId: 263953918
Diffstat (limited to 'mlir/lib/ExecutionEngine')
| -rw-r--r-- | mlir/lib/ExecutionEngine/ExecutionEngine.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp index 99bf43de8c1..4450bf4d403 100644 --- a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp @@ -132,13 +132,13 @@ public: : irTransformer(transform), objectLayer( session, - [this]() { return llvm::make_unique<MemoryManager>(session); }), + [this]() { return std::make_unique<MemoryManager>(session); }), compileLayer( session, objectLayer, llvm::orc::ConcurrentIRCompiler(std::move(machineBuilder))), transformLayer(session, compileLayer, makeIRTransformFunction()), dataLayout(layout), mangler(session, this->dataLayout), - threadSafeCtx(llvm::make_unique<llvm::LLVMContext>()) { + threadSafeCtx(std::make_unique<llvm::LLVMContext>()) { session.getMainJITDylib().addGenerator( cantFail(llvm::orc::DynamicLibrarySearchGenerator::GetForCurrentProcess( layout.getGlobalPrefix()))); @@ -156,9 +156,9 @@ public: if (!dataLayout) return dataLayout.takeError(); - return llvm::make_unique<OrcJIT>(std::move(*machineBuilder), - std::move(*dataLayout), transformer, - sharedLibPaths); + return std::make_unique<OrcJIT>(std::move(*machineBuilder), + std::move(*dataLayout), transformer, + sharedLibPaths); } // Add an LLVM module to the main library managed by the JIT engine. @@ -328,7 +328,7 @@ Expected<std::unique_ptr<ExecutionEngine>> ExecutionEngine::create(ModuleOp m, std::function<llvm::Error(llvm::Module *)> transformer, ArrayRef<StringRef> sharedLibPaths) { - auto engine = llvm::make_unique<ExecutionEngine>(); + auto engine = std::make_unique<ExecutionEngine>(); auto expectedJIT = impl::OrcJIT::createDefault(transformer, sharedLibPaths); if (!expectedJIT) return expectedJIT.takeError(); |

