mlir_sys

Function mlirRewriterBaseReplaceAllOpUsesWithOperation

Source
pub unsafe extern "C" fn mlirRewriterBaseReplaceAllOpUsesWithOperation(
    rewriter: MlirRewriterBase,
    from: MlirOperation,
    to: MlirOperation,
)
Expand description

Find uses of from and replace them with to. Also notify the listener about every in-place op modification (for every use that was replaced) and that the from operation is about to be replaced.