Open Table Of Contents

cbuilder Package

cbuilder Package

library Module

class numba.utility.cbuilder.library.CBuilderLibrary

Bases: object

Library of cbuilder functions.

declare(numba_cdef, env, llvm_module)
declare_registered(env)

Declare all utilities in our module

Link the CBuilder library into the target module.

numba.utility.cbuilder.library.declare(numba_cdef, env, global_module)

Declare a NumbaCDefinition in the current translation environment.

numba.utility.cbuilder.library.load_utilities()
numba.utility.cbuilder.library.register(utility)

numbacdef Module

class numba.utility.cbuilder.numbacdef.NumbaCDefinition(env, llvm_module)

Bases: llvm_cbuilder.builder.CDefinition

Numba utility simplifying dealing with llvm_cbuilder.

cbuilder_cfunc(numba_cdef)

Get a CFunc from a NumbaCDefinition

external_cfunc(func_name)

Get a CFunc from an external function

set_signature(env, context)

Set the cbuilder signature through _argtys_ and optionally the _retty_ attributes.

signature()

refcounting Module

class numba.utility.cbuilder.refcounting.Py_DECREF(env, llvm_module)

Bases: numba.utility.cbuilder.refcounting.Refcounter

LLVM inline version of Py_DECREF

body(obj)
class numba.utility.cbuilder.refcounting.Py_INCREF(env, llvm_module)

Bases: numba.utility.cbuilder.refcounting.Refcounter

LLVM inline version of Py_INCREF

body(obj)
class numba.utility.cbuilder.refcounting.Py_XDECREF(env, llvm_module)

Bases: numba.utility.cbuilder.refcounting.Refcounter

LLVM inline version of Py_XDECREF

body(obj)
class numba.utility.cbuilder.refcounting.Py_XINCREF(env, llvm_module)

Bases: numba.utility.cbuilder.refcounting.Refcounter

LLVM inline version of Py_XINCREF

body(obj)
class numba.utility.cbuilder.refcounting.Refcounter(env, llvm_module)

Bases: numba.utility.cbuilder.numbacdef.NumbaCDefinition

set_signature(env, context)
numba.utility.cbuilder.refcounting.add_refcnt(obj_p, refcnt)
numba.utility.cbuilder.refcounting.const(ctemp, val)
numba.utility.cbuilder.refcounting.deref(obj_p)
numba.utility.cbuilder.refcounting.not_null(ptr)
numba.utility.cbuilder.refcounting.ob_refcnt(obj_p)
numba.utility.cbuilder.refcounting.p_refcnt(obj_p)