llvm::isImpliedByDomCondition

isImpliedByDomCondition overloads

Synopses

Declared in <llvm/Analysis/ValueTracking.h>

Return the boolean condition value in the context of the given instruction if it is known based on dominating conditions.

std::optional<bool>
isImpliedByDomCondition(
    Value const* Cond,
    Instruction const* ContextI,
    DataLayout const& DL);
» more...

Return whether a compare is known from dominating conditions at ContextI.

std::optional<bool>
isImpliedByDomCondition(
    CmpPredicate Pred,
    Value const* LHS,
    Value const* RHS,
    Instruction const* ContextI,
    DataLayout const& DL);
» more...

Return Value

  • Known boolean value of Cond, or nullopt if unknown.
  • Known boolean value of the compare, or nullopt if unknown.

Parameters

NameDescription
CondBoolean condition to evaluate in context.
ContextIInstruction providing the dominating-condition context.
DLData layout used by the implication analysis.
PredPredicate of the compare to evaluate.
LHSLeft-hand operand of the compare.
RHSRight-hand operand of the compare.