If the specified value can be set by repeating the same byte in memory, return the i8 value that it is represented with.
Synopsis
Declared in <llvm/Analysis/ValueTracking.h>
Value*
isBytewiseValue(
Value* V,
DataLayout const& DL);
Description
This is true for all i8 values obviously, but is also true for i32 0, i32 ‐1, i16 0xF0F0, double 0.0 etc. If the value can't be handled with a repeated byte store (e.g. i16 0x1234), return null. If the value is entirely undef and padding, return undef.
Return Value
Repeated byte value, undef, or null if not bytewise.
Parameters
Name |
Description |
V |
Value that may be representable as a repeated byte. |
DL |
Data layout used to interpret the value's in‐memory layout. |
Created with MrDocs