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/Conversion/LoopsToGPU/LoopsToGPUPass.cpp | |
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/Conversion/LoopsToGPU/LoopsToGPUPass.cpp')
-rw-r--r-- | mlir/lib/Conversion/LoopsToGPU/LoopsToGPUPass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/Conversion/LoopsToGPU/LoopsToGPUPass.cpp b/mlir/lib/Conversion/LoopsToGPU/LoopsToGPUPass.cpp index 36869b87f1a..4b241e497c6 100644 --- a/mlir/lib/Conversion/LoopsToGPU/LoopsToGPUPass.cpp +++ b/mlir/lib/Conversion/LoopsToGPU/LoopsToGPUPass.cpp @@ -69,11 +69,11 @@ struct ForLoopMapper : public FunctionPass<ForLoopMapper> { std::unique_ptr<FunctionPassBase> mlir::createSimpleLoopsToGPUPass(unsigned numBlockDims, unsigned numThreadDims) { - return llvm::make_unique<ForLoopMapper>(numBlockDims, numThreadDims); + return std::make_unique<ForLoopMapper>(numBlockDims, numThreadDims); } static PassRegistration<ForLoopMapper> registration(PASS_NAME, "Convert top-level loops to GPU kernels", [] { - return llvm::make_unique<ForLoopMapper>(clNumBlockDims.getValue(), - clNumThreadDims.getValue()); + return std::make_unique<ForLoopMapper>(clNumBlockDims.getValue(), + clNumThreadDims.getValue()); }); |