ΒΆllvm::Value* emitStrNLen(
    llvm::Value* Ptr,
    llvm::Value* MaxLen,
    IRBuilder<>& B,
    const llvm::DataLayout& DL,
    const llvm::TargetLibraryInfo* TLI)

Description

Emit a call to the strnlen function to the builder, for the specified pointer. Ptr is required to be some pointer type, MaxLen must be of size_t type, and the return value has 'intptr_t' type.

Declared at: llvm/include/llvm/Transforms/Utils/BuildLibCalls.h:61

Parameters

llvm::Value* Ptr
llvm::Value* MaxLen
IRBuilder<>& B
const llvm::DataLayout& DL
const llvm::TargetLibraryInfo* TLI