gallivm: implement switch opcode