PPCInstrInfo.h (210299) | PPCInstrInfo.h (212904) |
---|---|
1//===- PPCInstrInfo.h - PowerPC Instruction Information ---------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 68 unchanged lines hidden (view full) --- 77 explicit PPCInstrInfo(PPCTargetMachine &TM); 78 79 /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As 80 /// such, whenever a client has an instance of instruction info, it should 81 /// always be able to get register info as well (through this method). 82 /// 83 virtual const PPCRegisterInfo &getRegisterInfo() const { return RI; } 84 | 1//===- PPCInstrInfo.h - PowerPC Instruction Information ---------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 68 unchanged lines hidden (view full) --- 77 explicit PPCInstrInfo(PPCTargetMachine &TM); 78 79 /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As 80 /// such, whenever a client has an instance of instruction info, it should 81 /// always be able to get register info as well (through this method). 82 /// 83 virtual const PPCRegisterInfo &getRegisterInfo() const { return RI; } 84 |
85 /// Return true if the instruction is a register to register move and return 86 /// the source and dest operands and their sub-register indices by reference. 87 virtual bool isMoveInstr(const MachineInstr &MI, 88 unsigned &SrcReg, unsigned &DstReg, 89 unsigned &SrcSubIdx, unsigned &DstSubIdx) const; 90 | |
91 unsigned isLoadFromStackSlot(const MachineInstr *MI, 92 int &FrameIndex) const; 93 unsigned isStoreToStackSlot(const MachineInstr *MI, 94 int &FrameIndex) const; 95 96 // commuteInstruction - We can commute rlwimi instructions, but only if the 97 // rotate amt is zero. We also have to munge the immediates a bit. 98 virtual MachineInstr *commuteInstruction(MachineInstr *MI, bool NewMI) const; --- 50 unchanged lines hidden --- | 85 unsigned isLoadFromStackSlot(const MachineInstr *MI, 86 int &FrameIndex) const; 87 unsigned isStoreToStackSlot(const MachineInstr *MI, 88 int &FrameIndex) const; 89 90 // commuteInstruction - We can commute rlwimi instructions, but only if the 91 // rotate amt is zero. We also have to munge the immediates a bit. 92 virtual MachineInstr *commuteInstruction(MachineInstr *MI, bool NewMI) const; --- 50 unchanged lines hidden --- |