diff options
Diffstat (limited to 'llvm/include/llvm/MC/MCSubtargetInfo.h')
-rw-r--r-- | llvm/include/llvm/MC/MCSubtargetInfo.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/include/llvm/MC/MCSubtargetInfo.h b/llvm/include/llvm/MC/MCSubtargetInfo.h index bbdac8fad5f..d8fb2dc8dcd 100644 --- a/llvm/include/llvm/MC/MCSubtargetInfo.h +++ b/llvm/include/llvm/MC/MCSubtargetInfo.h @@ -26,6 +26,8 @@ #include <string> namespace llvm { +class MachineInstr; +class MCInst; //===----------------------------------------------------------------------===// /// @@ -167,6 +169,15 @@ public: auto Found = std::lower_bound(ProcDesc.begin(), ProcDesc.end(), CPU); return Found != ProcDesc.end() && StringRef(Found->Key) == CPU; } + + /// Returns string representation of scheduler comment + virtual std::string getSchedInfoStr(const MachineInstr &MI) const { + return std::string(); + } + + virtual std::string getSchedInfoStr(MCInst const &MCI) const { + return std::string(); + } }; } // end namespace llvm |