isSafeToSpeculativelyExecute overloads
Declared in <llvm/Analysis/ValueTracking.h>
Iterator-context overload of isSafeToSpeculativelyExecute.
bool
isSafeToSpeculativelyExecute(
Instruction const* I,
BasicBlock::iterator CtxI,
AssumptionCache* AC = nullptr,
DominatorTree const* DT = nullptr,
TargetLibraryInfo const* TLI = nullptr,
bool UseVariableInfo = true,
bool IgnoreUBImplyingAttrs = true);
» more...
Return true if the instruction does not have any effects besides calculating the result and does not have undefined behavior.
bool
isSafeToSpeculativelyExecute(
Instruction const* I,
Instruction const* CtxI = nullptr,
AssumptionCache* AC = nullptr,
DominatorTree const* DT = nullptr,
TargetLibraryInfo const* TLI = nullptr,
bool UseVariableInfo = true,
bool IgnoreUBImplyingAttrs = true);
» more...
True if I is safe to speculate in the given context.
| Name | Description |
|---|---|
| I | Instruction to test for speculative safety. |
| CtxI | Context position expressed as a basic-block iterator. |
| AC | Optional assumption cache for context-sensitive facts. |
| DT | Optional dominator tree for context-sensitive analysis. |
| TLI | Optional target library info. |
| UseVariableInfo | Whether non-constant operand info may be used. |
| IgnoreUBImplyingAttrs | Whether to ignore UB-implying attributes. |