mlir_sys

Function mlirRewriterBaseReplaceOpWithOperation

Source
pub unsafe extern "C" fn mlirRewriterBaseReplaceOpWithOperation(
    rewriter: MlirRewriterBase,
    op: MlirOperation,
    newOp: MlirOperation,
)
Expand description

Replace the results of the given (original) operation with the specified new op (replacement). The result types of the two ops must match. The original op is erased.