[PATCH] D117057: [AMDGPU] Annotate functions with inline asm using agprs
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 11 14:38:28 PST 2022
rampitec created this revision.
rampitec added a reviewer: arsenm.
Herald added subscribers: foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
rampitec requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
This is needed for future patch. It is possible to allocate all
VGPRs and use MFMA with VGPRs if we have less then 257 registers
and have no calls, but we need to make sure AGPRs are not used
by an inline asm. It is done as an annotation because the way to
use MFMA with VGPRs is to select a proper opcode, so it shall be
known by the time of selection.
https://reviews.llvm.org/D117057
Files:
llvm/lib/Target/AMDGPU/AMDGPUAnnotateKernelFeatures.cpp
llvm/test/CodeGen/AMDGPU/inline-asm-agpr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117057.399084.patch
Type: text/x-patch
Size: 3431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220111/757e098d/attachment.bin>
More information about the llvm-commits
mailing list