ir: More util stuff.