parameters: (self, builder, ty, val)
docstring: Return a LLVM constant representing value *val* of Numba type *ty*.
docstring_summary: Return a LLVM constant representing value *val* of Numba type *ty*.
docstring_tokens: Return a LLVM constant representing value * val * of Numba type * ty * .
function: def get_constant_generic(self, builder, ty, val):
          """
          Return a LLVM constant representing value *val* of Numba type *ty*.
          """
          try:
              impl = self._get_constants.find((ty,))
              return impl(self, builder, ty, val)
          except NotImplementedError:
              raise NotImplementedError("Cannot lower constant of type '%s'" % (ty,))
function_tokens: def get_constant_generic ( self , builder , ty , val ) : try : impl = self . _get_constants . find ( ( ty , ) ) return impl ( self , builder , ty , val ) except NotImplementedError : raise NotImplementedError ( "Cannot lower constant of type '%s'" % ( ty , ) )