Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
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.
Comment Actions
Not saying use the existing methods in OpBuilder, but add these as new methods in OpBuilder....
Comment Actions
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.
Comment Actions
I dont have an opinion. Maybe River or Mehdi have an opinion on it. Either way, this is also fine for me.