[Mlir-commits] [mlir] 5934394 - [mlir][doc] Remove section about now removed `useFoldAPI` option

Markus Böck llvmlistbot at llvm.org
Thu Feb 23 15:36:24 PST 2023


Author: Markus Böck
Date: 2023-02-24T00:36:14+01:00
New Revision: 59343943cf6a32076035100c13a131bc7693f6fb

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

LOG: [mlir][doc] Remove section about now removed `useFoldAPI` option

Added: 
    

Modified: 
    mlir/docs/DefiningDialects/_index.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/DefiningDialects/_index.md b/mlir/docs/DefiningDialects/_index.md
index ca07c33dc7e94..0f2b9455d7723 100644
--- a/mlir/docs/DefiningDialects/_index.md
+++ b/mlir/docs/DefiningDialects/_index.md
@@ -255,31 +255,6 @@ LogicalResult MyDialect::verifyRegionResultAttribute(Operation *op, unsigned reg
                                                      unsigned argIndex, NamedAttribute attribute);
 ```
 
-#### `useFoldAPI`
-
-There are currently two possible values that are allowed to be assigned to this
-field:
-* `kEmitFoldAdaptorFolder` generates a `fold` method making use of the op's 
-  `FoldAdaptor` to allow access of operands via convenient getter.
-
-  Generated code example:
-  ```cpp
-  OpFoldResult fold(FoldAdaptor adaptor);
-  // or
-  LogicalResult fold(FoldAdaptor adaptor, SmallVectorImpl<OpFoldResult>& results);
-  ```
-* `kEmitRawAttributesFolder` generates the deprecated legacy `fold`
-  method, containing `ArrayRef<Attribute>` in the parameter list instead of
-  the op's `FoldAdaptor`. This API is scheduled for removal and should not be 
-  used by new dialects.
-
-  Generated code example:
-  ```cpp
-  OpFoldResult fold(ArrayRef<Attribute> operands);
-  // or
-  LogicalResult fold(ArrayRef<Attribute> operands, SmallVectorImpl<OpFoldResult>& results);
-  ```
-
 ### Operation Interface Fallback
 
 Some dialects have an open ecosystem and don't register all of the possible operations. In such


        


More information about the Mlir-commits mailing list