[Mlir-commits] [mlir] [mlir][python] Fix how the mlir variadic Python accessor `_ods_equally_sized_accessor` is used (#101132) (PR #106003)
Maksim Levental
llvmlistbot at llvm.org
Fri Aug 30 15:03:56 PDT 2024
================
@@ -427,20 +434,14 @@ static const NamedTypeConstraint &getResult(const Operator &op, int i) {
/// Emits accessors to Op operands.
static void emitOperandAccessors(const Operator &op, raw_ostream &os) {
- auto getNumVariableLengthOperands = [](const Operator &oper) {
- return oper.getNumVariableLengthOperands();
- };
- emitElementAccessors(op, os, "operand", getNumVariableLengthOperands,
- getNumOperands, getOperand);
----------------
makslevental wrote:
lol someone must've really liked functional programming to do it like this...
https://github.com/llvm/llvm-project/pull/106003
More information about the Mlir-commits
mailing list