Exemplo n.º 1
0
        public bool VisitDefInstruction(DefInstruction def)
        {
            var id = def.Identifier;

            ctx.SetValue(id, id, BitRange.Empty);
            return(true);
        }
Exemplo n.º 2
0
 void InstructionVisitor.VisitDefInstruction(DefInstruction def)
 {
     Build("Def");
     writer.Write("(");
     def.Identifier.Accept(this);
     writer.WriteLine(");");
 }
Exemplo n.º 3
0
        public override Instruction TransformDefInstruction(DefInstruction def)
        {
            var stm = stmDef.Block.Statements.Insert(iStmDef + 1, 0, new Store(Dereference(idOut, def.Identifier.DataType), def.Identifier));

            ssa.Uses.Add(stm);
            return(def);
        }
Exemplo n.º 4
0
        public void AddDefToEntryBlock(Identifier id)
        {
            var def = new DefInstruction(id);
            var stm = Procedure.EntryBlock.Statements.Add(0, def);

            ProcessInstruction(def, stm);
        }
Exemplo n.º 5
0
 public void VisitDefInstruction(DefInstruction def)
 {
     writer.Indent();
     writer.WriteKeyword("def");
     writer.Write(" ");
     def.Identifier.Accept(this);
     writer.Terminate();
 }
Exemplo n.º 6
0
        public bool VisitDefInstruction(DefInstruction def)
        {
            var defPat = pattern as DefInstruction;

            if (defPat == null)
            {
                return(false);
            }
            throw new NotImplementedException();
        }
Exemplo n.º 7
0
		public override void VisitDefInstruction(DefInstruction def)
		{
		}
Exemplo n.º 8
0
		public override Instruction TransformDefInstruction(DefInstruction def)
		{
			stmDef.Block.Statements.Insert(iStmDef + 1, 0, new Store(Dereference(idOut, def.Expression.DataType), def.Expression));
			return def;
		}
Exemplo n.º 9
0
 public AbsynStatement VisitDefInstruction(DefInstruction def)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 10
0
 public Instruction VisitDefInstruction(DefInstruction def)
 {
     return(def);
 }
Exemplo n.º 11
0
 public override Instruction TransformDefInstruction(DefInstruction def)
 {
     stmDef.Block.Statements.Insert(iStmDef + 1, 0, new Store(Dereference(idOut, def.Expression.DataType), def.Expression));
     return(def);
 }
Exemplo n.º 12
0
 public DataType VisitDefInstruction(DefInstruction def)
 {
     return(def.Identifier.Accept(this));
 }
Exemplo n.º 13
0
 void InstructionVisitor.VisitDefInstruction(DefInstruction def)
 {
     stms.Add(new AbsynLineComment(def.ToString()));
 }
Exemplo n.º 14
0
 void InstructionVisitor.VisitDefInstruction(DefInstruction def)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 15
0
 void InstructionVisitor.VisitDefInstruction(DefInstruction def)
 {
     stms.Add(new AbsynLineComment(def.ToString()));
 }
Exemplo n.º 16
0
 public override void VisitDefInstruction(DefInstruction def)
 {
     base.VisitDefInstruction(def);
     definitions.Add(def.Identifier);
 }
Exemplo n.º 17
0
 public DataType VisitDefInstruction(DefInstruction def)
 {
     return(def.Expression.Accept(this));
 }
Exemplo n.º 18
0
 public void VisitDefInstruction(DefInstruction def)
 {
 }
Exemplo n.º 19
0
		public void VisitDefInstruction(DefInstruction def)
		{
			writer.Indent();
            writer.WriteKeyword("def");
            writer.Write(" ");
			def.Expression.Accept(this);
			writer.Terminate();
		}
Exemplo n.º 20
0
 public override void VisitDefInstruction(DefInstruction def)
 {
 }
Exemplo n.º 21
0
 public AbsynStatement VisitDefInstruction(DefInstruction def)
 {
     //$TODO: should there be a warning? DefInstructions should have been
     // removed before entering this code.
     return(new AbsynDeclaration(def.Identifier, null));
 }
Exemplo n.º 22
0
 public Instruction VisitDefInstruction(DefInstruction def)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 23
0
 public void VisitDefInstruction(DefInstruction def)
 {
     d.VisitDefInstruction(def);
 }
Exemplo n.º 24
0
		public virtual void VisitDefInstruction(DefInstruction def)
		{
			def.Expression.Accept(this);
		}
Exemplo n.º 25
0
 public void VisitDefInstruction(DefInstruction def)
 {
 }