LLVM API Documentation
#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"
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) |
#define DEBUG_TYPE "localstackalloc" |
Definition at line 17 of file LocalStackSlotAllocation.cpp.
INITIALIZE_PASS | ( | LocalStackSlotPass | , |
"localstackalloc" | , | ||
"Local Stack Slot Allocation" | , | ||
false | , | ||
false | |||
) |
Definition at line 84 of file LocalStackSlotAllocation.cpp.
References llvm::MachineFrameInfo::getObjectIndexEnd(), llvm::TargetRegisterInfo::requiresVirtualBaseRegisters(), and llvm::MachineFrameInfo::setUseLocalStackAllocationBlock().
|
inlinestatic |
Definition at line 200 of file LocalStackSlotAllocation.cpp.
References llvm::TargetRegisterInfo::isFrameOffsetLegal().
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" | |||
) |