Prototyped non-Python string slicing implementation.
This commit is contained in:
parent
c8e44702cb
commit
6d19096438
1 changed files with 5 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
import opcode
|
import opcode
|
||||||
import types
|
import types
|
||||||
|
import logging
|
||||||
|
|
||||||
import llvm.core as lc
|
import llvm.core as lc
|
||||||
|
|
||||||
|
|
@ -20,6 +21,8 @@ from phi_injector import PhiInjector, synthetic_opname
|
||||||
# ______________________________________________________________________
|
# ______________________________________________________________________
|
||||||
# Module data
|
# Module data
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
# XXX Stolen from numba.translate:
|
# XXX Stolen from numba.translate:
|
||||||
|
|
||||||
_compare_mapping_float = {'>':lc.FCMP_OGT,
|
_compare_mapping_float = {'>':lc.FCMP_OGT,
|
||||||
|
|
@ -208,7 +211,8 @@ class LLVMTranslator (BytecodeFlowVisitor):
|
||||||
del self.pending_phis
|
del self.pending_phis
|
||||||
del self.llvm_definitions
|
del self.llvm_definitions
|
||||||
del self.llvm_blocks
|
del self.llvm_blocks
|
||||||
if __debug__: print(ret_val)
|
if __debug__ and logger.getEffectiveLevel() < logging.DEBUG:
|
||||||
|
logger.debug(str(ret_val))
|
||||||
return ret_val
|
return ret_val
|
||||||
|
|
||||||
def enter_block (self, block):
|
def enter_block (self, block):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue