|
LLVM
7.0.0
|
An individual sequence of instructions to be replaced with a call to an outlined function. More...
#include "llvm/CodeGen/MachineOutliner.h"
Public Member Functions | |
| unsigned | getLength () const |
| Return the number of instructions in this Candidate. More... | |
| unsigned | getStartIdx () const |
| Return the start index of this candidate. More... | |
| unsigned | getEndIdx () const |
| Return the end index of this candidate. More... | |
| void | setCallInfo (unsigned CID, unsigned CO) |
| Set the CallConstructionID and CallOverhead of this candidate to CID and CO respectively. More... | |
| unsigned | getCallOverhead () const |
| Returns the call overhead of this candidate if it is in the list. More... | |
| MachineBasicBlock::iterator & | front () |
| MachineBasicBlock::iterator & | back () |
| MachineFunction * | getMF () const |
| MachineBasicBlock * | getMBB () const |
| Candidate (unsigned StartIdx, unsigned Len, MachineBasicBlock::iterator &FirstInst, MachineBasicBlock::iterator &LastInst, MachineBasicBlock *MBB, unsigned FunctionIdx) | |
| Candidate () | |
| bool | operator< (const Candidate &RHS) const |
Used to ensure that Candidates are outlined in an order that preserves the start and end indices of other Candidates. More... | |
| void | initLRU (const TargetRegisterInfo &TRI) |
| Compute the registers that are live across this Candidate. More... | |
Public Attributes | |
| unsigned | FunctionIdx |
The index of this Candidate's OutlinedFunction in the list of OutlinedFunctions. More... | |
| bool | InCandidateList = true |
| Set to false if the candidate overlapped with another candidate. More... | |
| unsigned | CallConstructionID |
| Identifier denoting the instructions to emit to call an outlined function from this point. More... | |
| LiveRegUnits | LRU |
Contains physical register liveness information for the MBB containing this Candidate. More... | |
| LiveRegUnits | UsedInSequence |
Contains the accumulated register liveness information for the instructions in this Candidate. More... | |
| unsigned | Benefit = 0 |
| The number of instructions that would be saved by outlining every candidate of this type. More... | |
An individual sequence of instructions to be replaced with a call to an outlined function.
Definition at line 38 of file MachineOutliner.h.
|
inline |
Definition at line 120 of file MachineOutliner.h.
|
inline |
Definition at line 126 of file MachineOutliner.h.
|
inline |
Definition at line 107 of file MachineOutliner.h.
Referenced by initLRU().
|
inline |
Definition at line 106 of file MachineOutliner.h.
Referenced by initLRU().
|
inline |
Returns the call overhead of this candidate if it is in the list.
Definition at line 102 of file MachineOutliner.h.
|
inline |
Return the end index of this candidate.
Definition at line 92 of file MachineOutliner.h.
|
inline |
Return the number of instructions in this Candidate.
Definition at line 86 of file MachineOutliner.h.
|
inline |
Definition at line 109 of file MachineOutliner.h.
|
inline |
Definition at line 108 of file MachineOutliner.h.
References llvm::MachineBasicBlock::getParent().
|
inline |
Return the start index of this candidate.
Definition at line 89 of file MachineOutliner.h.
Referenced by operator<().
|
inline |
Compute the registers that are live across this Candidate.
Used by targets that need this information for cost model calculation. If a target does not need this information, then this should not be called.
Definition at line 138 of file MachineOutliner.h.
References llvm::LiveRegUnits::accumulate(), llvm::LiveRegUnits::addLiveOuts(), assert(), back(), llvm::for_each(), front(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getRegInfo(), llvm::LiveRegUnits::init(), MI, llvm::MachineBasicBlock::rbegin(), llvm::LiveRegUnits::stepBackward(), and llvm::MachineRegisterInfo::tracksLiveness().
Used to ensure that Candidates are outlined in an order that preserves the start and end indices of other Candidates.
Definition at line 130 of file MachineOutliner.h.
References getStartIdx().
Set the CallConstructionID and CallOverhead of this candidate to CID and CO respectively.
Definition at line 96 of file MachineOutliner.h.
| unsigned llvm::outliner::Candidate::Benefit = 0 |
The number of instructions that would be saved by outlining every candidate of this type.
This is a fixed value which is not updated during the candidate pruning process. It is only used for deciding which candidate to keep if two candidates overlap. The true benefit is stored in the OutlinedFunction for some given candidate.
Definition at line 118 of file MachineOutliner.h.
| unsigned llvm::outliner::Candidate::CallConstructionID |
Identifier denoting the instructions to emit to call an outlined function from this point.
Defined by the target.
Definition at line 69 of file MachineOutliner.h.
Referenced by llvm::AArch64InstrInfo::insertOutlinedCall(), and llvm::X86InstrInfo::insertOutlinedCall().
| unsigned llvm::outliner::Candidate::FunctionIdx |
The index of this Candidate's OutlinedFunction in the list of OutlinedFunctions.
Definition at line 62 of file MachineOutliner.h.
Set to false if the candidate overlapped with another candidate.
Definition at line 65 of file MachineOutliner.h.
| LiveRegUnits llvm::outliner::Candidate::LRU |
Contains physical register liveness information for the MBB containing this Candidate.
This is optionally used by the target to calculate more fine-grained cost model information.
Definition at line 76 of file MachineOutliner.h.
| LiveRegUnits llvm::outliner::Candidate::UsedInSequence |
Contains the accumulated register liveness information for the instructions in this Candidate.
This is optionally used by the target to determine which registers have been used across the sequence.
Definition at line 83 of file MachineOutliner.h.
1.8.13