ir: Modify util to help parsing.