Added a corresponding conversion pattern for CallOp to match FuncOp. Currently
if just FuncOp is converted, CallOp is not correctly updated. This ensures CallOp
and FuncOp can have their types converted.
Details
Details
- Reviewers
rriddle
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks for the patch Rob, this looks like it would be useful for many different users of CallOp!
Can we add a test for this?
mlir/include/mlir/Transforms/DialectConversion.h | ||
---|---|---|
369 | Can we move this to a library specific to the StandardDialect? I'd like for us to keep DialectConversion as dialect agnostic as we can. I added FuncOp here because it's technically builtin(defined in IR/) at the moment. | |
mlir/lib/Transforms/DialectConversion.cpp | ||
1780 | Can we use operands here instead? |
Can we move this to a library specific to the StandardDialect? I'd like for us to keep DialectConversion as dialect agnostic as we can. I added FuncOp here because it's technically builtin(defined in IR/) at the moment.