llvm::isGuaranteedNotToBeUndef

isGuaranteedNotToBeUndef overloads

Synopses

Declared in <llvm/Analysis/ValueTracking.h>

Returns true if Reg cannot be undef, but may be poison.

bool
isGuaranteedNotToBeUndef(
    Register Reg,
    MachineRegisterInfo const& MRI,
    unsigned int Depth = 0);
» more...

Returns true if V cannot be undef, but may be poison.

bool
isGuaranteedNotToBeUndef(
    Value const* V,
    AssumptionCache* AC = nullptr,
    Instruction const* CtxI = nullptr,
    DominatorTree const* DT = nullptr,
    unsigned int Depth = 0);
» more...

Return Value

  • True if Reg cannot be undef.
  • True if V is guaranteed not undef.

Parameters

NameDescription
RegVirtual register to analyze.
MRIRegister information for the function.
DepthRecursion depth limit for the analysis.
VValue to test for freedom from undef.
ACOptional assumption cache for context-sensitive facts.
CtxIOptional context instruction for flow-sensitive analysis.
DTOptional dominator tree for flow-sensitive analysis.