Create LLVM function before type inference stage when possible