mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-21 18:22:53 +01:00
[MCA] Anchoring the vtable of CustomBehaviour
Put the dtor of mca::CustomBehaviour into the cpp file to avoid undefined vtable when linking libLLVMMCACustomBehaviourAMDGPU as shared library. Differential Revision: https://reviews.llvm.org/D104401
This commit is contained in:
parent
76e90724b1
commit
341aadfd56
@ -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
|
||||
|
@ -16,6 +16,8 @@
|
||||
namespace llvm {
|
||||
namespace mca {
|
||||
|
||||
CustomBehaviour::~CustomBehaviour() {}
|
||||
|
||||
unsigned CustomBehaviour::checkCustomHazard(ArrayRef<InstRef> IssuedInst,
|
||||
const InstRef &IR) {
|
||||
// 0 signifies that there are no hazards that need to be waited on
|
||||
|
@ -6,6 +6,7 @@ include_directories(
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
AMDGPU
|
||||
Core
|
||||
MCA
|
||||
Support
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user