This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Remove clone methods from DPS interface.
ClosedPublic

Authored by pifon2a on Nov 23 2022, 9:15 AM.

Diff Detail

Event Timeline

pifon2a created this revision.Nov 23 2022, 9:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 23 2022, 9:15 AM
pifon2a requested review of this revision.Nov 23 2022, 9:15 AM
pifon2a updated this revision to Diff 477529.Nov 23 2022, 9:17 AM

Clean-up headers.

Nice! Wondering if these could be just added to OpBuilder directly?

Nice! Wondering if these could be just added to OpBuilder directly?

I guess it's a bit harder: there are already clone and cloneWithoutRegions methods that are doing similar things, but not exactly. Also I tried to use BlockAndValueMapping and b.clone(op, bvm), but most of the tests broke.

Nice! Wondering if these could be just added to OpBuilder directly?

I guess it's a bit harder: there are already clone and cloneWithoutRegions methods that are doing similar things, but not exactly. Also I tried to use BlockAndValueMapping and b.clone(op, bvm), but most of the tests broke.

Not saying use the existing methods in OpBuilder, but add these as new methods in OpBuilder....

Nice! Wondering if these could be just added to OpBuilder directly?

I guess it's a bit harder: there are already clone and cloneWithoutRegions methods that are doing similar things, but not exactly. Also I tried to use BlockAndValueMapping and b.clone(op, bvm), but most of the tests broke.

Not saying use the existing methods in OpBuilder, but add these as new methods in OpBuilder....

Yes, but wouldn't it be confusing to the users? b.clone(op, newResultsTypes, newOperands) is different from b.clone(op, bvm), where bvm is constructed by mapping old operands to newOperands? If it is not confusing, i can move it there.

mravishankar accepted this revision.Nov 23 2022, 9:37 AM

I dont have an opinion. Maybe River or Mehdi have an opinion on it. Either way, this is also fine for me.

This revision is now accepted and ready to land.Nov 23 2022, 9:37 AM
This revision was automatically updated to reflect the committed changes.