Skip to main content

mlirIntegerAttrGetValueWords

Function mlirIntegerAttrGetValueWords 

Source
pub unsafe extern "C" fn mlirIntegerAttrGetValueWords(
    attr: MlirAttribute,
    words: *mut u64,
)
Expand description

Copies the 64-bit words making up the integer attribute’s APInt value into the provided buffer. The buffer must have space for at least mlirIntegerAttrGetValueNumWords(attr) elements. Words are stored in little-endian order (least significant word first). The sign information is not encoded in the words themselves; use the type’s signedness to interpret the value correctly.