Factor out looking up the llvm function for the julia function

This is useful when you actually want the function object, rather
than just looking at the IR.