llvm::isBaseOfObject

Return true if V is known to be the base of its memory object.

Synopsis

Declared in <llvm/Analysis/AliasAnalysis.h>

bool
isBaseOfObject(Value const* V);

Description

This implies that any address less than V must be out of bounds for the underlying object. Note that just being isIdentifiedObject() is not enough

  • For example, a negative offset from a noalias argument or call can be inbounds w.r.t the actual underlying object.

Return Value

True if V is known to be the base of its memory object.

Parameters

NameDescription
VPointer value to test.