[Mlir-commits] [mlir] 88125e8 - [mlir] Fix attachInterface typo

Logan Chien llvmlistbot at llvm.org
Tue Aug 24 15:18:49 PDT 2021


Author: Logan Chien
Date: 2021-08-24T15:17:52-07:00
New Revision: 88125e8af1d275733380cd9d651cabab969b10f8

URL: https://github.com/llvm/llvm-project/commit/88125e8af1d275733380cd9d651cabab969b10f8
DIFF: https://github.com/llvm/llvm-project/commit/88125e8af1d275733380cd9d651cabab969b10f8.diff

LOG: [mlir] Fix attachInterface typo

This commit fixes the documentation typo regarding `attachInterface`.

Differential Revision: https://reviews.llvm.org/D108666

Added: 
    

Modified: 
    mlir/docs/Interfaces.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/Interfaces.md b/mlir/docs/Interfaces.md
index 9943019a10f7f..7a6f7835fe651 100644
--- a/mlir/docs/Interfaces.md
+++ b/mlir/docs/Interfaces.md
@@ -285,10 +285,10 @@ int main() {
   MLIRContext context;
   /* ... */;
 
-  // Register the interface model with the type in the given context before
-  // using it. The dialect contaiing the type is expected to have been loaded
+  // Attach the interface model to the type in the given context before
+  // using it. The dialect containing the type is expected to have been loaded
   // at this point.
-  IntegerType::registerInterface<ExternalModelExample>(context);
+  IntegerType::attachInterface<ExternalModelExample>(context);
 }
 ```
 


        


More information about the Mlir-commits mailing list