LLVM API Documentation

BlackfinRegisterInfo.cpp File Reference

#include "Blackfin.h"
#include "BlackfinRegisterInfo.h"
#include "BlackfinSubtarget.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineLocation.h"
#include "llvm/CodeGen/RegisterScavenging.h"
#include "llvm/Target/TargetFrameInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Type.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/STLExtras.h"
#include "BlackfinGenRegisterInfo.inc"

Include dependency graph for BlackfinRegisterInfo.cpp:

Go to the source code of this file.

Functions

static unsigned findScratchRegister (MachineBasicBlock::iterator II, RegScavenger *RS, const TargetRegisterClass *RC, int SPAdj)


Function Documentation

static unsigned findScratchRegister ( MachineBasicBlock::iterator  II,
RegScavenger *  RS,
const TargetRegisterClass *  RC,
int  SPAdj 
) [static]

findScratchRegister - Find a 'free' register. Try for a call-clobbered register first and then a spilled callee-saved register if that fails.

Definition at line 211 of file BlackfinRegisterInfo.cpp.

References llvm::RegScavenger::FindUnusedReg(), Reg, and llvm::RegScavenger::scavengeRegister().