Returns true if V is always a dereferenceable pointer with sufficient alignment.
Declared in <llvm/Analysis/Loads.h>
bool
isDereferenceableAndAlignedPointer(
Value const* V,
Type* Ty,
Align Alignment,
SimplifyQuery const& Q,
bool IgnoreFree = false);
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.
True if V is always a dereferenceable pointer with sufficient alignment.
| 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. |