Function mlir_sys::mlirAffineMapCompressUnusedSymbols
source · pub unsafe extern "C" fn mlirAffineMapCompressUnusedSymbols(
affineMaps: *mut MlirAffineMap,
size: isize,
result: *mut c_void,
populateResult: Option<unsafe extern "C" fn(res: *mut c_void, idx: isize, m: MlirAffineMap)>
)Expand description
Returns the simplified affine map resulting from dropping the symbols that
do not appear in any of the individual maps in affineMaps.
Asserts that all maps in affineMaps are normalized to the same number of
dims and symbols.
Takes a callback populateResult to fill the res container with value
m at entry idx. This allows returning without worrying about ownership
considerations.