From 7f7be19e6a5e0ebb3af04a624996fbc7cd06f209 Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Thu, 17 Jun 2021 14:33:59 -0700 Subject: [PATCH] [mlir] Add notes about using external interface application. Differential Revision: https://reviews.llvm.org/D104489 --- mlir/docs/Interfaces.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mlir/docs/Interfaces.md b/mlir/docs/Interfaces.md index bcc9938df8a1..9943019a10f7 100644 --- a/mlir/docs/Interfaces.md +++ b/mlir/docs/Interfaces.md @@ -292,6 +292,12 @@ int main() { } ``` +Note: It is strongly encouraged to only use this mechanism if you "own" the +interface being externally applied. This prevents a situation where neither the +owner of the dialect containing the object nor the owner of the interface are +aware of an interface implementation, which can lead to duplicate or +diverging implementations. + #### Dialect Fallback for OpInterface Some dialects have an open ecosystem and don't register all of the possible