Iterator‐context overload of isSafeToSpeculativelyExecute.
Synopsis
Declared in <llvm/Analysis/ValueTracking.h>
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);
Return Value
True if I is safe to speculate in the given context.
Parameters
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. |
Created with MrDocs