예제 #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;
 }