Use enums instead of literals in the ARM backend.