canCreateUndefOrPoison overloads

Synopses

Declared in <llvm/Analysis/ValueTracking.h>

Return true if Op can create undef or poison from clean operands.

bool
canCreateUndefOrPoison(
    Operator const* Op,
    bool ConsiderFlagsAndMetadata = true);

Returns true if Reg can create undef or poison from safe operands.

bool
canCreateUndefOrPoison(
    Register Reg,
    MachineRegisterInfo const& MRI,
    bool ConsiderFlagsAndMetadata = true);

Return Value

  • True if Op can create undef or poison.

  • True if Reg can create undef or poison from safe operands.

Parameters

Name

Description

Op

Operator that may introduce undef or poison.

ConsiderFlagsAndMetadata

Whether poison‐generating flags/metadata count.

Reg

Virtual register whose defining instruction is tested.

MRI

Register information for the function.

Created with MrDocs