ir: Add some util functions.
volt: Add untested and useless mangle string to type decoder.
volt: Inout is mangled as 'n'.