LLVM API Documentation
#include "XCoreRegisterInfo.h"
#include "XCore.h"
#include "XCoreInstrInfo.h"
#include "XCoreMachineFunctionInfo.h"
#include "XCoreSubtarget.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/RegisterScavenging.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Type.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetFrameLowering.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "XCoreGenRegisterInfo.inc"
Go to the source code of this file.
Defines | |
#define | DEBUG_TYPE "xcore-reg-info" |
#define | GET_REGINFO_TARGET_DESC |
Functions | |
static bool | isImmUs (unsigned val) |
static bool | isImmU6 (unsigned val) |
static bool | isImmU16 (unsigned val) |
static void | InsertFPImmInst (MachineBasicBlock::iterator II, const XCoreInstrInfo &TII, unsigned Reg, unsigned FrameReg, int Offset) |
static void | InsertFPConstInst (MachineBasicBlock::iterator II, const XCoreInstrInfo &TII, unsigned Reg, unsigned FrameReg, int Offset, RegScavenger *RS) |
static void | InsertSPImmInst (MachineBasicBlock::iterator II, const XCoreInstrInfo &TII, unsigned Reg, int Offset) |
static void | InsertSPConstInst (MachineBasicBlock::iterator II, const XCoreInstrInfo &TII, unsigned Reg, int Offset, RegScavenger *RS) |
#define DEBUG_TYPE "xcore-reg-info" |
Definition at line 39 of file XCoreRegisterInfo.cpp.
#define GET_REGINFO_TARGET_DESC |
Definition at line 41 of file XCoreRegisterInfo.cpp.
static void InsertFPConstInst | ( | MachineBasicBlock::iterator | II, |
const XCoreInstrInfo & | TII, | ||
unsigned | Reg, | ||
unsigned | FrameReg, | ||
int | Offset, | ||
RegScavenger * | RS | ||
) | [static] |
Definition at line 93 of file XCoreRegisterInfo.cpp.
References llvm::MachineInstrBuilder::addMemOperand(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::MachineInstr::getDebugLoc(), llvm::getKillRegState(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::MachineOperand::isKill(), llvm::RegState::Kill, llvm_unreachable, llvm::XCoreInstrInfo::loadImmediate(), llvm::MachineInstr::memoperands_begin(), llvm::AArch64CC::MI, llvm::RegScavenger::scavengeRegister(), and llvm::RegScavenger::setRegUsed().
Referenced by llvm::XCoreRegisterInfo::eliminateFrameIndex().
static void InsertFPImmInst | ( | MachineBasicBlock::iterator | II, |
const XCoreInstrInfo & | TII, | ||
unsigned | Reg, | ||
unsigned | FrameReg, | ||
int | Offset | ||
) | [static] |
Definition at line 62 of file XCoreRegisterInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMemOperand(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::MachineInstr::getDebugLoc(), llvm::getKillRegState(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::MachineOperand::isKill(), llvm_unreachable, llvm::MachineInstr::memoperands_begin(), and llvm::AArch64CC::MI.
Referenced by llvm::XCoreRegisterInfo::eliminateFrameIndex().
static void InsertSPConstInst | ( | MachineBasicBlock::iterator | II, |
const XCoreInstrInfo & | TII, | ||
unsigned | Reg, | ||
int | Offset, | ||
RegScavenger * | RS | ||
) | [static] |
Definition at line 162 of file XCoreRegisterInfo.cpp.
References llvm::MachineInstrBuilder::addMemOperand(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::MachineInstr::getDebugLoc(), llvm::getKillRegState(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::MachineOperand::isKill(), llvm::RegState::Kill, llvm_unreachable, llvm::XCoreInstrInfo::loadImmediate(), llvm::MachineInstr::memoperands_begin(), llvm::AArch64CC::MI, llvm::RegScavenger::scavengeRegister(), and llvm::RegScavenger::setRegUsed().
Referenced by llvm::XCoreRegisterInfo::eliminateFrameIndex().
static void InsertSPImmInst | ( | MachineBasicBlock::iterator | II, |
const XCoreInstrInfo & | TII, | ||
unsigned | Reg, | ||
int | Offset | ||
) | [static] |
Definition at line 129 of file XCoreRegisterInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMemOperand(), llvm::BuildMI(), llvm::MachineInstr::getDebugLoc(), llvm::getKillRegState(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), isImmU6(), llvm::MachineOperand::isKill(), llvm_unreachable, llvm::MachineInstr::memoperands_begin(), and llvm::AArch64CC::MI.
Referenced by llvm::XCoreRegisterInfo::eliminateFrameIndex().
Definition at line 57 of file XCoreRegisterInfo.cpp.
Referenced by llvm::XCoreRegisterInfo::eliminateFrameIndex().
Definition at line 53 of file XCoreRegisterInfo.cpp.
Referenced by InsertSPImmInst().
Definition at line 49 of file XCoreRegisterInfo.cpp.
Referenced by llvm::XCoreRegisterInfo::eliminateFrameIndex().