Function mlir_sys::mlirOperationCreate
source · pub unsafe extern "C" fn mlirOperationCreate(
state: *mut MlirOperationState
) -> MlirOperation
Expand description
Creates an operation and transfers ownership to the caller. Note that caller owned child objects are transferred in this call and must not be further used. Particularly, this applies to any regions added to the state (the implementation may invalidate any such pointers).
This call can fail under the following conditions, in which case, it will return a null operation and emit diagnostics:
- Result type inference is enabled and cannot be performed.