Exemplo n.º 1
0
        private void CreateGen(BasicBlock block)
        {
            var gen = new Gen();

            foreach (var instruction in block.Instructions)
            {
                if (instruction.Operation.IsArithmetic())
                {
                    gen.AddNewExpression(instruction);
                }
                if (instruction.Result.IsVariable())
                {
                    gen.RemoveExpression(instruction.Result);
                }
            }
            gens.Add(block, gen);
        }