Skip to content

Commit 4e2a179

Browse files
committed
removed Type
1 parent 29abf88 commit 4e2a179

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/source/developer/threading_implementation.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ The general pattern for using ``get_num_threads`` in code generation is
195195

196196
.. code:: python
197197
198-
import llvmlite.llvmpy.core as lc
198+
from llvmlite import ir as llvmir
199199
200200
get_num_threads = cgutils.get_or_insert_function(builder.module
201-
lc.Type.function(lc.Type.int(types.intp.bitwidth), []),
201+
llvmir.FunctionType(llvmir.IntType(types.intp.bitwidth), []),
202202
name="get_num_threads")
203203
204204
num_threads = builder.call(get_num_threads, [])

‎numba/core/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def printf(self, builder, format_string, *args):
789789
cstr = self.insert_const_string(mod, format_string)
790790
else:
791791
cstr = format_string
792-
fnty = Type.function(Type.int(), (GENERIC_POINTER,), var_arg=True)
792+
fnty = llvmir.FunctionType(llvmir.IntType(32), (GENERIC_POINTER,), var_arg=True)
793793
fn = cgutils.get_or_insert_function(mod, fnty, "printf")
794794
return builder.call(fn, (cstr,) + tuple(args))
795795

‎numba/core/pythonapi.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ def complex_imag_as_double(self, cobj):
663663
# Concrete slice API
664664
#
665665
def slice_new(self, start, stop, step):
666-
fnty = Type.function(self.pyobj, [self.pyobj, self.pyobj, self.pyobj])
666+
fnty = ir.FunctionType(self.pyobj, [self.pyobj, self.pyobj, self.pyobj])
667667
fn = self._get_function(fnty, name="PySlice_New")
668668
return self.builder.call(fn, [start, stop, step])
669669

0 commit comments

Comments
 (0)