[Mlir-commits] [mlir] c266c56 - [mlir][doc] Correct method names in DialectConversion.md to match the code.

Hanhan Wang llvmlistbot at llvm.org
Wed Dec 2 00:04:24 PST 2020


Author: Hanhan Wang
Date: 2020-12-02T00:04:07-08:00
New Revision: c266c56d545dfecf767b312771f716b394c5d5eb

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

LOG: [mlir][doc] Correct method names in DialectConversion.md to match the code.

Reviewed By: rriddle

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

Added: 
    

Modified: 
    mlir/docs/DialectConversion.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/DialectConversion.md b/mlir/docs/DialectConversion.md
index 4d3be5ed2a98..120ae957c34a 100644
--- a/mlir/docs/DialectConversion.md
+++ b/mlir/docs/DialectConversion.md
@@ -84,17 +84,17 @@ struct MyTarget : public ConversionTarget {
     // Marking an operation as Legal:
 
     /// Mark all operations within the LLVM dialect are legal.
-    addLegalDialects<LLVMDialect>();
+    addLegalDialect<LLVMDialect>();
 
     /// Mark `std.constant` op is always legal on this target.
-    addLegalOps<ConstantOp>();
+    addLegalOp<ConstantOp>();
 
     //--------------------------------------------------------------------------
     // Marking an operation as dynamically legal.
 
     /// Mark all operations within Affine dialect have dynamic legality
     /// constraints.
-    addDynamicallyLegalDialects<AffineDialect>();
+    addDynamicallyLegalDialect<AffineDialect>();
 
     /// Mark `std.return` as dynamically legal.
     addDynamicallyLegalOp<ReturnOp>();


        


More information about the Mlir-commits mailing list