llvm-project
20ded7d3 - [mlir] Add option to cloning for different results (#184202)

Commit
15 days ago
[mlir] Add option to cloning for different results (#184202) With his permission while he is away, I am resurrecting @zero9178's very first MLIR PR #65171 that adds an option to change result in the operation cloning mechanism. This is very useful as cloning is currently the only way to change the results of an operation. > Since Operations cannot change the results after creation, a clone is necessary to create new results. Doing such an operation generically has not been possible so far. This PR therefore adds a new option to the CloneOptions struct allowing adding changing the results of the created operation. > > The caller is responsible to ensure that this is a valid operation and setting the IRMapping accordingly afterwards if required. --------- Co-authored-by: zero9178 <markus.boeck02@gmail.com>
Parents
Loading