llvm::emitBCmp

Emit a call to the bcmp function.

Synopsis

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

Value*
emitBCmp(
    Value* Ptr1,
    Value* Ptr2,
    Value* Len,
    IRBuilderBase& B,
    DataLayout const& DL,
    TargetLibraryInfo const* TLI);

Return Value

The bcmp call, or null if unavailable.

Parameters

NameDescription
Ptr1First memory region to compare.
Ptr2Second memory region to compare.
LenNumber of bytes to compare.
BIR builder used to create the call.
DLData layout used for size typing.
TLITarget library info describing available libcalls.