parse instruction into a IR node class