本文整理汇总了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));
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例6: Store
public override BasicBlock<MilocInstruction> Store(int source)
{
var b = new BasicBlock<MilocInstruction>();
b.Add(new StoreaiVarInstruction(source, name) { ArgIndex = ArgIndex });
return b;
}
示例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;
}
示例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;
}
示例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;
}