[MC] Remove MachineInstr reference in MC layer (PR37160)

Only add support for getSchedInfoStr(const MachineInstr &MI) at the TargetSubtargetInfo level.

Really, the getSchedInfoStr calls need to be removed entirely, we should just return a latency/rthroughput through the subtarget and keep a string creation helper function somewhere else.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330615 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Simon Pilgrim 2018-04-23 16:59:06 +00:00
parent 72775a354c
commit c994340063
2 changed files with 1 additions and 6 deletions

View File

@ -249,7 +249,7 @@ public:
virtual bool enableSubRegLiveness() const { return false; }
/// Returns string representation of scheduler comment
std::string getSchedInfoStr(const MachineInstr &MI) const override;
std::string getSchedInfoStr(const MachineInstr &MI) const;
std::string getSchedInfoStr(MCInst const &MCI) const override;
/// This is called after a .mir file was loaded.

View File

@ -27,7 +27,6 @@
namespace llvm {
class MachineInstr;
class MCInst;
//===----------------------------------------------------------------------===//
@ -167,10 +166,6 @@ public:
}
/// Returns string representation of scheduler comment
virtual std::string getSchedInfoStr(const MachineInstr &MI) const {
return {};
}
virtual std::string getSchedInfoStr(MCInst const &MCI) const {
return {};
}