diff --git a/include/llvm/MCA/CustomBehaviour.h b/include/llvm/MCA/CustomBehaviour.h index 246a5debd6c..655a9c49c59 100644 --- a/include/llvm/MCA/CustomBehaviour.h +++ b/include/llvm/MCA/CustomBehaviour.h @@ -63,7 +63,7 @@ public: const MCInstrInfo &MCII) : STI(STI), SrcMgr(SrcMgr), MCII(MCII) {} - virtual ~CustomBehaviour() {} + virtual ~CustomBehaviour(); // Before the llvm-mca pipeline dispatches an instruction, it first checks // for any register or resource dependencies / hazards. If it doesn't find diff --git a/lib/MCA/CustomBehaviour.cpp b/lib/MCA/CustomBehaviour.cpp index b160f4c5421..23211f40292 100644 --- a/lib/MCA/CustomBehaviour.cpp +++ b/lib/MCA/CustomBehaviour.cpp @@ -16,6 +16,8 @@ namespace llvm { namespace mca { +CustomBehaviour::~CustomBehaviour() {} + unsigned CustomBehaviour::checkCustomHazard(ArrayRef IssuedInst, const InstRef &IR) { // 0 signifies that there are no hazards that need to be waited on diff --git a/tools/llvm-mca/lib/AMDGPU/CMakeLists.txt b/tools/llvm-mca/lib/AMDGPU/CMakeLists.txt index 19c3a8f2b9f..cd6e171ac83 100644 --- a/tools/llvm-mca/lib/AMDGPU/CMakeLists.txt +++ b/tools/llvm-mca/lib/AMDGPU/CMakeLists.txt @@ -6,6 +6,7 @@ include_directories( set(LLVM_LINK_COMPONENTS AMDGPU Core + MCA Support )