Lines Matching +full:block +full:- +full:number

1 //===- SpillPlacement.h - Optimal Spill Code Placement ---------*- C++ -*--===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
21 // block entries and exits. Spill code placement inside a basic block is not
24 //===----------------------------------------------------------------------===//
60 // Block frequencies are computed once. Indexed by block number.
64 /// its inputs falls in the open interval (-Threshold;Threshold).
76 /// BorderConstraint - A basic block has separate constraints for entry and
79 DontCare, ///< Block doesn't care / variable not live.
80 PrefReg, ///< Block entry/exit prefers a register.
81 PrefSpill, ///< Block entry/exit prefers a stack slot.
82 PrefBoth, ///< Block entry prefers both register and stack.
86 /// BlockConstraint - Entry and exit constraints for a basic block.
88 unsigned Number; ///< Basic block number (from MBB::getNumber()). member
89 BorderConstraint Entry : 8; ///< Constraint on block entry.
90 BorderConstraint Exit : 8; ///< Constraint on block exit.
92 /// True when this block changes the value of the live range. This means
93 /// the block has a non-PHI def. When this is false, a live-in value on
94 /// the stack can be live-out on the stack without inserting a spill.
101 /// prepare - Reset state and prepare for a new spill placement computation.
110 /// addConstraints - Add constraints and biases. This method may be called
116 /// addPrefSpill - Add PrefSpill constraints to all blocks listed. This is
120 /// @param Blocks Array of block numbers that prefer to spill in and out.
124 /// addLinks - Add transparent blocks with the given numbers.
127 /// scanActiveBundles - Perform an initial scan of all bundles activated by
134 /// iterate - Update the network iteratively until convergence, or new bundles
138 /// getRecentPositive - Return an array of bundles that became positive during
142 /// finish - Compute the optimal spill code placement given the
144 /// possible number of PrefX constraints will be violated, weighted by
151 /// getBlockFrequency - Return the estimated block execution frequency per
153 BlockFrequency getBlockFrequency(unsigned Number) const { in getBlockFrequency() argument
154 return BlockFrequencies[Number]; in getBlockFrequency()