mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-09 11:32:48 +00:00
remove MachineOpCode typedef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ba6da5d5b7
commit
cc8cd0cbf1
@ -32,12 +32,6 @@ class SelectionDAG;
|
||||
|
||||
template<class T> class SmallVectorImpl;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Data types used to define information about a single machine instruction
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
typedef short MachineOpCode;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// struct TargetInstrDescriptor:
|
||||
// Predefined information about each machine instruction.
|
||||
|
@ -52,7 +52,7 @@ const TargetRegisterClass *ARMInstrInfo::getPointerRegClass() const {
|
||||
///
|
||||
bool ARMInstrInfo::isMoveInstr(const MachineInstr &MI,
|
||||
unsigned &SrcReg, unsigned &DstReg) const {
|
||||
MachineOpCode oc = MI.getOpcode();
|
||||
unsigned oc = MI.getOpcode();
|
||||
switch (oc) {
|
||||
default:
|
||||
return false;
|
||||
|
@ -26,7 +26,7 @@ AlphaInstrInfo::AlphaInstrInfo()
|
||||
bool AlphaInstrInfo::isMoveInstr(const MachineInstr& MI,
|
||||
unsigned& sourceReg,
|
||||
unsigned& destReg) const {
|
||||
MachineOpCode oc = MI.getOpcode();
|
||||
unsigned oc = MI.getOpcode();
|
||||
if (oc == Alpha::BISr ||
|
||||
oc == Alpha::CPYSS ||
|
||||
oc == Alpha::CPYST ||
|
||||
|
@ -225,7 +225,7 @@ SPUInstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB,
|
||||
unsigned SrcReg, bool isKill, int FrameIdx,
|
||||
const TargetRegisterClass *RC) const
|
||||
{
|
||||
MachineOpCode opc;
|
||||
unsigned opc;
|
||||
if (RC == SPU::GPRCRegisterClass) {
|
||||
opc = (FrameIdx < SPUFrameInfo::maxFrameOffset())
|
||||
? SPU::STQDr128
|
||||
@ -308,7 +308,7 @@ SPUInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
|
||||
unsigned DestReg, int FrameIdx,
|
||||
const TargetRegisterClass *RC) const
|
||||
{
|
||||
MachineOpCode opc;
|
||||
unsigned opc;
|
||||
if (RC == SPU::GPRCRegisterClass) {
|
||||
opc = (FrameIdx < SPUFrameInfo::maxFrameOffset())
|
||||
? SPU::LQDr128
|
||||
|
@ -27,7 +27,7 @@ IA64InstrInfo::IA64InstrInfo()
|
||||
bool IA64InstrInfo::isMoveInstr(const MachineInstr& MI,
|
||||
unsigned& sourceReg,
|
||||
unsigned& destReg) const {
|
||||
MachineOpCode oc = MI.getOpcode();
|
||||
unsigned oc = MI.getOpcode();
|
||||
if (oc == IA64::MOV || oc == IA64::FMOV) {
|
||||
// TODO: this doesn't detect predicate moves
|
||||
assert(MI.getNumOperands() >= 2 &&
|
||||
|
@ -37,7 +37,7 @@ const TargetRegisterClass *PPCInstrInfo::getPointerRegClass() const {
|
||||
bool PPCInstrInfo::isMoveInstr(const MachineInstr& MI,
|
||||
unsigned& sourceReg,
|
||||
unsigned& destReg) const {
|
||||
MachineOpCode oc = MI.getOpcode();
|
||||
unsigned oc = MI.getOpcode();
|
||||
if (oc == PPC::OR || oc == PPC::OR8 || oc == PPC::VOR ||
|
||||
oc == PPC::OR4To8 || oc == PPC::OR8To4) { // or r1, r2, r2
|
||||
assert(MI.getNumOperands() >= 3 &&
|
||||
|
@ -636,7 +636,7 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
|
||||
bool X86InstrInfo::isMoveInstr(const MachineInstr& MI,
|
||||
unsigned& sourceReg,
|
||||
unsigned& destReg) const {
|
||||
MachineOpCode oc = MI.getOpcode();
|
||||
unsigned oc = MI.getOpcode();
|
||||
if (oc == X86::MOV8rr || oc == X86::MOV16rr ||
|
||||
oc == X86::MOV32rr || oc == X86::MOV64rr ||
|
||||
oc == X86::MOV16to16_ || oc == X86::MOV32to32_ ||
|
||||
|
@ -367,7 +367,7 @@ public:
|
||||
unsigned char getBaseOpcodeFor(const TargetInstrDescriptor *TID) const {
|
||||
return TID->TSFlags >> X86II::OpcodeShift;
|
||||
}
|
||||
unsigned char getBaseOpcodeFor(MachineOpCode Opcode) const {
|
||||
unsigned char getBaseOpcodeFor(unsigned Opcode) const {
|
||||
return getBaseOpcodeFor(&get(Opcode));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user