//===- BlackfinRegisterInfo.h - Blackfin Register Information ..-*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file contains the Blackfin implementation of the TargetRegisterInfo // class. // //===----------------------------------------------------------------------===// #ifndef BLACKFINREGISTERINFO_H #define BLACKFINREGISTERINFO_H #include "llvm/Target/TargetRegisterInfo.h" #include "BlackfinGenRegisterInfo.h.inc" namespace llvm { class BlackfinSubtarget; class TargetInstrInfo; class Type; template static inline bool isImm(int x) { return x >= -(1<<(N-1)) && x < (1<<(N-1)); } template static inline bool isUimm(unsigned x) { return x < (1<