mlir_sys

Function mlirUnmanagedDenseResourceElementsAttrGet

Source
pub unsafe extern "C" fn mlirUnmanagedDenseResourceElementsAttrGet(
    shapedType: MlirType,
    name: MlirStringRef,
    data: *mut c_void,
    dataLength: usize,
    dataAlignment: usize,
    dataIsMutable: bool,
    deleter: Option<unsafe extern "C" fn(userData: *mut c_void, data: *const c_void, size: usize, align: usize)>,
    userData: *mut c_void,
) -> MlirAttribute
Expand description

Unlike the typed accessors below, constructs the attribute with a raw data buffer and no type/alignment checking. Use a more strongly typed accessor if possible. If dataIsMutable is false, then an immutable AsmResourceBlob will be created and that passed data contents will be treated as const. If the deleter is non NULL, then it will be called when the data buffer can no longer be accessed (passing userData to it).