[Mlir-commits] [mlir] 171ab1b - Add explicit template instantiation declarations for existing explicit definitions.
David Blaikie
llvmlistbot at llvm.org
Fri Dec 23 12:08:37 PST 2022
Author: David Blaikie
Date: 2022-12-23T20:07:59Z
New Revision: 171ab1bc181258d6c47d1237250c7b36178a2bf7
URL: https://github.com/llvm/llvm-project/commit/171ab1bc181258d6c47d1237250c7b36178a2bf7
DIFF: https://github.com/llvm/llvm-project/commit/171ab1bc181258d6c47d1237250c7b36178a2bf7.diff
LOG: Add explicit template instantiation declarations for existing explicit definitions.
Explicit instantiations should be declared. Found with -Wundefined-func-template.
Reviewed By: dblaikie, rriddle
Differential Revision: https://reviews.llvm.org/D140594
Added:
Modified:
mlir/include/mlir/IR/Dominance.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/Dominance.h b/mlir/include/mlir/IR/Dominance.h
index d94d5be3c53e..30f5674ad71d 100644
--- a/mlir/include/mlir/IR/Dominance.h
+++ b/mlir/include/mlir/IR/Dominance.h
@@ -24,6 +24,7 @@
extern template class llvm::DominatorTreeBase<mlir::Block, false>;
extern template class llvm::DominatorTreeBase<mlir::Block, true>;
+extern template class llvm::DomTreeNodeBase<mlir::Block>;
namespace mlir {
using DominanceInfoNode = llvm::DomTreeNodeBase<Block>;
@@ -109,6 +110,9 @@ class DominanceInfoBase {
mutable DenseMap<Region *, llvm::PointerIntPair<DomTree *, 1, bool>>
dominanceInfos;
};
+
+extern template class DominanceInfoBase</*IsPostDom=*/true>;
+extern template class DominanceInfoBase</*IsPostDom=*/false>;
} // namespace detail
/// A class for computing basic dominance information. Note that this
More information about the Mlir-commits
mailing list