diff --git a/flang/include/flang/Optimizer/CodeGen/CGOps.td b/flang/include/flang/Optimizer/CodeGen/CGOps.td --- a/flang/include/flang/Optimizer/CodeGen/CGOps.td +++ b/flang/include/flang/Optimizer/CodeGen/CGOps.td @@ -20,7 +20,6 @@ def fircg_Dialect : Dialect { let name = "fircg"; let cppNamespace = "::fir::cg"; - let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for FIR CG operations. diff --git a/flang/include/flang/Optimizer/Dialect/FIRDialect.td b/flang/include/flang/Optimizer/Dialect/FIRDialect.td --- a/flang/include/flang/Optimizer/Dialect/FIRDialect.td +++ b/flang/include/flang/Optimizer/Dialect/FIRDialect.td @@ -31,7 +31,6 @@ // supported by some FIR operations. "arith::ArithDialect" ]; - let useFoldAPI = kEmitFoldAdaptorFolder; } #endif // FORTRAN_DIALECT_FIR_DIALECT diff --git a/flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td b/flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td --- a/flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td +++ b/flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td @@ -39,7 +39,6 @@ let useDefaultTypePrinterParser = 1; let cppNamespace = "hlfir"; - let useFoldAPI = kEmitFoldAdaptorFolder; } diff --git a/mlir/examples/standalone/include/Standalone/StandaloneDialect.td b/mlir/examples/standalone/include/Standalone/StandaloneDialect.td --- a/mlir/examples/standalone/include/Standalone/StandaloneDialect.td +++ b/mlir/examples/standalone/include/Standalone/StandaloneDialect.td @@ -25,7 +25,6 @@ }]; let cppNamespace = "::mlir::standalone"; - let useFoldAPI = kEmitFoldAdaptorFolder; } //===----------------------------------------------------------------------===// diff --git a/mlir/examples/toy/Ch2/include/toy/Ops.td b/mlir/examples/toy/Ch2/include/toy/Ops.td --- a/mlir/examples/toy/Ch2/include/toy/Ops.td +++ b/mlir/examples/toy/Ch2/include/toy/Ops.td @@ -23,7 +23,6 @@ def Toy_Dialect : Dialect { let name = "toy"; let cppNamespace = "::mlir::toy"; - let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for toy dialect operations. This operation inherits from the base diff --git a/mlir/examples/toy/Ch3/include/toy/Ops.td b/mlir/examples/toy/Ch3/include/toy/Ops.td --- a/mlir/examples/toy/Ch3/include/toy/Ops.td +++ b/mlir/examples/toy/Ch3/include/toy/Ops.td @@ -22,7 +22,6 @@ def Toy_Dialect : Dialect { let name = "toy"; let cppNamespace = "::mlir::toy"; - let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for toy dialect operations. This operation inherits from the base diff --git a/mlir/examples/toy/Ch4/include/toy/Ops.td b/mlir/examples/toy/Ch4/include/toy/Ops.td --- a/mlir/examples/toy/Ch4/include/toy/Ops.td +++ b/mlir/examples/toy/Ch4/include/toy/Ops.td @@ -25,7 +25,6 @@ def Toy_Dialect : Dialect { let name = "toy"; let cppNamespace = "::mlir::toy"; - let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for toy dialect operations. This operation inherits from the base diff --git a/mlir/examples/toy/Ch5/include/toy/Ops.td b/mlir/examples/toy/Ch5/include/toy/Ops.td --- a/mlir/examples/toy/Ch5/include/toy/Ops.td +++ b/mlir/examples/toy/Ch5/include/toy/Ops.td @@ -25,7 +25,6 @@ def Toy_Dialect : Dialect { let name = "toy"; let cppNamespace = "::mlir::toy"; - let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for toy dialect operations. This operation inherits from the base diff --git a/mlir/examples/toy/Ch6/include/toy/Ops.td b/mlir/examples/toy/Ch6/include/toy/Ops.td --- a/mlir/examples/toy/Ch6/include/toy/Ops.td +++ b/mlir/examples/toy/Ch6/include/toy/Ops.td @@ -25,7 +25,6 @@ def Toy_Dialect : Dialect { let name = "toy"; let cppNamespace = "::mlir::toy"; - let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for toy dialect operations. This operation inherits from the base diff --git a/mlir/examples/toy/Ch7/include/toy/Ops.td b/mlir/examples/toy/Ch7/include/toy/Ops.td --- a/mlir/examples/toy/Ch7/include/toy/Ops.td +++ b/mlir/examples/toy/Ch7/include/toy/Ops.td @@ -34,7 +34,6 @@ // and printing hooks. let useDefaultTypePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for toy dialect operations. This operation inherits from the base diff --git a/mlir/include/mlir/Dialect/AMDGPU/AMDGPU.td b/mlir/include/mlir/Dialect/AMDGPU/AMDGPU.td --- a/mlir/include/mlir/Dialect/AMDGPU/AMDGPU.td +++ b/mlir/include/mlir/Dialect/AMDGPU/AMDGPU.td @@ -28,7 +28,6 @@ "arith::ArithDialect" ]; let useDefaultAttributePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } //===----------------------------------------------------------------------===// diff --git a/mlir/include/mlir/Dialect/AMX/AMX.td b/mlir/include/mlir/Dialect/AMX/AMX.td --- a/mlir/include/mlir/Dialect/AMX/AMX.td +++ b/mlir/include/mlir/Dialect/AMX/AMX.td @@ -56,7 +56,6 @@ https://software.intel.com/content/www/us/en/develop/articles/intel-sdm.html }]; - let useFoldAPI = kEmitFoldAdaptorFolder; } //===----------------------------------------------------------------------===// diff --git a/mlir/include/mlir/Dialect/Affine/IR/AffineOps.td b/mlir/include/mlir/Dialect/Affine/IR/AffineOps.td --- a/mlir/include/mlir/Dialect/Affine/IR/AffineOps.td +++ b/mlir/include/mlir/Dialect/Affine/IR/AffineOps.td @@ -24,7 +24,6 @@ let cppNamespace = "mlir"; let hasConstantMaterializer = 1; let dependentDialects = ["arith::ArithDialect"]; - let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for Affine dialect ops. diff --git a/mlir/include/mlir/Dialect/Arith/IR/ArithBase.td b/mlir/include/mlir/Dialect/Arith/IR/ArithBase.td --- a/mlir/include/mlir/Dialect/Arith/IR/ArithBase.td +++ b/mlir/include/mlir/Dialect/Arith/IR/ArithBase.td @@ -24,7 +24,6 @@ let hasConstantMaterializer = 1; let useDefaultAttributePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } // The predicate indicates the type of the comparison to perform: diff --git a/mlir/include/mlir/Dialect/ArmNeon/ArmNeon.td b/mlir/include/mlir/Dialect/ArmNeon/ArmNeon.td --- a/mlir/include/mlir/Dialect/ArmNeon/ArmNeon.td +++ b/mlir/include/mlir/Dialect/ArmNeon/ArmNeon.td @@ -25,7 +25,6 @@ let name = "arm_neon"; let cppNamespace = "::mlir::arm_neon"; - let useFoldAPI = kEmitFoldAdaptorFolder; // Note: this does not need to depend on LLVMDialect as long as functions in // this dialect (such as canonicalization) do not produce entities belonging diff --git a/mlir/include/mlir/Dialect/ArmSVE/ArmSVE.td b/mlir/include/mlir/Dialect/ArmSVE/ArmSVE.td --- a/mlir/include/mlir/Dialect/ArmSVE/ArmSVE.td +++ b/mlir/include/mlir/Dialect/ArmSVE/ArmSVE.td @@ -29,7 +29,6 @@ scalable vector operations. }]; - let useFoldAPI = kEmitFoldAdaptorFolder; } //===----------------------------------------------------------------------===// diff --git a/mlir/include/mlir/Dialect/Async/IR/AsyncDialect.td b/mlir/include/mlir/Dialect/Async/IR/AsyncDialect.td --- a/mlir/include/mlir/Dialect/Async/IR/AsyncDialect.td +++ b/mlir/include/mlir/Dialect/Async/IR/AsyncDialect.td @@ -29,7 +29,6 @@ }]; let useDefaultTypePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; let extraClassDeclaration = [{ /// The name of a unit attribute on funcs that are allowed to have a diff --git a/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationBase.td b/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationBase.td --- a/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationBase.td +++ b/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationBase.td @@ -69,7 +69,6 @@ kEscapeAttrName = "bufferization.escape"; }]; let hasOperationAttrVerify = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } #endif // BUFFERIZATION_BASE diff --git a/mlir/include/mlir/Dialect/Complex/IR/ComplexBase.td b/mlir/include/mlir/Dialect/Complex/IR/ComplexBase.td --- a/mlir/include/mlir/Dialect/Complex/IR/ComplexBase.td +++ b/mlir/include/mlir/Dialect/Complex/IR/ComplexBase.td @@ -22,7 +22,6 @@ let dependentDialects = ["arith::ArithDialect"]; let hasConstantMaterializer = 1; let useDefaultAttributePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } #endif // COMPLEX_BASE diff --git a/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td b/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td --- a/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td +++ b/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td @@ -29,7 +29,6 @@ on SSA blocks of a control flow graph. }]; - let useFoldAPI = kEmitFoldAdaptorFolder; } class CF_Op traits = []> : diff --git a/mlir/include/mlir/Dialect/DLTI/DLTIBase.td b/mlir/include/mlir/Dialect/DLTI/DLTIBase.td --- a/mlir/include/mlir/Dialect/DLTI/DLTIBase.td +++ b/mlir/include/mlir/Dialect/DLTI/DLTIBase.td @@ -37,7 +37,6 @@ }]; let useDefaultAttributePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } def DLTI_DataLayoutEntryAttr : DialectAttr< diff --git a/mlir/include/mlir/Dialect/EmitC/IR/EmitCBase.td b/mlir/include/mlir/Dialect/EmitC/IR/EmitCBase.td --- a/mlir/include/mlir/Dialect/EmitC/IR/EmitCBase.td +++ b/mlir/include/mlir/Dialect/EmitC/IR/EmitCBase.td @@ -31,7 +31,6 @@ let hasConstantMaterializer = 1; let useDefaultTypePrinterParser = 1; let useDefaultAttributePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } #endif // MLIR_DIALECT_EMITC_IR_EMITCBASE diff --git a/mlir/include/mlir/Dialect/Func/IR/FuncOps.td b/mlir/include/mlir/Dialect/Func/IR/FuncOps.td --- a/mlir/include/mlir/Dialect/Func/IR/FuncOps.td +++ b/mlir/include/mlir/Dialect/Func/IR/FuncOps.td @@ -23,7 +23,6 @@ let cppNamespace = "::mlir::func"; let dependentDialects = ["cf::ControlFlowDialect"]; let hasConstantMaterializer = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for Func dialect ops. diff --git a/mlir/include/mlir/Dialect/GPU/IR/GPUBase.td b/mlir/include/mlir/Dialect/GPU/IR/GPUBase.td --- a/mlir/include/mlir/Dialect/GPU/IR/GPUBase.td +++ b/mlir/include/mlir/Dialect/GPU/IR/GPUBase.td @@ -57,7 +57,6 @@ let dependentDialects = ["arith::ArithDialect"]; let useDefaultAttributePrinterParser = 1; let useDefaultTypePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } //===----------------------------------------------------------------------===// diff --git a/mlir/include/mlir/Dialect/Index/IR/IndexDialect.td b/mlir/include/mlir/Dialect/Index/IR/IndexDialect.td --- a/mlir/include/mlir/Dialect/Index/IR/IndexDialect.td +++ b/mlir/include/mlir/Dialect/Index/IR/IndexDialect.td @@ -83,7 +83,6 @@ let hasConstantMaterializer = 1; let useDefaultAttributePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } #endif // INDEX_DIALECT diff --git a/mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td b/mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td --- a/mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td +++ b/mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td @@ -31,7 +31,6 @@ let hasRegionArgAttrVerify = 1; let hasRegionResultAttrVerify = 1; let hasOperationAttrVerify = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; let extraClassDeclaration = [{ /// Name of the data layout attributes. diff --git a/mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td b/mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td --- a/mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td +++ b/mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td @@ -29,7 +29,6 @@ let cppNamespace = "::mlir::NVVM"; let dependentDialects = ["LLVM::LLVMDialect"]; let hasOperationAttrVerify = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; let extraClassDeclaration = [{ /// Get the name of the attribute used to annotate external kernel diff --git a/mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td b/mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td --- a/mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td +++ b/mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td @@ -25,7 +25,6 @@ let cppNamespace = "::mlir::ROCDL"; let dependentDialects = ["LLVM::LLVMDialect"]; let hasOperationAttrVerify = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; let extraClassDeclaration = [{ /// Get the name of the attribute used to annotate external kernel diff --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgBase.td b/mlir/include/mlir/Dialect/Linalg/IR/LinalgBase.td --- a/mlir/include/mlir/Dialect/Linalg/IR/LinalgBase.td +++ b/mlir/include/mlir/Dialect/Linalg/IR/LinalgBase.td @@ -46,7 +46,6 @@ let hasCanonicalizer = 1; let hasOperationAttrVerify = 1; let hasConstantMaterializer = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; let extraClassDeclaration = [{ /// Attribute name used to to memoize indexing maps for named ops. constexpr const static ::llvm::StringLiteral diff --git a/mlir/include/mlir/Dialect/MLProgram/IR/MLProgramBase.td b/mlir/include/mlir/Dialect/MLProgram/IR/MLProgramBase.td --- a/mlir/include/mlir/Dialect/MLProgram/IR/MLProgramBase.td +++ b/mlir/include/mlir/Dialect/MLProgram/IR/MLProgramBase.td @@ -29,7 +29,6 @@ let useDefaultAttributePrinterParser = 1; let useDefaultTypePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } #endif // MLPROGRAM_BASE diff --git a/mlir/include/mlir/Dialect/Math/IR/MathBase.td b/mlir/include/mlir/Dialect/Math/IR/MathBase.td --- a/mlir/include/mlir/Dialect/Math/IR/MathBase.td +++ b/mlir/include/mlir/Dialect/Math/IR/MathBase.td @@ -30,6 +30,5 @@ ``` }]; let hasConstantMaterializer = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } #endif // MATH_BASE diff --git a/mlir/include/mlir/Dialect/MemRef/IR/MemRefBase.td b/mlir/include/mlir/Dialect/MemRef/IR/MemRefBase.td --- a/mlir/include/mlir/Dialect/MemRef/IR/MemRefBase.td +++ b/mlir/include/mlir/Dialect/MemRef/IR/MemRefBase.td @@ -21,7 +21,6 @@ }]; let dependentDialects = ["arith::ArithDialect"]; let hasConstantMaterializer = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } #endif // MEMREF_BASE diff --git a/mlir/include/mlir/Dialect/NVGPU/IR/NVGPU.td b/mlir/include/mlir/Dialect/NVGPU/IR/NVGPU.td --- a/mlir/include/mlir/Dialect/NVGPU/IR/NVGPU.td +++ b/mlir/include/mlir/Dialect/NVGPU/IR/NVGPU.td @@ -36,7 +36,6 @@ }]; let useDefaultTypePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; let extraClassDeclaration = [{ /// Return true if the given MemRefType has an integer address diff --git a/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td b/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td --- a/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td +++ b/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td @@ -26,7 +26,6 @@ }]; let useDefaultAttributePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; let cppNamespace = "::mlir::acc"; } diff --git a/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td b/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td --- a/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td +++ b/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td @@ -28,7 +28,6 @@ let cppNamespace = "::mlir::omp"; let dependentDialects = ["::mlir::LLVM::LLVMDialect"]; let useDefaultAttributePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } // OmpCommon requires definition of OpenACC_Dialect. diff --git a/mlir/include/mlir/Dialect/PDL/IR/PDLDialect.td b/mlir/include/mlir/Dialect/PDL/IR/PDLDialect.td --- a/mlir/include/mlir/Dialect/PDL/IR/PDLDialect.td +++ b/mlir/include/mlir/Dialect/PDL/IR/PDLDialect.td @@ -66,7 +66,6 @@ let cppNamespace = "::mlir::pdl"; let useDefaultTypePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; let extraClassDeclaration = [{ void registerTypes(); }]; diff --git a/mlir/include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.td b/mlir/include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.td --- a/mlir/include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.td +++ b/mlir/include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.td @@ -38,7 +38,6 @@ let name = "pdl_interp"; let cppNamespace = "::mlir::pdl_interp"; let dependentDialects = ["pdl::PDLDialect"]; - let useFoldAPI = kEmitFoldAdaptorFolder; let extraClassDeclaration = [{ /// Returns the name of the function containing the matcher code. This /// function is called by the interpreter when matching an operation. diff --git a/mlir/include/mlir/Dialect/Quant/QuantOpsBase.td b/mlir/include/mlir/Dialect/Quant/QuantOpsBase.td --- a/mlir/include/mlir/Dialect/Quant/QuantOpsBase.td +++ b/mlir/include/mlir/Dialect/Quant/QuantOpsBase.td @@ -20,7 +20,6 @@ let cppNamespace = "::mlir::quant"; let useDefaultTypePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } //===----------------------------------------------------------------------===// diff --git a/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td b/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td --- a/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td +++ b/mlir/include/mlir/Dialect/SCF/IR/SCFOps.td @@ -26,7 +26,6 @@ let name = "scf"; let cppNamespace = "::mlir::scf"; let dependentDialects = ["arith::ArithDialect"]; - let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for SCF dialect ops. diff --git a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td --- a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td +++ b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td @@ -48,7 +48,6 @@ let cppNamespace = "::mlir::spirv"; let useDefaultTypePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; let hasConstantMaterializer = 1; let hasOperationAttrVerify = 1; let hasRegionArgAttrVerify = 1; diff --git a/mlir/include/mlir/Dialect/Shape/IR/ShapeBase.td b/mlir/include/mlir/Dialect/Shape/IR/ShapeBase.td --- a/mlir/include/mlir/Dialect/Shape/IR/ShapeBase.td +++ b/mlir/include/mlir/Dialect/Shape/IR/ShapeBase.td @@ -41,7 +41,6 @@ let useDefaultTypePrinterParser = 1; let hasConstantMaterializer = 1; let hasOperationAttrVerify = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } class Shape_Type : TypeDef { diff --git a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorBase.td b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorBase.td --- a/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorBase.td +++ b/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorBase.td @@ -83,7 +83,6 @@ let useDefaultAttributePrinterParser = 1; let useDefaultTypePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } #endif // SPARSETENSOR_BASE diff --git a/mlir/include/mlir/Dialect/Tensor/IR/TensorBase.td b/mlir/include/mlir/Dialect/Tensor/IR/TensorBase.td --- a/mlir/include/mlir/Dialect/Tensor/IR/TensorBase.td +++ b/mlir/include/mlir/Dialect/Tensor/IR/TensorBase.td @@ -47,7 +47,6 @@ let hasCanonicalizer = 1; let hasConstantMaterializer = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; let dependentDialects = [ "AffineDialect", "arith::ArithDialect", diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td --- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td +++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td @@ -45,7 +45,6 @@ let cppNamespace = "mlir::tosa"; let hasConstantMaterializer = 1; let useDefaultAttributePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } //===----------------------------------------------------------------------===// diff --git a/mlir/include/mlir/Dialect/Transform/IR/TransformDialect.td b/mlir/include/mlir/Dialect/Transform/IR/TransformDialect.td --- a/mlir/include/mlir/Dialect/Transform/IR/TransformDialect.td +++ b/mlir/include/mlir/Dialect/Transform/IR/TransformDialect.td @@ -23,7 +23,6 @@ "::mlir::pdl_interp::PDLInterpDialect", ]; - let useFoldAPI = kEmitFoldAdaptorFolder; let extraClassDeclaration = [{ /// Returns the named PDL constraint functions available in the dialect diff --git a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td --- a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td +++ b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td @@ -30,7 +30,6 @@ let useDefaultAttributePrinterParser = 1; let hasConstantMaterializer = 1; let dependentDialects = ["arith::ArithDialect"]; - let useFoldAPI = kEmitFoldAdaptorFolder; } // Base class for Vector dialect ops. diff --git a/mlir/include/mlir/Dialect/X86Vector/X86Vector.td b/mlir/include/mlir/Dialect/X86Vector/X86Vector.td --- a/mlir/include/mlir/Dialect/X86Vector/X86Vector.td +++ b/mlir/include/mlir/Dialect/X86Vector/X86Vector.td @@ -24,7 +24,6 @@ def X86Vector_Dialect : Dialect { let name = "x86vector"; let cppNamespace = "::mlir::x86vector"; - let useFoldAPI = kEmitFoldAdaptorFolder; } //===----------------------------------------------------------------------===// diff --git a/mlir/include/mlir/IR/BuiltinDialect.td b/mlir/include/mlir/IR/BuiltinDialect.td --- a/mlir/include/mlir/IR/BuiltinDialect.td +++ b/mlir/include/mlir/IR/BuiltinDialect.td @@ -35,7 +35,6 @@ public: }]; - let useFoldAPI = kEmitFoldAdaptorFolder; } #endif // BUILTIN_BASE diff --git a/mlir/include/mlir/IR/DialectBase.td b/mlir/include/mlir/IR/DialectBase.td --- a/mlir/include/mlir/IR/DialectBase.td +++ b/mlir/include/mlir/IR/DialectBase.td @@ -106,7 +106,7 @@ bit isExtensible = 0; // Fold API to use for operations in this dialect. - EmitFolderBase useFoldAPI = kEmitRawAttributesFolder; + EmitFolderBase useFoldAPI = kEmitFoldAdaptorFolder; } #endif // DIALECTBASE_TD diff --git a/mlir/test/lib/Dialect/Test/TestDialect.td b/mlir/test/lib/Dialect/Test/TestDialect.td --- a/mlir/test/lib/Dialect/Test/TestDialect.td +++ b/mlir/test/lib/Dialect/Test/TestDialect.td @@ -23,7 +23,6 @@ let hasNonDefaultDestructor = 1; let useDefaultTypePrinterParser = 0; let useDefaultAttributePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; let isExtensible = 1; let dependentDialects = ["::mlir::DLTIDialect"]; diff --git a/mlir/test/mlir-tblgen/deprecation-transitive.td b/mlir/test/mlir-tblgen/deprecation-transitive.td --- a/mlir/test/mlir-tblgen/deprecation-transitive.td +++ b/mlir/test/mlir-tblgen/deprecation-transitive.td @@ -4,7 +4,6 @@ def Test_Dialect : Dialect { let name = "test_dialect"; - let useFoldAPI = kEmitFoldAdaptorFolder; } def OpTraitA : NativeOpTrait<"OpTraitA">, Deprecated<"use `bar` instead">; diff --git a/mlir/test/mlir-tblgen/op-decl-and-defs.td b/mlir/test/mlir-tblgen/op-decl-and-defs.td --- a/mlir/test/mlir-tblgen/op-decl-and-defs.td +++ b/mlir/test/mlir-tblgen/op-decl-and-defs.td @@ -12,6 +12,7 @@ def Test_Dialect : Dialect { let name = "test"; let cppNamespace = "NS"; + let useFoldAPI = kEmitRawAttributesFolder; } class NS_Op traits> : Op; @@ -320,7 +321,6 @@ def TestWithNewFold_Dialect : Dialect { let name = "test"; let cppNamespace = "::mlir::testWithFold"; - let useFoldAPI = kEmitFoldAdaptorFolder; } def NS_MOp : Op { diff --git a/mlir/test/python/python_test_ops.td b/mlir/test/python/python_test_ops.td --- a/mlir/test/python/python_test_ops.td +++ b/mlir/test/python/python_test_ops.td @@ -20,7 +20,6 @@ let useDefaultTypePrinterParser = 1; let useDefaultAttributePrinterParser = 1; - let useFoldAPI = kEmitFoldAdaptorFolder; } class TestType