llvm: Generify translator code

Continuing commit e81066d ("interp: Generify translator code"), make the
LLVM translator loop more generic.

Signed-off-by: Pekka Enberg <penberg@kernel.org>