def jit(signature_or_function=None, locals={}, target='cpu', cache=False, **options):
 if ('argtypes' in options):
  raise DeprecationError(_msg_deprecated_signature_arg.format('argtypes'))
 if ('restype' in options):
  raise DeprecationError(_msg_deprecated_signature_arg.format('restype'))
 if (signature_or_function is None):
  pyfunc = None
  sigs = None
 elif isinstance(signature_or_function, list):
  pyfunc = None
  sigs = signature_or_function
 elif sigutils.is_signature(signature_or_function):
  pyfunc = None
  sigs = [signature_or_function]
 else:
  pyfunc = signature_or_function
  sigs = None
 wrapper = _jit(sigs, locals=locals, target=target, cache=cache, targetoptions=options)
 if (pyfunc is not None):
  return wrapper(pyfunc)
 else:
  return wrapper

def jit ( signature_or_function = None , locals = { } , target = 'cpu' , cache = False , ** options ) : if ( 'argtypes' in options ) : raise DeprecationError ( _msg_deprecated_signature_arg . format ( 'argtypes' ) ) if ( 'restype' in options ) : raise DeprecationError ( _msg_deprecated_signature_arg . format ( 'restype' ) ) if ( signature_or_function is None ) : pyfunc = None sigs = None elif isinstance ( signature_or_function , list ) : pyfunc = None sigs = signature_or_function elif sigutils . is_signature ( signature_or_function ) : pyfunc = None sigs = [ signature_or_function ] else : pyfunc = signature_or_function sigs = None wrapper = _jit ( sigs , locals = locals , target = target , cache = cache , targetoptions = options ) if ( pyfunc is not None ) : return wrapper ( pyfunc ) else : return wrapper
jit compile a python function conforming to the hsa-python .