[Mlir-commits] [mlir] [mlir][inliner] Add doClone and canHandleMultipleBlocks callbacks to Inliner (PR #131226)
Mehdi Amini
llvmlistbot at llvm.org
Thu Apr 3 03:01:54 PDT 2025
================
@@ -253,13 +254,15 @@ class InlinerInterface
/// provided, will be used to update the inlined operations' location
/// information. 'shouldCloneInlinedRegion' corresponds to whether the source
/// region should be cloned into the 'inlinePoint' or spliced directly.
-LogicalResult inlineRegion(InlinerInterface &interface, Region *src,
+LogicalResult inlineRegion(InlinerInterface &interface,
+ const InlinerConfig &config, Region *src,
----------------
joker-eph wrote:
Requiring the entire config seems overkill to me. We should be able to just take a `function_ref` that has the signature of the callback here.
https://github.com/llvm/llvm-project/pull/131226
More information about the Mlir-commits
mailing list