mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Remove dead code in the HexagonMCInst classes. This also fixes
a layering violation in the port and removes calls to getSubtargetImpl. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227880 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -11,7 +11,6 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "HexagonInstrInfo.h"
|
|
||||||
#include "MCTargetDesc/HexagonBaseInfo.h"
|
#include "MCTargetDesc/HexagonBaseInfo.h"
|
||||||
#include "MCTargetDesc/HexagonMCInst.h"
|
#include "MCTargetDesc/HexagonMCInst.h"
|
||||||
#include "MCTargetDesc/HexagonMCTargetDesc.h"
|
#include "MCTargetDesc/HexagonMCTargetDesc.h"
|
||||||
@@ -66,17 +65,6 @@ void HexagonMCInst::resetPacket() {
|
|||||||
setPacketEnd(false);
|
setPacketEnd(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the slots used by the insn.
|
|
||||||
unsigned HexagonMCInst::getUnits(const HexagonTargetMachine *TM) const {
|
|
||||||
const HexagonInstrInfo *QII = TM->getSubtargetImpl()->getInstrInfo();
|
|
||||||
const InstrItineraryData *II =
|
|
||||||
TM->getSubtargetImpl()->getInstrItineraryData();
|
|
||||||
const InstrStage *IS =
|
|
||||||
II->beginStage(QII->get(this->getOpcode()).getSchedClass());
|
|
||||||
|
|
||||||
return (IS->getUnits());
|
|
||||||
}
|
|
||||||
|
|
||||||
MCInstrDesc const &HexagonMCInst::getDesc() const {
|
MCInstrDesc const &HexagonMCInst::getDesc() const {
|
||||||
return (MCII->get(getOpcode()));
|
return (MCII->get(getOpcode()));
|
||||||
}
|
}
|
||||||
|
@@ -50,9 +50,6 @@ public:
|
|||||||
static const size_t packetEndIndex = 1;
|
static const size_t packetEndIndex = 1;
|
||||||
void resetPacket();
|
void resetPacket();
|
||||||
|
|
||||||
// Return the slots used by the insn.
|
|
||||||
unsigned getUnits(const HexagonTargetMachine *TM) const;
|
|
||||||
|
|
||||||
// Return the Hexagon ISA class for the insn.
|
// Return the Hexagon ISA class for the insn.
|
||||||
unsigned getType() const;
|
unsigned getType() const;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user