当前位置: 首页>>代码示例>>C#>>正文


C# BasicBlock.Add方法代码示例

本文整理汇总了C#中BasicBlock.Add方法的典型用法代码示例。如果您正苦于以下问题:C# BasicBlock.Add方法的具体用法?C# BasicBlock.Add怎么用?C# BasicBlock.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BasicBlock的用法示例。


在下文中一共展示了BasicBlock.Add方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: doInvoke

 private void doInvoke(string id, BasicBlock<MilocInstruction> b, List<int> regLocs)
 {
     var fun = CSC431.Program.Stable.Value.getType(id);
     for (int i = 0; i < regLocs.Count; i++)
     {
         var t = fun.getArgs()[i];
         b.Add(new StoreoutargumentInstruction(regLocs[i], i) { Type = t });
     }
     b.Add(new CallInstruction(id));
 }
开发者ID:AustinWise,项目名称:CSC431,代码行数:10,代码来源:IlGenWalker.mine.cs

示例2: Load

 public override BasicBlock<MilocInstruction> Load(int target)
 {
     var b = new BasicBlock<MilocInstruction>();
     b.Add(new LoadaiVarInstruction(name, target) { ArgIndex = ArgIndex });
     b.Reg = target;
     return b;
 }
开发者ID:AustinWise,项目名称:CSC431,代码行数:7,代码来源:VarLocal.cs

示例3: Load

 public override BasicBlock<MilocInstruction> Load(int target)
 {
     var b = new BasicBlock<MilocInstruction>();
     b.Add(new MovInstruction(this.reg, target) { ArgIndex = ArgIndex, ArgReg = reg });
     b.Reg = target;
     return b;
 }
开发者ID:AustinWise,项目名称:CSC431,代码行数:7,代码来源:VarReg.cs

示例4: Load

 public override BasicBlock<MilocInstruction> Load(int target)
 {
     var b = new BasicBlock<MilocInstruction>();
     b.Add(new LoadaiFieldInstruction(addressReg, name, target) { ContainingType = containingType, FieldIndex = fieldIndex, FieldType = this.Type });
     b.Reg = target;
     return b;
 }
开发者ID:AustinWise,项目名称:CSC431,代码行数:7,代码来源:VarField.cs

示例5: Load

 public override BasicBlock<MilocInstruction> Load(int target)
 {
     var b = new BasicBlock<MilocInstruction>();
     b.Add(new LoadglobalInstruction(name, target) { Type = this.Type });
     b.Reg = target;
     return b;
 }
开发者ID:AustinWise,项目名称:CSC431,代码行数:7,代码来源:VarGlobal.cs

示例6: Store

 public override BasicBlock<MilocInstruction> Store(int source)
 {
     var b = new BasicBlock<MilocInstruction>();
     b.Add(new StoreaiVarInstruction(source, name) { ArgIndex = ArgIndex });
     return b;
 }
开发者ID:AustinWise,项目名称:CSC431,代码行数:6,代码来源:VarLocal.cs

示例7: Store

 public override BasicBlock<MilocInstruction> Store(int source)
 {
     var b = new BasicBlock<MilocInstruction>();
     b.Add(new MovInstruction(source, this.reg) { ArgIndex = ArgIndex, ArgReg = reg });
     return b;
 }
开发者ID:AustinWise,项目名称:CSC431,代码行数:6,代码来源:VarReg.cs

示例8: Store

 public override BasicBlock<MilocInstruction> Store(int source)
 {
     var b = new BasicBlock<MilocInstruction>();
     b.Add(new StoreaiFieldInstruction(source, addressReg, name) { ContainingType = containingType, FieldIndex = fieldIndex, FieldType = this.Type });
     return b;
 }
开发者ID:AustinWise,项目名称:CSC431,代码行数:6,代码来源:VarField.cs

示例9: Store

 public override BasicBlock<MilocInstruction> Store(int source)
 {
     var b = new BasicBlock<MilocInstruction>();
     b.Add(new StoreglobalInstruction(source, name) { Type = this.Type });
     return b;
 }
开发者ID:AustinWise,项目名称:CSC431,代码行数:6,代码来源:VarGlobal.cs


注:本文中的BasicBlock.Add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。