ConstantFoldLoadFromConstPtr overloads

Synopses

Declared in <llvm/Analysis/ConstantFolding.h>

Return the value that a load from C would produce if it is constant and determinable. If this is not determinable, return null.

Return the value that a load from C with offset Offset would produce if it is constant and determinable. If this is not determinable, return null.

Return Value

The loaded constant of type Ty, or null if not determinable.

Parameters

Name

Description

C

Pointer constant being loaded from.

Ty

Type of the load result.

DL

Data layout used for type sizes and pointer widths.

Offset

Byte offset from C at which to load.

Created with MrDocs