mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix typos pointed out by Duncan. Also untabify these files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57018 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
489032a2b7
commit
17a82eaeb6
@ -8,7 +8,7 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
// Developed by: Bernhard Scholz
|
// Developed by: Bernhard Scholz
|
||||||
// The Univesity of Sydney
|
// The University of Sydney
|
||||||
// http://www.it.usyd.edu.au/~scholz
|
// http://www.it.usyd.edu.au/~scholz
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
@ -56,13 +56,13 @@ struct pbqp {
|
|||||||
|
|
||||||
/* node fields */
|
/* node fields */
|
||||||
PBQPVector **node_costs; /* cost vectors of nodes */
|
PBQPVector **node_costs; /* cost vectors of nodes */
|
||||||
int *node_deg; /* node degree of nodes */
|
int *node_deg; /* node degree of nodes */
|
||||||
int *solution; /* solution for node */
|
int *solution; /* solution for node */
|
||||||
adjnode **adj_list; /* adj. list */
|
adjnode **adj_list; /* adj. list */
|
||||||
bucketnode **bucket_ptr; /* bucket pointer of a node */
|
bucketnode **bucket_ptr; /* bucket pointer of a node */
|
||||||
|
|
||||||
/* node stack */
|
/* node stack */
|
||||||
int *stack; /* stack of nodes */
|
int *stack; /* stack of nodes */
|
||||||
int stack_ptr; /* stack pointer */
|
int stack_ptr; /* stack pointer */
|
||||||
|
|
||||||
/* bucket fields */
|
/* bucket fields */
|
||||||
@ -161,8 +161,8 @@ void free_pbqp(pbqp *this_)
|
|||||||
for(adj_ptr = this_->adj_list[u]; adj_ptr != NULL; adj_ptr = adj_next) {
|
for(adj_ptr = this_->adj_list[u]; adj_ptr != NULL; adj_ptr = adj_next) {
|
||||||
adj_next = adj_ptr -> succ;
|
adj_next = adj_ptr -> succ;
|
||||||
if (u < adj_ptr->adj) {
|
if (u < adj_ptr->adj) {
|
||||||
assert(adj_ptr != NULL);
|
assert(adj_ptr != NULL);
|
||||||
delete adj_ptr->costs;
|
delete adj_ptr->costs;
|
||||||
}
|
}
|
||||||
if (adj_ptr -> tc_safe_regs != NULL) {
|
if (adj_ptr -> tc_safe_regs != NULL) {
|
||||||
free(adj_ptr -> tc_safe_regs);
|
free(adj_ptr -> tc_safe_regs);
|
||||||
@ -814,7 +814,7 @@ void eliminate_independent_edges(pbqp *this_)
|
|||||||
v = adj_ptr -> adj;
|
v = adj_ptr -> adj;
|
||||||
assert(v >= 0 && v < this_->num_nodes);
|
assert(v >= 0 && v < this_->num_nodes);
|
||||||
if (u < v) {
|
if (u < v) {
|
||||||
simplify_edge(this_,u,v);
|
simplify_edge(this_,u,v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1328,9 +1328,9 @@ void check_pbqp(pbqp *this_)
|
|||||||
v = adj_ptr -> adj;
|
v = adj_ptr -> adj;
|
||||||
assert( v>= 0 && v < this_->num_nodes);
|
assert( v>= 0 && v < this_->num_nodes);
|
||||||
if (u < v ) {
|
if (u < v ) {
|
||||||
costs = adj_ptr -> costs;
|
costs = adj_ptr -> costs;
|
||||||
assert( costs->getRows() == this_->node_costs[u]->getLength() &&
|
assert( costs->getRows() == this_->node_costs[u]->getLength() &&
|
||||||
costs->getCols() == this_->node_costs[v]->getLength());
|
costs->getCols() == this_->node_costs[v]->getLength());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
// Developed by: Bernhard Scholz
|
// Developed by: Bernhard Scholz
|
||||||
// The Univesity of Sydney
|
// The University of Sydney
|
||||||
// http://www.it.usyd.edu.au/~scholz
|
// http://www.it.usyd.edu.au/~scholz
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ namespace {
|
|||||||
PBQPVector* buildCostVector(const Container &allowed,
|
PBQPVector* buildCostVector(const Container &allowed,
|
||||||
PBQPNum spillCost) const;
|
PBQPNum spillCost) const;
|
||||||
|
|
||||||
//! \brief Builds a PBQP interfernce matrix.
|
//! \brief Builds a PBQP interference matrix.
|
||||||
//!
|
//!
|
||||||
//! @return Either a pointer to a non-zero PBQP matrix representing the
|
//! @return Either a pointer to a non-zero PBQP matrix representing the
|
||||||
//! allocation option costs, or a null pointer for a zero matrix.
|
//! allocation option costs, or a null pointer for a zero matrix.
|
||||||
@ -142,7 +142,7 @@ namespace {
|
|||||||
const Container &allowed2,
|
const Container &allowed2,
|
||||||
PBQPNum cBenefit) const;
|
PBQPNum cBenefit) const;
|
||||||
|
|
||||||
//! \brief Helper functior for constructInitialPBQPProblem().
|
//! \brief Helper function for constructInitialPBQPProblem().
|
||||||
//!
|
//!
|
||||||
//! This function iterates over the Function we are about to allocate for
|
//! This function iterates over the Function we are about to allocate for
|
||||||
//! and computes spill costs.
|
//! and computes spill costs.
|
||||||
@ -281,8 +281,8 @@ void PBQPRegAlloc::calcSpillCosts() {
|
|||||||
assert ((mo.isUse() || mo.isDef()) &&
|
assert ((mo.isUse() || mo.isDef()) &&
|
||||||
"Not a use, not a def, what is it?");
|
"Not a use, not a def, what is it?");
|
||||||
|
|
||||||
//... Just the virtual registers. We treat loads and stores as equal.
|
//... Just the virtual registers. We treat loads and stores as equal.
|
||||||
li->getInterval(moReg).weight += powf(10.0f, loopDepth);
|
li->getInterval(moReg).weight += powf(10.0f, loopDepth);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user