Exemplo n.º 1
0
        public IList <XILSInstr> Rewrite(IList <XILSInstr> instrs)
        {
            var impl = new ImplTypeRewriterImpl(instrs);

            impl.Rewrite();
            return(impl.OutInstructions);
        }
Exemplo n.º 2
0
        public static XILSFunction Rewrite(XILSFunction func)
        {
            var rw = new ImplTypeRewriterImpl(func.Instructions);

            rw.Rewrite();
            var result = new XILSFunction(func.Name, func.Arguments, rw.Locals.ToArray(), rw.OutInstructions.ToArray());

            return(result);
        }
Exemplo n.º 3
0
 public IList<XILSInstr> Rewrite(IList<XILSInstr> instrs)
 {
     var impl = new ImplTypeRewriterImpl(instrs);
     impl.Rewrite();
     return impl.OutInstructions;
 }
Exemplo n.º 4
0
 public static XILSFunction Rewrite(XILSFunction func)
 {
     var rw = new ImplTypeRewriterImpl(func.Instructions);
     rw.Rewrite();
     var result = new XILSFunction(func.Name, func.Arguments, rw.Locals.ToArray(), rw.OutInstructions.ToArray());
     return result;
 }