summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SpillPlacement.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-07 17:27:46 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-07 17:27:46 +0000
commit7b41fbe87234f3ceef6ae11209730cbed4b69092 (patch)
treef42d6deecb651144506df2eeb1fd03ed7cfaad24 /lib/CodeGen/SpillPlacement.h
parent949666ea16214e1b7e79fc8e653b06ad8b93dd5a (diff)
downloadllvm-7b41fbe87234f3ceef6ae11209730cbed4b69092.tar.gz
llvm-7b41fbe87234f3ceef6ae11209730cbed4b69092.tar.bz2
llvm-7b41fbe87234f3ceef6ae11209730cbed4b69092.tar.xz
Extract SpillPlacement::addLinks for handling the special transparent blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SpillPlacement.h')
-rw-r--r--lib/CodeGen/SpillPlacement.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/SpillPlacement.h b/lib/CodeGen/SpillPlacement.h
index a67785ddf9..46e64e6fcb 100644
--- a/lib/CodeGen/SpillPlacement.h
+++ b/lib/CodeGen/SpillPlacement.h
@@ -89,11 +89,12 @@ public:
/// addConstraints - Add constraints and biases. This method may be called
/// more than once to accumulate constraints.
/// @param LiveBlocks Constraints for blocks that have the variable live in or
- /// live out. DontCare/DontCare means the variable is live
- /// through the block. DontCare/X means the variable is live
- /// out, but not live in.
+ /// live out.
void addConstraints(ArrayRef<BlockConstraint> LiveBlocks);
+ /// addLinks - Add transparent blocks with the given numbers.
+ void addLinks(ArrayRef<unsigned> Links);
+
/// getPositiveNodes - Return the total number of graph nodes with a positive
/// bias after adding constraints.
unsigned getPositiveNodes() const { return PositiveNodes; }