[llvm] r227880 - Remove dead code in the HexagonMCInst classes. This also fixes
Eric Christopher
echristo at gmail.com
Mon Feb 2 14:28:49 PST 2015
Author: echristo
Date: Mon Feb 2 16:28:48 2015
New Revision: 227880
URL: http://llvm.org/viewvc/llvm-project?rev=227880&view=rev
Log:
Remove dead code in the HexagonMCInst classes. This also fixes
a layering violation in the port and removes calls to getSubtargetImpl.
Modified:
llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.cpp
llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.h
Modified: llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.cpp?rev=227880&r1=227879&r2=227880&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.cpp Mon Feb 2 16:28:48 2015
@@ -11,7 +11,6 @@
//
//===----------------------------------------------------------------------===//
-#include "HexagonInstrInfo.h"
#include "MCTargetDesc/HexagonBaseInfo.h"
#include "MCTargetDesc/HexagonMCInst.h"
#include "MCTargetDesc/HexagonMCTargetDesc.h"
@@ -66,17 +65,6 @@ void HexagonMCInst::resetPacket() {
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 {
return (MCII->get(getOpcode()));
}
Modified: llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.h?rev=227880&r1=227879&r2=227880&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.h (original)
+++ llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCInst.h Mon Feb 2 16:28:48 2015
@@ -50,9 +50,6 @@ public:
static const size_t packetEndIndex = 1;
void resetPacket();
- // Return the slots used by the insn.
- unsigned getUnits(const HexagonTargetMachine *TM) const;
-
// Return the Hexagon ISA class for the insn.
unsigned getType() const;
More information about the llvm-commits
mailing list