Extract value of C at the given Offset reinterpreted as Ty. If bits past the end of C are accessed, they are assumed to be poison.
Synopsis
Declared in <llvm/Analysis/ConstantFolding.h>
Constant*
ConstantFoldLoadFromConst(
Constant* C,
Type* Ty,
APInt const& Offset,
DataLayout const& DL);
Return Value
The constant value of type Ty at Offset in C.
Parameters
Name |
Description |
C |
Constant whose bytes are read. |
Ty |
Type to reinterpret the loaded bits as. |
Offset |
Byte offset into |
DL |
Data layout used for type sizes and pointer widths. |
Created with MrDocs