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

Patrick Holland via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 15 15:46:52 PDT 2021


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

Quentin came up with a solution to the build problem and I implemented it. We define macros within `/llvm-mca/lib/CMakeLists.txt` based on which target are being built. Then we use those macros within `llvm-mca.cpp` to guard the includes and references to target specific CBs.

Tested by building for all targets and by building for only x86.


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/InstrBuilder.cpp
  llvm/lib/MCA/Stages/InOrderIssueStage.cpp
  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.352274.patch
Type: text/x-patch
Size: 29975 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210615/fce9f2a9/attachment-0001.bin>


More information about the llvm-commits mailing list