class TargetInstrInfo;
class Type;
- template<unsigned N>
- static inline bool isImm(int x) {
- return x >= -(1<<(N-1)) && x < (1<<(N-1));
- }
-
- template<unsigned N>
- static inline bool isUimm(unsigned x) {
- return x < (1<<N);
- }
-
// Subregister indices, keep in sync with BlackfinRegisterInfo.td
enum BfinSubregIdx {
bfin_subreg_lo16 = 1,
}
const TargetRegisterClass *getPhysicalRegisterRegClass(unsigned reg,
- MVT VT) const;
+ EVT VT) const;
bool hasFP(const MachineFunction &MF) const;
MachineBasicBlock &MBB,
MachineBasicBlock::iterator I) const;
- void eliminateFrameIndex(MachineBasicBlock::iterator II,
- int SPAdj, RegScavenger *RS = NULL) const;
+ unsigned eliminateFrameIndex(MachineBasicBlock::iterator II,
+ int SPAdj, int *Value = NULL,
+ RegScavenger *RS = NULL) const;
void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
RegScavenger *RS) const;
void emitPrologue(MachineFunction &MF) const;
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
- unsigned getFrameRegister(MachineFunction &MF) const;
- int getFrameIndexOffset(MachineFunction &MF, int FI) const;
+ unsigned getFrameRegister(const MachineFunction &MF) const;
unsigned getRARegister() const;
// Exception handling queries.