catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

Can we use `--buffer-results-to-out-params`?

Open erick-xanadu opened this issue 1 year ago • 0 comments

--buffer-results-to-out-params is a pass in upstream MLIR that will modify functions that return memrefs to functions that receive memrefs parameters to denote the return values. In Catalyst we use this calling convention, but do not use this pass. Could it be possible to use this pass instead of writing custom transformations to achieve the same result?

erick-xanadu avatar May 27 '24 13:05 erick-xanadu