llvm::getStackPointer

The value is not guaranteed to point to anything specific. It can be used to estimate how much stack space has been used since the previous call.

Synopsis

Declared in <llvm/Support/ProgramStack.h>

uintptr_t
getStackPointer();

Return Value

an address close to the current value of the stack pointer.