move some code into new slang_ir.c file
4 files changed