[Mlir-commits] [mlir] [mlir][python] generate value builders (PR #68308)

Maksim Levental llvmlistbot at llvm.org
Mon Oct 9 09:04:12 PDT 2023


================
@@ -982,11 +1032,12 @@ static void emitOpBindings(const Operator &op, raw_ostream &os) {
   }
 
   emitRegionAttributes(op, os);
-  emitDefaultOpBuilder(op, os);
+  llvm::SmallVector<std::string> functionArgs = emitDefaultOpBuilder(op, os);
   emitOperandAccessors(op, os);
   emitAttributeAccessors(op, os);
   emitResultAccessors(op, os);
   emitRegionAccessors(op, os);
+  emitValueBuilder(op, functionArgs, os);
----------------
makslevental wrote:

The value builder needs to defined at top-level (module) scope.

https://github.com/llvm/llvm-project/pull/68308


More information about the Mlir-commits mailing list