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);

Parameters

NameDescription
CBBase class for all callable instructions (InvokeInst and CallInst) Holds everything related to calling a function.
AssumptionStrHelper that allows to insert a new assumption string in the known assumption set by creating a (static) object.