Returns true if pointer From can be replaced with equal pointer To.
Synopsis
Declared in <llvm/Analysis/Loads.h>
bool
canReplacePointersIfEqual(
Value const* From,
Value const* To,
DataLayout const& DL);
Description
The pointers are deemed equal through some means (e.g. information from conditions). NOTE: The current implementation allows replacement in Icmp and PtrToInt instructions, as well as when we are replacing with a null pointer. Additionally it also allows replacement of pointers when both pointers have the same underlying object.
Return Value
True if pointer From can be replaced with equal pointer To.
Parameters
Name |
Description |
From |
Pointer value that would be replaced. |
To |
Pointer value that would replace |
DL |
Data layout used for pointer‐size reasoning. |
Created with MrDocs