[llvm] [DirectX] Legalize lifetime intrinsics for DXIL (PR #148003)
Deric C. via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 11 09:46:40 PDT 2025
================
@@ -239,6 +240,13 @@ class DXILPrepareModule : public ModulePass {
for (size_t Idx = 0, End = F.arg_size(); Idx < End; ++Idx)
F.removeParamAttrs(Idx, AttrMask);
+ // Match FnAttrs of lifetime intrinsics in LLVM 3.7
+ if (F.isIntrinsic())
+ switch (F.getIntrinsicID())
----------------
Icohedron wrote:
I'll just change this to an if statement.
https://github.com/llvm/llvm-project/pull/148003
More information about the llvm-commits
mailing list