[MLIR][LLVM] Generate LLVM lifetime intrinsics while inlining.
authorJohannes de Fine Licht <johannes.definelicht@nextsilicon.com>
Mon, 30 Jan 2023 13:33:02 +0000 (14:33 +0100)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Mon, 30 Jan 2023 13:33:12 +0000 (14:33 +0100)
commitdb59654e236780ea713eb1015334dc4ee555f576
treee324f1f5be0a4b7c7febf26f88254228f23b05e1
parent292eca41d99b5245d2e1f15992bc2b59e38fc2dd
[MLIR][LLVM] Generate LLVM lifetime intrinsics while inlining.

Extend `LLVMInlinerInterface` to inline lifetime intrinsics for
`LLVM::AllocaOp` operations, and to insert new lifetime intrinsics when
an alloca is moved to the entry block that restrict its scope to where
the call was before inlining.

Depends on D142436

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D142701
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/test/Dialect/LLVMIR/inlining.mlir