mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 00:46:45 +08:00
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:
committed by
jpienaar
parent
30e68230bd
commit
a8ed2ca8fd
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user