def _DECREF(obj): if obj != llpy_null: refcnt_p = gep(obj, (0, li32(0))) refcnt = load(refcnt_p) if refcnt > 1: refcnt_p[0] -= 1 else: Py_DecRef(obj)
def __INCREF(obj): refcnt_p = gep(obj, (0, li32(0))) refcnt_p[0] += 1
def _Py_GetType(arg): return load(gep(arg, (0, li32(1))))