Translate instructions to enum in parse stage to improve runtime switch performance