31 "Interval Partition Construction",
true,
true)
39 for (
unsigned i = 0,
e = Intervals.size(); i !=
e; ++i)
43 RootInterval =
nullptr;
47 for(
unsigned i = 0,
e = Intervals.size(); i !=
e; ++i)
48 Intervals[i]->
print(O);
54 void IntervalPartition::addIntervalToPartition(
Interval *
I) {
55 Intervals.push_back(I);
67 void IntervalPartition::updatePredecessors(
Interval *Int) {
80 addIntervalToPartition(RootInterval = *I);
86 addIntervalToPartition(*I);
90 for (
unsigned i = 0,
e = Intervals.size(); i !=
e; ++i)
91 updatePredecessors(Intervals[i]);
106 addIntervalToPartition(RootInterval = *I);
112 addIntervalToPartition(*I);
116 for (
unsigned i = 0,
e = Intervals.size(); i !=
e; ++i)
117 updatePredecessors(Intervals[i]);
function_interval_iterator intervals_end(Function *)
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
Interval Class - An Interval is a set of nodes defined such that every node in the interval has all o...
void releaseMemory() override
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memo...
std::vector< BasicBlock * >::iterator node_iterator
INITIALIZE_PASS(IntervalPartition, "intervals", "Interval Partition Construction", true, true) void IntervalPartition
function_interval_iterator intervals_begin(Function *F, bool DeleteInts=true)
void clear()
clear - Remove all entries.
BasicBlock * getHeaderNode() const
void print(raw_ostream &O, const Module *=nullptr) const override
print - Print out the internal state of the pass.
LLVM Basic Block Representation.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
bool runOnFunction(Function &F) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass...
FunctionPass class - This class is used to implement most global optimizations.
std::vector< BasicBlock * > Nodes
Nodes - The basic blocks in this interval.
void insert(KeyT a, KeyT b, ValT y)
insert - Add a mapping of [a;b] to y, coalesce with adjacent intervals.
void initializeIntervalPartitionPass(PassRegistry &)
std::vector< BasicBlock * > Predecessors
Predecessors - List of BasicBlocks that have this Interval's header block as one of their successors...
Interval * getRootInterval()
std::vector< BasicBlock * > Successors
Successors - List of BasicBlocks that are reachable directly from nodes in this interval, but are not in the interval themselves.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This class implements an extremely fast bulk output stream that can only output to a stream...
Interval * getBlockInterval(BasicBlock *BB)