コード例 #1
0
ファイル: X86Assembler.cs プロジェクト: LPeter1997/YoakkeLang
 private void ForwardDeclare(Assembly assembly)
 {
     // Forward declare procedures
     foreach (var proc in assembly.Procedures)
     {
         var x86proc = new X86Proc(GetSymbolName(proc));
         procs[proc] = x86proc;
         // Forward declare each basic block inside
         foreach (var bb in proc.BasicBlocks)
         {
             basicBlocks[bb] = new X86BasicBlock(x86proc, formatOptions.Escape(bb.Name));
         }
     }
 }
コード例 #2
0
 public X86BasicBlock(X86Proc proc, string?name = null)
 {
     Proc = proc;
     Name = name;
 }