|
LLVM
10.0.0
|
Object returned by analyzeLoopForPipelining. More...
#include "llvm/CodeGen/TargetInstrInfo.h"
Public Member Functions | |
| virtual | ~PipelinerLoopInfo () |
| virtual bool | shouldIgnoreForPipelining (const MachineInstr *MI) const =0 |
| Return true if the given instruction should not be pipelined and should be ignored. More... | |
| virtual Optional< bool > | createTripCountGreaterCondition (int TC, MachineBasicBlock &MBB, SmallVectorImpl< MachineOperand > &Cond)=0 |
| Create a condition to determine if the trip count of the loop is greater than TC. More... | |
| virtual void | adjustTripCount (int TripCountAdjust)=0 |
| Modify the loop such that the trip count is OriginalTC + TripCountAdjust. More... | |
| virtual void | setPreheader (MachineBasicBlock *NewPreheader)=0 |
| Called when the loop's preheader has been modified to NewPreheader. More... | |
| virtual void | disposed ()=0 |
| Called when the loop is being removed. More... | |
Object returned by analyzeLoopForPipelining.
Allows software pipelining implementations to query attributes of the loop being pipelined and to apply target-specific updates to the loop once pipelining is complete.
Definition at line 688 of file TargetInstrInfo.h.
|
virtual |
Definition at line 1293 of file TargetInstrInfo.cpp.
|
pure virtual |
Modify the loop such that the trip count is OriginalTC + TripCountAdjust.
|
pure virtual |
Create a condition to determine if the trip count of the loop is greater than TC.
If the trip count is statically known to be greater than TC, return true. If the trip count is statically known to be not greater than TC, return false. Otherwise return nullopt and fill out Cond with the test condition.
|
pure virtual |
Called when the loop is being removed.
Any instructions in the preheader should be removed.
Once this function is called, no other functions on this object are valid; the loop has been removed.
|
pure virtual |
Called when the loop's preheader has been modified to NewPreheader.
|
pure virtual |
Return true if the given instruction should not be pipelined and should be ignored.
An example could be a loop comparison, or induction variable update with no users being pipelined.
1.8.13