diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-07-23 03:10:19 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-07-23 03:10:19 +0000 |
commit | e60f103d2d3541e57a6ca8d788e959e03b615e5f (patch) | |
tree | b63125276ada631b7267124f29f96e8f3cba15ee /lib/CodeGen/SpillPlacement.h | |
parent | c7931fd725b390142f9112952b1426560000e6b4 (diff) | |
download | llvm-e60f103d2d3541e57a6ca8d788e959e03b615e5f.tar.gz llvm-e60f103d2d3541e57a6ca8d788e959e03b615e5f.tar.bz2 llvm-e60f103d2d3541e57a6ca8d788e959e03b615e5f.tar.xz |
Add a simple method for marking blocks with interference in and out.
This method matches addLinks - All the listed blocks are considered to
have interference, so they add a negative bias to their bundles.
This could also be done by addConstraints, but that requires building a
separate BlockConstraint array.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SpillPlacement.h')
-rw-r--r-- | lib/CodeGen/SpillPlacement.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SpillPlacement.h b/lib/CodeGen/SpillPlacement.h index 6952ad8009..9a4fc6dc97 100644 --- a/lib/CodeGen/SpillPlacement.h +++ b/lib/CodeGen/SpillPlacement.h @@ -96,6 +96,10 @@ public: /// live out. void addConstraints(ArrayRef<BlockConstraint> LiveBlocks); + /// addPrefSpill - Add PrefSpill constraints to all blocks listed. + /// @param Blocks Array of block numbers that prefer to spill in and out. + void addPrefSpill(ArrayRef<unsigned> Blocks); + /// addLinks - Add transparent blocks with the given numbers. void addLinks(ArrayRef<unsigned> Links); |