llvm::lowerObjectSizeCall

Try to turn a call to @llvm.objectsize into an integer value.

Synopses

Declared in <llvm/Analysis/MemoryBuiltins.h>

Try to turn a call to @llvm.objectsize into an integer value.

Value*
lowerObjectSizeCall(
    IntrinsicInst* ObjectSize,
    DataLayout const& DL,
    TargetLibraryInfo const* TLI,
    bool MustSucceed);
» more...

Try to turn a call to @llvm.objectsize into an integer value.

Value*
lowerObjectSizeCall(
    IntrinsicInst* ObjectSize,
    DataLayout const& DL,
    TargetLibraryInfo const* TLI,
    AAResults* AA,
    bool MustSucceed,
    SmallVectorImpl<Instruction*>* InsertedInstructions = nullptr);
» more...

Return Value

An integer Value for the object size, or nullptr on failure.

Parameters

NameDescription
ObjectSizeIntrinsic call to lower.
DLData layout used for type and pointer sizing.
TLITarget library info used to identify allocation functions.
MustSucceedWhen true, always produce a value, possibly conservative.
AAOptional alias analysis results for more precise evaluation.
InsertedInstructionsOptional list that receives any new instructions.