ΒΆllvm::Value* emitStrLen(
    llvm::Value* Ptr,
    llvm::IRBuilderBase& B,
    const llvm::DataLayout& DL,
    const llvm::TargetLibraryInfo* TLI)

Description

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

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

Parameters

llvm::Value* Ptr
llvm::IRBuilderBase& B
const llvm::DataLayout& DL
const llvm::TargetLibraryInfo* TLI