mlir_sys

Function mlirRewriterBaseCreateBlockBefore

Source
pub unsafe extern "C" fn mlirRewriterBaseCreateBlockBefore(
    rewriter: MlirRewriterBase,
    insertBefore: MlirBlock,
    nArgTypes: isize,
    argTypes: *const MlirType,
    locations: *const MlirLocation,
) -> MlirBlock
Expand description

Add new block with ‘argTypes’ arguments and set the insertion point to the end of it. The block is placed before ‘insertBefore’. locs contains the locations of the inserted arguments, and should match the size of argTypes.