llvm::hasAssumption

Return true if CB or the callee has the assumption AssumptionStr attached.

Synopsis

Declared in <llvm/IR/Assumptions.h>

bool
hasAssumption(
    CallBase const& CB,
    KnownAssumptionString const& AssumptionStr);

Return Value

true if CB or its callee has the assumption attached.

Parameters

NameDescription
CBCall site to inspect for the assumption.
AssumptionStrKnown assumption string to look for.