Type of operands as the arguments of fold functions?

I have noticed that fold functions take operands as an array of attributes. Is there any reason for not implementing them as an array of values?

The idea is that the fold function hook can look at the value operands with getOperand(n) if they need to, but constant folded operands simplify the fold hook.

1 Like