LLVM 18.0.0git
|
Flags controlling how much is checked when sinking or hoisting instructions. More...
#include "llvm/Transforms/Utils/LoopUtils.h"
Public Member Functions | |
SinkAndHoistLICMFlags (unsigned LicmMssaOptCap, unsigned LicmMssaNoAccForPromotionCap, bool IsSink, Loop &L, MemorySSA &MSSA) | |
SinkAndHoistLICMFlags (bool IsSink, Loop &L, MemorySSA &MSSA) | |
void | setIsSink (bool B) |
bool | getIsSink () |
bool | tooManyMemoryAccesses () |
bool | tooManyClobberingCalls () |
void | incrementClobberingCalls () |
Protected Attributes | |
bool | NoOfMemAccTooLarge = false |
unsigned | LicmMssaOptCounter = 0 |
unsigned | LicmMssaOptCap |
unsigned | LicmMssaNoAccForPromotionCap |
bool | IsSink |
Flags controlling how much is checked when sinking or hoisting instructions.
The number of memory access in the loop (and whether there are too many) is determined in the constructors when using MemorySSA.
Definition at line 118 of file LoopUtils.h.
llvm::SinkAndHoistLICMFlags::SinkAndHoistLICMFlags | ( | unsigned | LicmMssaOptCap, |
unsigned | LicmMssaNoAccForPromotionCap, | ||
bool | IsSink, | ||
Loop & | L, | ||
MemorySSA & | MSSA | ||
) |
Definition at line 377 of file LICM.cpp.
References llvm::MemorySSA::getBlockAccesses(), LicmMssaNoAccForPromotionCap, and NoOfMemAccTooLarge.
|
inline |
Definition at line 128 of file LoopUtils.h.
References IsSink.
|
inline |
Definition at line 131 of file LoopUtils.h.
References LicmMssaOptCounter.
|
inline |
Definition at line 127 of file LoopUtils.h.
|
inline |
Definition at line 130 of file LoopUtils.h.
References LicmMssaOptCap, and LicmMssaOptCounter.
|
inline |
Definition at line 129 of file LoopUtils.h.
References NoOfMemAccTooLarge.
|
protected |
Definition at line 138 of file LoopUtils.h.
Referenced by getIsSink(), and setIsSink().
|
protected |
Definition at line 137 of file LoopUtils.h.
Referenced by SinkAndHoistLICMFlags().
|
protected |
Definition at line 136 of file LoopUtils.h.
Referenced by tooManyClobberingCalls().
|
protected |
Definition at line 135 of file LoopUtils.h.
Referenced by incrementClobberingCalls(), and tooManyClobberingCalls().
|
protected |
Definition at line 134 of file LoopUtils.h.
Referenced by SinkAndHoistLICMFlags(), and tooManyMemoryAccesses().