/// <summary> /// Applies the pattern to a sequence of instructions by replacing each instruction by its expanded sequence where appropriate. /// </summary> /// <param name="instrs">sequence of instructions</param> /// <returns>expanded sequence</returns> public List <XILSInstr> Apply(IList <XILSInstr> instrs) { InstructionExpander xpander = new InstructionExpander(instrs, this); xpander.Rewrite(); return(xpander.OutInstructions); }
/// <summary> /// Applies the pattern to a sequence of instructions by replacing each instruction by its expanded sequence where appropriate. /// </summary> /// <param name="instrs">sequence of instructions</param> /// <returns>expanded sequence</returns> public List<XILSInstr> Apply(IList<XILSInstr> instrs) { InstructionExpander xpander = new InstructionExpander(instrs, this); xpander.Rewrite(); return xpander.OutInstructions; }