[Mlir-commits] [mlir] 3fcdd18 - NFC: Callout restriction on folding 0-result ops in documentation.

Stella Laurenzo llvmlistbot at llvm.org
Fri Nov 19 12:35:18 PST 2021


Author: Stella Laurenzo
Date: 2021-11-19T20:35:01Z
New Revision: 3fcdd182e9784cb9c2d7ff54b44ec00bd6c91a87

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

LOG: NFC: Callout restriction on folding 0-result ops in documentation.

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

Added: 
    

Modified: 
    mlir/docs/Canonicalization.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/Canonicalization.md b/mlir/docs/Canonicalization.md
index f2f6d7d751f5a..1b017ad905117 100644
--- a/mlir/docs/Canonicalization.md
+++ b/mlir/docs/Canonicalization.md
@@ -161,6 +161,7 @@ Otherwise, the following is generated:
 ///     the operation, partial folding is not supported. The caller will remove
 ///     the operation and use those results instead.
 ///
+/// Note that this mechanism cannot be used to remove 0-result operations.
 LogicalResult MyOp::fold(ArrayRef<Attribute> operands,
                          SmallVectorImpl<OpFoldResult> &results) {
   ...


        


More information about the Mlir-commits mailing list