Utility for iterating for high-level IR