mlir_sys

Function mlirRewriterBaseReplaceOpUsesWithinBlock

Source
pub unsafe extern "C" fn mlirRewriterBaseReplaceOpUsesWithinBlock(
    rewriter: MlirRewriterBase,
    op: MlirOperation,
    nNewValues: isize,
    newValues: *const MlirValue,
    block: MlirBlock,
)
Expand description

Find uses of from within block and replace them with to. Also notify the listener about every in-place op modification (for every use that was replaced). The optional allUsesReplaced flag is set to “true” if all uses were replaced.