llvm::emitSNPrintf

Emit a call to the snprintf function.

Synopsis

Declared in <llvm/Transforms/Utils/BuildLibCalls.h>

Value*
emitSNPrintf(
    Value* Dest,
    Value* Size,
    Value* Fmt,
    ArrayRef<Value*> Args,
    IRBuilderBase& B,
    TargetLibraryInfo const* TLI);

Return Value

The snprintf call, or null if unavailable.

Parameters

NameDescription
DestDestination buffer pointer.
SizeSize of the destination buffer.
FmtFormat string pointer.
ArgsAdditional variadic format arguments.
BIR builder used to create the call.
TLITarget library info describing available libcalls.