diff options
| author | Jacques Pienaar <jpienaar@google.com> | 2019-03-19 12:05:11 -0700 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 17:25:24 -0700 |
| commit | a8ed2ca8fdcc46a1e9597bcf92afe9e7ee56d0dc (patch) | |
| tree | cbbe46441ad188cd19e15e9db68c6dbebb77bbbd | |
| parent | 30e68230bd34b5eb29ecdacb64e7b0a8f8584140 (diff) | |
| download | bcm5719-llvm-a8ed2ca8fdcc46a1e9597bcf92afe9e7ee56d0dc.tar.gz bcm5719-llvm-a8ed2ca8fdcc46a1e9597bcf92afe9e7ee56d0dc.zip | |
Cleanup for changes failing with std=c++11
The static constexpr were failing with undefined reference due to lacking definition at namespace scope.
PiperOrigin-RevId: 239241157
| -rw-r--r-- | mlir/lib/Pass/Pass.cpp | 2 | ||||
| -rw-r--r-- | mlir/lib/Transforms/LoopTiling.cpp | 3 | ||||
| -rw-r--r-- | mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/mlir/lib/Pass/Pass.cpp b/mlir/lib/Pass/Pass.cpp index 1420f4a83d6..fe114f09d77 100644 --- a/mlir/lib/Pass/Pass.cpp +++ b/mlir/lib/Pass/Pass.cpp @@ -343,3 +343,5 @@ void PassInstrumentor::addInstrumentation(PassInstrumentation *pi) { llvm::sys::SmartScopedLock<true> instrumentationLock(impl->mutex); impl->instrumentations.emplace_back(pi); } + +constexpr AnalysisID mlir::detail::PreservedAnalyses::allAnalysesID; diff --git a/mlir/lib/Transforms/LoopTiling.cpp b/mlir/lib/Transforms/LoopTiling.cpp index 76ab91641f3..9c97c1b6c74 100644 --- a/mlir/lib/Transforms/LoopTiling.cpp +++ b/mlir/lib/Transforms/LoopTiling.cpp @@ -405,4 +405,7 @@ void LoopTiling::runOnFunction() { } } +constexpr unsigned LoopTiling::kDefaultTileSize; +constexpr uint64_t LoopTiling::kDefaultCacheMemCapacity; + static PassRegistration<LoopTiling> pass("loop-tile", "Tile loop nests"); diff --git a/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp b/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp index 8fd1cac201c..af6fc581cfd 100644 --- a/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp +++ b/mlir/lib/Transforms/Vectorization/VectorizerTestPass.cpp @@ -139,7 +139,7 @@ void VectorizerTestPass::testVectorShapeRatio(Function *f) { static std::string toString(Instruction *inst) { std::string res; - auto os = llvm::raw_string_ostream(res); + llvm::raw_string_ostream os(res); inst->print(os); return res; } |

