LLVM API Documentation

Defines | Functions
SIMachineFunctionInfo.cpp File Reference
#include "SIMachineFunctionInfo.h"
#include "SIInstrInfo.h"
#include "SIRegisterInfo.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/LLVMContext.h"
Include dependency graph for SIMachineFunctionInfo.cpp:

Go to the source code of this file.

Defines

#define MAX_LANES   64

Functions

static unsigned findUnusedVGPR (const MachineRegisterInfo &MRI)
 Returns a register that is not used at any point in the function. If all registers are used, then this function will return.

Detailed Description

Definition in file SIMachineFunctionInfo.cpp.


Define Documentation

#define MAX_LANES   64

Definition at line 20 of file SIMachineFunctionInfo.cpp.


Function Documentation

static unsigned findUnusedVGPR ( const MachineRegisterInfo MRI) [static]

Returns a register that is not used at any point in the function. If all registers are used, then this function will return.

Definition at line 36 of file SIMachineFunctionInfo.cpp.

References llvm::TargetRegisterClass::begin(), llvm::TargetRegisterClass::end(), I, and llvm::MachineRegisterInfo::isPhysRegUsed().

Referenced by llvm::SIMachineFunctionInfo::getSpilledReg().