I am inspecting the TableGen output for the MLIR Toy example. I see that for each Op
XOp, a class called
XOpOperandAdaptor is also generated. However, I don’t these classes being used anywhere. Also, the logic implemented by their methods is repeated in similar methods on the Op class itself.
I am curious to know why such adaptors are generated.