Extract value of C reinterpreted as Ty. Same as previous API with zero offset.

Synopsis

Declared in <llvm/Analysis/ConstantFolding.h>

Constant*
ConstantFoldLoadFromConst(
    Constant* C,
    Type* Ty,
    DataLayout const& DL);

Return Value

The constant value of type Ty reinterpreted from C.

Parameters

Name

Description

C

Constant whose bytes are read.

Ty

Type to reinterpret the loaded bits as.

DL

Data layout used for type sizes and pointer widths.

Created with MrDocs