mlir_sys

Function mlirMergeSymbolsIntoFromClone

Source
pub unsafe extern "C" fn mlirMergeSymbolsIntoFromClone(
    target: MlirOperation,
    other: MlirOperation,
) -> MlirLogicalResult
Expand description

Merge the symbols from other into target, potentially renaming them to avoid conflicts. Private symbols may be renamed during the merge, public symbols must have at most one declaration. A name conflict in public symbols is reported as an error before returning a failure.

Note that this clones the other operation unlike the C++ counterpart that takes ownership.