[PATCH] D154424: [AMDGPU] Add functions for composing and decomposing S_WAIT_DEPCTR operands

Stephen Thomas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 4 02:39:50 PDT 2023


stepthomas created this revision.
Herald added subscribers: foad, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl, arsenm.
Herald added a project: All.
stepthomas requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Add functions AMDGPU::DepCtr::encodeField*() and AMDGPU::DepCtr::decodeField*()
for each of vm_vsrc, va_vdst and sa_sdst. These are now used in
AMDGPUInsertDelayAlu and GCNHazardRecognizer so as to make working with
S_WAITCNT_DEPCTR operands easier and more readable.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154424

Files:
  llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp
  llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
  llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
  llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154424.537010.patch
Type: text/x-patch
Size: 7703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230704/b9c5f547/attachment.bin>


More information about the llvm-commits mailing list