parameters: (llvmir, context=None)
return_statement: return mod
docstring: Create Module from a LLVM IR string
docstring_summary: Create Module from a LLVM IR string
docstring_tokens: Create Module from a LLVM IR string
function: def parse_assembly(llvmir, context=None):
      """
      Create Module from a LLVM IR string
      """
      if context is None:
          context = get_global_context()
      llvmir = _encode_string(llvmir)
      strbuf = c_char_p(llvmir)
      with ffi.OutputString() as errmsg:
          mod = ModuleRef(
              ffi.lib.LLVMPY_ParseAssembly(context, strbuf, errmsg),
              context)
          if errmsg:
              mod.close()
              raise RuntimeError("LLVM IR parsing error\n{0}".format(errmsg))
      return mod
function_tokens: def parse_assembly ( llvmir , context = None ) : if context is None : context = get_global_context ( ) llvmir = _encode_string ( llvmir ) strbuf = c_char_p ( llvmir ) with ffi . OutputString ( ) as errmsg : mod = ModuleRef ( ffi . lib . LLVMPY_ParseAssembly ( context , strbuf , errmsg ) , context ) if errmsg : mod . close ( ) raise RuntimeError ( "LLVM IR parsing error\n{0}" . format ( errmsg ) ) return mod