LLVM API Documentation
#include "SpillPlacement.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/CodeGen/EdgeBundles.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Format.h"
Go to the source code of this file.
Classes | |
struct | llvm::SpillPlacement::Node |
Defines | |
#define | DEBUG_TYPE "spillplacement" |
Functions | |
INITIALIZE_PASS_BEGIN (SpillPlacement,"spill-code-placement","Spill Code Placement Analysis", true, true) INITIALIZE_PASS_END(SpillPlacement | |
static BlockFrequency | getThreshold () |
static void | setThreshold (const BlockFrequency &Entry) |
Set the threshold for a given entry frequency. | |
Variables | |
spill code | placement |
spill code Spill Code Placement | Analysis |
spill code Spill Code Placement | true |
#define DEBUG_TYPE "spillplacement" |
Definition at line 43 of file SpillPlacement.cpp.
static BlockFrequency getThreshold | ( | ) | [static] |
Decision threshold. A node gets the output value 0 if the weighted sum of its inputs falls in the open interval (-Threshold;Threshold).
Definition at line 69 of file SpillPlacement.cpp.
References Threshold.
Referenced by llvm::SpillPlacement::Node::clear(), and llvm::SpillPlacement::Node::update().
INITIALIZE_PASS_BEGIN | ( | SpillPlacement | , |
"spill-code-placement" | , | ||
"Spill Code Placement Analysis" | , | ||
true | , | ||
true | |||
) |
static void setThreshold | ( | const BlockFrequency & | Entry | ) | [static] |
Set the threshold for a given entry frequency.
Set the threshold relative to Entry
. Since the threshold is used as a bound on the open interval (-Threshold;Threshold), 1 is the minimum threshold.
Definition at line 76 of file SpillPlacement.cpp.
References llvm::BlockFrequency::getFrequency(), and Threshold.
Definition at line 50 of file SpillPlacement.cpp.
spill code placement |
Definition at line 50 of file SpillPlacement.cpp.
Definition at line 50 of file SpillPlacement.cpp.