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
This commit is contained in:
Jacques Pienaar 2019-03-19 12:05:11 -07:00 committed by jpienaar
parent 30e68230bd
commit a8ed2ca8fd
3 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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");

View File

@ -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;
}