mlir_sys

Function mlirRewriterBaseInlineBlockBefore

Source
pub unsafe extern "C" fn mlirRewriterBaseInlineBlockBefore(
    rewriter: MlirRewriterBase,
    source: MlirBlock,
    op: MlirOperation,
    nArgValues: isize,
    argValues: *const MlirValue,
)
Expand description

Inline the operations of block ‘source’ before the operation ‘op’. The source block will be deleted and must have no uses. ‘argValues’ is used to replace the block arguments of ‘source’

The source block must have no successors. Otherwise, the resulting IR would have unreachable operations.