Пример #1
0
        public IList <XILSInstr> Rewrite(IList <XILSInstr> instrs)
        {
            XILMemoryMapperImpl xmm = new XILMemoryMapperImpl(instrs, Mapper)
            {
                MapConstantsToMemory = this.MapConstantsToNemory,
                MapVariablesToMemory = this.MapVariablesToMemory
            };

            xmm.Rewrite();
            return(xmm.OutInstructions);
        }
Пример #2
0
 public IList<XILSInstr> Rewrite(IList<XILSInstr> instrs)
 {
     XILMemoryMapperImpl xmm = new XILMemoryMapperImpl(instrs, Mapper)
     {
         MapConstantsToMemory = this.MapConstantsToNemory,
         MapVariablesToMemory = this.MapVariablesToMemory
     };
     xmm.Rewrite();
     return xmm.OutInstructions;
 }