'Return a LLVM constant representing value *val* of Numba type *ty*.'

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,)))
