llvm::SCEVExpander::expandCodeForPredicate

Expand Pred to an i1 value inserted at Loc.

Synopsis

Declared in <llvm/Transforms/Utils/ScalarEvolutionExpander.h>

Value*
expandCodeForPredicate(
    SCEVPredicate const* Pred,
    Instruction* Loc);

Description

The result will have a value of 0 when the predicate is false and 1 otherwise.

Return Value

An i1 value that is true when the predicate holds.

Parameters

NameDescription
PredPredicate to evaluate.
LocInstruction at which the predicate code is inserted.