Return the value that a load from C would produce if it is constant and determinable. If this is not determinable, return null.
Synopsis
Declared in <llvm/Analysis/ConstantFolding.h>
Constant*
ConstantFoldLoadFromConstPtr(
Constant* C,
Type* Ty,
DataLayout const& DL);
Return Value
This is an important base class in LLVM. It provides the common facilities of all constant values in an LLVM program. A constant is a value that is immutable at runtime. Functions are constants because their address is immutable. Same with global variables.
Parameters
Name |
Description |
C |
This is an important base class in LLVM. It provides the common facilities of all constant values in an LLVM program. A constant is a value that is immutable at runtime. Functions are constants because their address is immutable. Same with global variables. |
Ty |
The instances of the Type class are immutable: once they are created, they are never changed. Also note that only one instance of a particular type is ever created. Thus seeing if two types are equal is a matter of doing a trivial pointer comparison. To enforce that no two equal instances are created, Type instances can only be created via static factory methods in class Type and in derived classes. Once allocated, Types are never free'd. |
DL |
A parsed version of the target data layout string in and methods for querying it. |
Created with MrDocs