[Mlir-commits] [mlir] [mlir][inliner] Add doClone and canHandleMultipleBlocks callbacks to Inliner (PR #131226)
Mehdi Amini
llvmlistbot at llvm.org
Fri Apr 4 02:36:50 PDT 2025
================
@@ -255,16 +255,17 @@ class InlinerInterface
/// information. 'shouldCloneInlinedRegion' corresponds to whether the source
/// region should be cloned into the 'inlinePoint' or spliced directly.
LogicalResult inlineRegion(InlinerInterface &interface,
- const InlinerConfig &config, Region *src,
- Operation *inlinePoint, IRMapping &mapper,
- ValueRange resultsToReplace,
+ InlinerConfig::CloneCallbackTy cloneCallback,
----------------
joker-eph wrote:
Unfortunately this isn't a function_ref, and copying a std::function around isn't just "free".
I'd rather see a function_ref here.
https://github.com/llvm/llvm-project/pull/131226
More information about the Mlir-commits
mailing list