diff options
Diffstat (limited to 'llvm/lib/MCA/CustomBehaviour.cpp')
| -rw-r--r-- | llvm/lib/MCA/CustomBehaviour.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/MCA/CustomBehaviour.cpp b/llvm/lib/MCA/CustomBehaviour.cpp index a10a2f5c56f0..b593e96d1512 100644 --- a/llvm/lib/MCA/CustomBehaviour.cpp +++ b/llvm/lib/MCA/CustomBehaviour.cpp @@ -42,5 +42,16 @@ CustomBehaviour::getEndViews(llvm::MCInstPrinter &IP, return std::vector<std::unique_ptr<View>>(); } +SharedInstrument InstrumentManager::createInstrument(llvm::StringRef Desc, + llvm::StringRef Data) { + return std::make_shared<Instrument>(Desc, Data); +} + +unsigned InstrumentManager::getSchedClassID( + const MCInstrInfo &MCII, const MCInst &MCI, + const llvm::SmallVector<SharedInstrument> &IVec) const { + return MCII.get(MCI.getOpcode()).getSchedClass(); +} + } // namespace mca } // namespace llvm |
