If we can compute the length of the string pointed to by the specified pointer, return 'len+1'. If we can't, return 0.

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

uint64_t
GetStringLength(
    Value const* V,
    unsigned int CharSize = 8);

Return Value

String length plus one, or zero if unknown.

Parameters

Name

Description

V

Pointer to a potential constant string.

CharSize

Character width in bits (usually 8).

Created with MrDocs