Return true if argument ArgNo is known non‐null.

Synopsis

Declared in <llvm/IR/InstrTypes.h>

bool
paramHasNonNullAttr(
    unsigned int ArgNo,
    bool AllowUndefOrPoison) const;

Description

Return true if this argument has the nonnull attribute on either the CallBase instruction or the called function. Also returns true if at least one byte is known to be dereferenceable and the pointer is in addrspace(0). If AllowUndefOrPoison is true, respect the semantics of nonnull attribute and return true even if the argument can be undef or poison.

Return Value

True if the argument is known non‐null under the chosen rules.

Parameters

Name

Description

ArgNo

Zero‐based argument index.

AllowUndefOrPoison

If true, treat undef or poison as nonnull.

Created with MrDocs