Return a uniform bit‐pattern constant reinterpreted as Ty, or null.
Synopsis
Declared in <llvm/Analysis/ConstantFolding.h>
Constant*
ConstantFoldLoadFromUniformValue(
Constant* C,
Type* Ty,
DataLayout const& DL);
Description
If C is a uniform value where all bits are the same (either all zero, all ones, all undef or all poison), return the corresponding uniform value in the new type. If the value is not uniform or the result cannot be represented, return null.
Return Value
The uniform value reinterpreted as Ty, or null if not possible.
Parameters
Name |
Description |
C |
Constant tested for a uniform bit pattern. |
Ty |
Destination type for the uniform value. |
DL |
Data layout used for type sizes and pointer widths. |
Created with MrDocs