Returns true if V is always a dereferenceable pointer with sufficient alignment.
Synopsis
Declared in <llvm/Analysis/Loads.h>
bool
isDereferenceableAndAlignedPointer(
Value const* V,
Type* Ty,
Align Alignment,
SimplifyQuery const& Q,
bool IgnoreFree = false);
Description
The alignment must be 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. If IgnoreFree is set, ignore potential frees of the object.
Return Value
True if V is always a dereferenceable pointer with sufficient alignment.
Parameters
Name |
Description |
V |
Pointer value to check. |
Ty |
Type used to determine the access size. |
Alignment |
Minimum required alignment. |
Q |
Query providing data layout and optional context instruction. |
IgnoreFree |
When true, ignore potential frees of the object. |
Created with MrDocs