[PATCH] D104149: [MCA] Adding the CustomBehaviour class to llvm-mca

Patrick Holland via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 14 16:28:46 PDT 2021


holland11 updated this revision to Diff 352014.
holland11 added a comment.

Made some changes suggested by Andrea.

- Removed the X86CustomBehaviour class
- Modified the MCAOperands to only be stored for specific instructions (and only specific operands from those instructions)
- Added the InstrPostProcess class for modifying the mca::Instruction objects after they are created, but before they are added to the LoweredSequence
- Modified the CustomBehaviour section of the docs
- Changed some assert(RegID) lines into if (!RegID) lines that either exit the current function or continue the current loop (this will make it so that InstrPostProcess can remove instruction Defs by setting that Def's RegisterID to 0)
- And some other small changes.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104149/new/

https://reviews.llvm.org/D104149

Files:
  llvm/docs/CommandGuide/llvm-mca.rst
  llvm/include/llvm/MCA/Context.h
  llvm/include/llvm/MCA/CustomBehaviour.h
  llvm/include/llvm/MCA/HWEventListener.h
  llvm/include/llvm/MCA/Instruction.h
  llvm/include/llvm/MCA/Stages/InOrderIssueStage.h
  llvm/lib/MCA/CMakeLists.txt
  llvm/lib/MCA/Context.cpp
  llvm/lib/MCA/CustomBehaviour.cpp
  llvm/lib/MCA/HardwareUnits/RegisterFile.cpp
  llvm/lib/MCA/InstrBuilder.cpp
  llvm/lib/MCA/Stages/InOrderIssueStage.cpp
  llvm/lib/Target/AMDGPU/SISchedule.td
  llvm/test/tools/llvm-mca/AMDGPU/gfx10-waitcnt-custom-behaviour.s
  llvm/tools/llvm-mca/CMakeLists.txt
  llvm/tools/llvm-mca/Views/DispatchStatistics.cpp
  llvm/tools/llvm-mca/lib/AMDGPU/AMDGPUCustomBehaviour.cpp
  llvm/tools/llvm-mca/lib/AMDGPU/AMDGPUCustomBehaviour.h
  llvm/tools/llvm-mca/lib/AMDGPU/CMakeLists.txt
  llvm/tools/llvm-mca/lib/CMakeLists.txt
  llvm/tools/llvm-mca/llvm-mca.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104149.352014.patch
Type: text/x-patch
Size: 52549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210614/aedbc46e/attachment.bin>


More information about the llvm-commits mailing list