[Mlir-commits] [mlir] Add missing declarations of explicit template instantiations. (PR #86591)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Mar 25 15:29:02 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Thomas Köppe (tkoeppe)

<details>
<summary>Changes</summary>

Found with `-Wundefined-func-template`.

---
Full diff: https://github.com/llvm/llvm-project/pull/86591.diff


1 Files Affected:

- (modified) mlir/include/mlir/Analysis/Presburger/Matrix.h (+3) 


``````````diff
diff --git a/mlir/include/mlir/Analysis/Presburger/Matrix.h b/mlir/include/mlir/Analysis/Presburger/Matrix.h
index 4484ebc747e61c..c20a7bcecd52dc 100644
--- a/mlir/include/mlir/Analysis/Presburger/Matrix.h
+++ b/mlir/include/mlir/Analysis/Presburger/Matrix.h
@@ -244,6 +244,9 @@ class Matrix {
   SmallVector<T, 16> data;
 };
 
+extern template class Matrix<MPInt>;
+extern template class Matrix<Fraction>;
+
 // An inherited class for integer matrices, with no new data attributes.
 // This is only used for the matrix-related methods which apply only
 // to integers (hermite normal form computation and row normalisation).

``````````

</details>


https://github.com/llvm/llvm-project/pull/86591


More information about the Mlir-commits mailing list