[Mlir-commits] [mlir] 75488a2 - [mlir][nfc] Migrate standalone to new fold API

Marius Brehler llvmlistbot at llvm.org
Mon Jan 30 02:06:11 PST 2023


Author: Marius Brehler
Date: 2023-01-30T10:05:59Z
New Revision: 75488a287b9ceeab88459c32bf2f6b7fee98f46a

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

LOG: [mlir][nfc] Migrate standalone to new fold API

Migrates the standalone sample/dialect to the new fold API, see
https://discourse.llvm.org/t/psa-new-improved-fold-method-signature-has-landed-please-update-your-downstream-projects/67618

Added: 
    

Modified: 
    mlir/examples/standalone/include/Standalone/StandaloneDialect.td

Removed: 
    


################################################################################
diff  --git a/mlir/examples/standalone/include/Standalone/StandaloneDialect.td b/mlir/examples/standalone/include/Standalone/StandaloneDialect.td
index 158860134ea47..fd5fcb0506d01 100644
--- a/mlir/examples/standalone/include/Standalone/StandaloneDialect.td
+++ b/mlir/examples/standalone/include/Standalone/StandaloneDialect.td
@@ -24,6 +24,8 @@ def Standalone_Dialect : Dialect {
         working inside of the LLVM source tree.
     }];
     let cppNamespace = "::mlir::standalone";
+
+    let useFoldAPI = kEmitFoldAdaptorFolder;
 }
 
 //===----------------------------------------------------------------------===//


        


More information about the Mlir-commits mailing list