
from __future__ import print_function, division, absolute_import

from numba.support.math_support import math_support

default_postpasses = {}

def register_default(name):
    def dec(f):
        default_postpasses[name] = f
        return f
    return dec

# ______________________________________________________________________
# Postpasses

@register_default('math')
def postpass_link_math(env, ee, lmod, lfunc):
    "numba.math.* -> mathcode.*"
    math_support.link_llvm_math_intrinsics(ee, lmod, math_support.llvm_library)
    return lfunc


from __future__ import print_function, division, absolute_import

from numba.support.math_support import math_support

default_postpasses = {}

def register_default(name):
    def dec(f):
        default_postpasses[name] = f
        return f
    return dec

# ______________________________________________________________________
# Postpasses

@register_default('math')
def postpass_link_math(env, ee, lmod, lfunc):
    "numba.math.* -> mathcode.*"
    math_support.link_llvm_math_intrinsics(ee, lmod, math_support.math_library,
                                           math_support.link_llvm_asm)
    return lfunc

Resolve math functions from LLVM math library
Resolve math functions from LLVM math library

  
  from __future__ import print_function, division, absolute_import
  
  from numba.support.math_support import math_support
  
  default_postpasses = {}
  
  def register_default(name):
      def dec(f):
          default_postpasses[name] = f
          return f
      return dec
  
  # ______________________________________________________________________
  # Postpasses
  
  @register_default('math')
  def postpass_link_math(env, ee, lmod, lfunc):
      "numba.math.* -> mathcode.*"
-     math_support.link_llvm_math_intrinsics(ee, lmod, math_support.llvm_library)
+     math_support.link_llvm_math_intrinsics(ee, lmod, math_support.math_library,
+                                            math_support.link_llvm_asm)
      return lfunc
  
Resolve math functions from LLVM math library
## Code Before:

from __future__ import print_function, division, absolute_import

from numba.support.math_support import math_support

default_postpasses = {}

def register_default(name):
    def dec(f):
        default_postpasses[name] = f
        return f
    return dec

# ______________________________________________________________________
# Postpasses

@register_default('math')
def postpass_link_math(env, ee, lmod, lfunc):
    "numba.math.* -> mathcode.*"
    math_support.link_llvm_math_intrinsics(ee, lmod, math_support.llvm_library)
    return lfunc

## Instruction:
Resolve math functions from LLVM math library
## Code After:

from __future__ import print_function, division, absolute_import

from numba.support.math_support import math_support

default_postpasses = {}

def register_default(name):
    def dec(f):
        default_postpasses[name] = f
        return f
    return dec

# ______________________________________________________________________
# Postpasses

@register_default('math')
def postpass_link_math(env, ee, lmod, lfunc):
    "numba.math.* -> mathcode.*"
    math_support.link_llvm_math_intrinsics(ee, lmod, math_support.math_library,
                                           math_support.link_llvm_asm)
    return lfunc
