ir: Make Linkage a regular 8-bit integer instead of a 16-bit bitfield.
ir: Add calling conventions type.