Skip to content

Commit 395196e

Browse files
Update mlir/include/mlir/Transforms/Inliner.h
Co-authored-by: Mehdi Amini <[email protected]>
1 parent de67999 commit 395196e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mlir/include/mlir/Transforms/Inliner.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ class InlinerConfig {
2727
public:
2828
using DefaultPipelineTy = std::function<void(OpPassManager &)>;
2929
using OpPipelinesTy = llvm::StringMap<OpPassManager>;
30-
using CloneCallbackTy =
31-
std::function<void(OpBuilder &builder, Region *src, Block *inlineBlock,
30+
using CloneCallbackSigTy =
31+
void(*)(OpBuilder &builder, Region *src, Block *inlineBlock,
3232
Block *postInsertBlock, IRMapping &mapper,
33-
bool shouldCloneInlinedRegion)>;
33+
bool shouldCloneInlinedRegion);
34+
using CloneCallbackTy =
35+
std::function<CloneCallbackSigTy>;
3436

3537
InlinerConfig() = default;
3638
InlinerConfig(DefaultPipelineTy defaultPipeline,

0 commit comments

Comments
 (0)