[PATCH] D153761: [AMDGPU] ISel for @llvm.amdgcn.cs.chain intrinsic (WIP)
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 26 07:40:52 PDT 2023
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp:2517
+ if (!F || !F->isIntrinsic() || ID == Intrinsic::not_intrinsic ||
+ ID == Intrinsic::amdgcn_cs_chain)
return translateCallBase(CI, MIRBuilder);
----------------
Probably should avoid touching the generic IRTranslator. Can you just handle this as a legalize on the intrinsic itself? Fundamentally this isn't really any different from emitting a libcall, you'd just need to access the CallLowering from the legalize function
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153761/new/
https://reviews.llvm.org/D153761
More information about the llvm-commits
mailing list