#NEWLINE# def visit_Instruction( self , instr ) : #NEWLINE# #INDENT# if ( instr . type == ir . IntType ( 64 ) ) : #NEWLINE# #INDENT# if ( instr . opname in [ 'srem' , 'urem' , 'sdiv' , 'udiv' ] ) : #NEWLINE# #INDENT# name = 'numba.math.{op}' . format ( op = instr . opname ) #NEWLINE# fn = self . module . globals . get ( name ) #NEWLINE# if ( fn is None ) : #NEWLINE# #INDENT# opty = instr . type #NEWLINE# sdivfnty = ir . FunctionType ( opty , [ opty , opty ] ) #NEWLINE# fn = ir . Function ( self . module , sdivfnty , name = name ) #NEWLINE# #UNINDENT# repl = ir . CallInstr ( parent = instr . parent , func = fn , args = instr . operands , name = instr . name ) #NEWLINE# instr . parent . replace ( instr , repl )