[llvm] [DirectX] Lower `llvm.lifetime.*` intrinsics to stores when DXIL version is lower than 1.6 (PR #147432)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 8 07:43:43 PDT 2025
================
@@ -745,6 +747,37 @@ class OpLowerer {
});
}
+ [[nodiscard]] bool lowerLifetimeIntrinsic(Function &F) {
+ IRBuilder<> &IRB = OpBuilder.getIRB();
+ return replaceFunction(F, [&](CallInst *CI) -> Error {
----------------
farzonl wrote:
why do we need a lambda for this?
https://github.com/llvm/llvm-project/pull/147432
More information about the llvm-commits
mailing list