llvm: Remove unused currentIrFunc
llvm: Wrap more functions
llvm: Handle int <-> pointer casts
semantic: Fix storage for AAs