예제 #1
0
 public MethodBuilder(LLVM.Builder builder, MethodData method)
 {
     _builder   = builder;
     _method    = method;
     _stack     = new Stack<LLVM.Value>();
     _params    = new List<LLVM.Value>();
     _variables = new List<LLVM.Value>();
     _labels    = new Dictionary<int, LLVM.BasicBlock>();
 }
예제 #2
0
 public MethodBuilder(LLVM.Builder builder, MethodData method)
 {
     _builder   = builder;
     _method    = method;
     _stack     = new Stack <LLVM.Value>();
     _params    = new List <LLVM.Value>();
     _variables = new List <LLVM.Value>();
     _labels    = new Dictionary <int, LLVM.BasicBlock>();
 }
예제 #3
0
파일: Cil2Llvm.cs 프로젝트: PlumpMath/cilc
 public static void Init(LLVM.Module module, LLVM.Builder builder)
 {
     if (_module == null)
     {
         _module  = module;
         _builder = builder;
         _types   = new Dictionary <TypeReference, CodeGenType>();
         _methods = new Dictionary <MethodReference, MethodData>();
     }
 }
예제 #4
0
파일: Cil2Llvm.cs 프로젝트: tytouf/cilc
 public static void Init(LLVM.Module module, LLVM.Builder builder)
 {
     if (_module == null) {
     _module  = module;
     _builder = builder;
     _types   = new Dictionary<TypeReference, CodeGenType>();
     _methods = new Dictionary<MethodReference, MethodData>();
     }
 }