Moves instr_set_encoding_hints and instr_has_encoding_hint to instr_shared where they belong.
Issue: #1312