mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-30 23:21:04 +00:00
[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:
parent
72775a354c
commit
c994340063
@ -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.
|
||||
|
@ -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 {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user