llvm::parseWidenableBranch

parseWidenableBranch overloads

Synopses

Declared in <llvm/Analysis/GuardUtils.h>

Parses a widenable branch and returns Uses so they can be modified.

bool
parseWidenableBranch(
    User* U,
    Use*& Cond,
    Use*& WC,
    BasicBlock*& IfTrueBB,
    BasicBlock*& IfFalseBB);
» more...

Parses a widenable branch and returns its condition, widenable condition, and successor blocks.

bool
parseWidenableBranch(
    User const* U,
    Value*& Condition,
    Value*& WidenableCondition,
    BasicBlock*& IfTrueBB,
    BasicBlock*& IfFalseBB);
» more...

Return Value

True if U matches the widenable branch pattern.

Parameters

NameDescription
UUser expected to be the widenable branch.
CondSet to the Use of the non-widenable condition, or null.
WCSet to the Use of the widenable.condition call result.
IfTrueBBSet to the true successor of the branch.
IfFalseBBSet to the false successor of the branch.
ConditionSet to the non-widenable part of the branch condition.
WidenableConditionSet to the widenable.condition call result.