Skip to content

Add missing declarations of explicit template instantiations. #86591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

tkoeppe
Copy link
Contributor

@tkoeppe tkoeppe commented Mar 25, 2024

Found with -Wundefined-func-template.

@llvmbot
Copy link
Member

llvmbot commented Mar 25, 2024

@llvm/pr-subscribers-mlir-presburger

@llvm/pr-subscribers-mlir

Author: Thomas Köppe (tkoeppe)

Changes

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 --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).

@tkoeppe
Copy link
Contributor Author

tkoeppe commented Mar 26, 2024

Thanks! I don't have commit access; would someone be able to merge this?

@joker-eph joker-eph merged commit c48aa78 into llvm:main Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants