|
LLVM 24.0.0git
|
#include "llvm/CodeGen/StackColoring.h"#include "CodeGenOptions.h"#include "llvm/ADT/BitVector.h"#include "llvm/ADT/DenseMap.h"#include "llvm/ADT/DepthFirstIterator.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/ValueTracking.h"#include "llvm/CodeGen/LiveInterval.h"#include "llvm/CodeGen/MachineBasicBlock.h"#include "llvm/CodeGen/MachineFrameInfo.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstr.h"#include "llvm/CodeGen/MachineMemOperand.h"#include "llvm/CodeGen/MachineOperand.h"#include "llvm/CodeGen/Passes.h"#include "llvm/CodeGen/PseudoSourceValueManager.h"#include "llvm/CodeGen/RegisterClassInfo.h"#include "llvm/CodeGen/SlotIndexes.h"#include "llvm/CodeGen/TargetOpcodes.h"#include "llvm/CodeGen/WinEHFuncInfo.h"#include "llvm/Config/llvm-config.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DebugInfoMetadata.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/Metadata.h"#include "llvm/IR/Use.h"#include "llvm/IR/Value.h"#include "llvm/InitializePasses.h"#include "llvm/Pass.h"#include "llvm/Support/Casting.h"#include "llvm/Support/Compiler.h"#include "llvm/Support/Debug.h"#include "llvm/Support/raw_ostream.h"#include <algorithm>#include <cassert>#include <limits>#include <memory>#include <utility>Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "stack-coloring" |
Functions | |
| STATISTIC (NumMarkerSeen, "Number of lifetime markers found.") | |
| STATISTIC (StackSpaceSaved, "Number of bytes saved due to merging slots.") | |
| STATISTIC (StackSlotMerged, "Number of stack slot merged.") | |
| STATISTIC (EscapedAllocas, "Number of allocas that escaped the lifetime region") | |
| INITIALIZE_PASS_BEGIN (StackColoringLegacy, DEBUG_TYPE, "Merge disjoint stack slots", false, false) INITIALIZE_PASS_END(StackColoringLegacy | |
| static int | getStartOrEndSlot (const MachineInstr &MI) |
Variables | |
| DEBUG_TYPE | |
| Merge disjoint stack | slots |
| Merge disjoint stack | false |
| #define DEBUG_TYPE "stack-coloring" |
Definition at line 67 of file StackColoring.cpp.
|
inlinestatic |
Definition at line 546 of file StackColoring.cpp.
References assert(), llvm::MachineOperand::getIndex(), and MI.
| INITIALIZE_PASS_BEGIN | ( | StackColoringLegacy | , |
| DEBUG_TYPE | , | ||
| "Merge disjoint stack slots" | , | ||
| false | , | ||
| false | ) |
References DEBUG_TYPE, and INITIALIZE_PASS_DEPENDENCY.
| STATISTIC | ( | EscapedAllocas | , |
| "Number of allocas that escaped the lifetime region" | ) |
References llvm::End.
| STATISTIC | ( | NumMarkerSeen | , |
| "Number of lifetime markers found." | ) |
| STATISTIC | ( | StackSlotMerged | , |
| "Number of stack slot merged." | ) |
| STATISTIC | ( | StackSpaceSaved | , |
| "Number of bytes saved due to merging slots." | ) |
| DEBUG_TYPE |
Definition at line 501 of file StackColoring.cpp.
| Merge disjoint stack false |
Definition at line 502 of file StackColoring.cpp.
| Merge disjoint stack slots |
Definition at line 502 of file StackColoring.cpp.