ΒΆbool isDereferenceableAndAlignedPointer(
    const llvm::Value* V,
    llvm::Align Alignment,
    const llvm::APInt& Size,
    const llvm::DataLayout& DL,
    const llvm::Instruction* CtxI = nullptr,
    const llvm::DominatorTree* DT = nullptr)

Description

Returns true if V is always dereferenceable for Size byte with alignment greater or equal than requested. If the context instruction is specified performs context-sensitive analysis and returns true if the pointer is dereferenceable at the specified instruction.

Declared at: llvm/include/llvm/Analysis/Loads.h:49

Parameters

const llvm::Value* V
llvm::Align Alignment
const llvm::APInt& Size
const llvm::DataLayout& DL
const llvm::Instruction* CtxI = nullptr
const llvm::DominatorTree* DT = nullptr