llvm::getPointerOperand

Return the pointer operand of a load, store, or GEP, or null otherwise.

Synopsis

Declared in <llvm/IR/Instructions.h>

Value const*
getPointerOperand(Value const* V);

Return Value

The pointer operand of a load, store, or GEP, or null otherwise.

Parameters

NameDescription
VThe instruction to inspect.