Skip to content

Commit

Permalink
New compiler.
Browse files Browse the repository at this point in the history
As title.
  • Loading branch information
stuartarchibald committed Sep 3, 2019
1 parent 60d2bdd commit 3090fe7
Show file tree
Hide file tree
Showing 29 changed files with 2,169 additions and 1,378 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ exclude =
numba/smartarray.py
numba/transforms.py
numba/tracing.py
numba/compiler.py
numba/ctypes_support.py
numba/withcontexts.py
numba/_version.py
Expand Down
6 changes: 3 additions & 3 deletions numba/ccallback.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .targets import registry
from .typing import signature
from .typing.ctypes_utils import to_ctypes

from .compiler_lock import global_compiler_lock

class _CFuncCompiler(_FunctionCompiler):

Expand All @@ -38,7 +38,7 @@ class CFunc(object):
_targetdescr = registry.cpu_target

def __init__(self, pyfunc, sig, locals, options,
pipeline_class=compiler.Pipeline):
pipeline_class=compiler.Compiler):
args, return_type = sig
if return_type is None:
raise TypeError("C callback needs an explicit return type")
Expand All @@ -60,7 +60,7 @@ def __init__(self, pyfunc, sig, locals, options,
def enable_caching(self):
self._cache = FunctionCache(self._pyfunc)

@compiler.global_compiler_lock
@global_compiler_lock
def compile(self):
# Try to load from cache
cres = self._cache.load_overload(self._sig, self._targetdescr.target_context)
Expand Down

0 comments on commit 3090fe7

Please sign in to comment.