LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
LocalStackSlotAllocation.cpp File Reference
#include "llvm/CodeGen/Passes.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetFrameLowering.h"
#include "llvm/Target/TargetRegisterInfo.h"
Include dependency graph for LocalStackSlotAllocation.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "localstackalloc"
 

Functions

 STATISTIC (NumAllocations,"Number of frame indices allocated into local block")
 
 STATISTIC (NumBaseRegisters,"Number of virtual frame base registers allocated")
 
 STATISTIC (NumReplacements,"Number of frame indices references replaced")
 
 INITIALIZE_PASS (LocalStackSlotPass,"localstackalloc","Local Stack Slot Allocation", false, false) bool LocalStackSlotPass
 
static bool lookupCandidateBaseReg (int64_t BaseOffset, int64_t FrameSizeAdjust, int64_t LocalFrameOffset, const MachineInstr *MI, const TargetRegisterInfo *TRI)
 

Macro Definition Documentation

#define DEBUG_TYPE   "localstackalloc"

Definition at line 17 of file LocalStackSlotAllocation.cpp.

Function Documentation

INITIALIZE_PASS ( LocalStackSlotPass  ,
"localstackalloc"  ,
"Local Stack Slot Allocation"  ,
false  ,
false   
)
static bool lookupCandidateBaseReg ( int64_t  BaseOffset,
int64_t  FrameSizeAdjust,
int64_t  LocalFrameOffset,
const MachineInstr MI,
const TargetRegisterInfo TRI 
)
inlinestatic
STATISTIC ( NumAllocations  ,
"Number of frame indices allocated into local block"   
)
STATISTIC ( NumBaseRegisters  ,
"Number of virtual frame base registers allocated"   
)
STATISTIC ( NumReplacements  ,
"Number of frame indices references replaced"   
)