Example #1
0
File: Driver.cs Project: ionlang/ir
 public Driver(LlvmModule module, TokenStream stream)
 {
     this.stream  = stream;
     this.Module  = module;
     this.context = new ParserContext(this.stream);
     this.visitor = new LlvmVisitor(this.Module);
 }
Example #2
0
 public LlvmVisitor(LlvmModule module, LlvmBuilder builder)
 {
     this.module      = module;
     this.builder     = builder;
     this.symbolTable = new IrSymbolTable(this.module);
     this.valueStack  = new Stack <LlvmValue>();
     this.typeStack   = new Stack <LlvmType>();
     this.blockStack  = new Stack <LlvmBlock>();
     this.namedValues = new Dictionary <string, LlvmValue>();
 }
Example #3
0
File: Driver.cs Project: ionlang/ir
 public Driver(TokenStream stream) : this(LlvmModule.Create(SpecialName.Entry), stream)
 {
     //
 }
Example #4
0
 public LlvmVisitor(LlvmModule module) : this(module, LlvmBuilder.Create())
 {
     //
 }
Example #5
0
 public IrSymbolTable(LlvmModule module)
 {
     this.module   = module;
     this.Metadata = new Dictionary <string, string>();
 }