Function mlir_sys::mlirOperationCreateParse
source · pub unsafe extern "C" fn mlirOperationCreateParse(
context: MlirContext,
sourceStr: MlirStringRef,
sourceName: MlirStringRef
) -> MlirOperation
Expand description
Parses an operation, giving ownership to the caller. If parsing fails a null operation will be returned, and an error diagnostic emitted.
sourceStr
may be either the text assembly format, or binary bytecode
format. sourceName
is used as the file name of the source; any IR without
locations will get a FileLineColLoc
location with sourceName
as the file
name.