public Driver(LlvmModule module, TokenStream stream) { this.stream = stream; this.Module = module; this.context = new ParserContext(this.stream); this.visitor = new LlvmVisitor(this.Module); }
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>(); }
public Driver(TokenStream stream) : this(LlvmModule.Create(SpecialName.Entry), stream) { // }
public LlvmVisitor(LlvmModule module) : this(module, LlvmBuilder.Create()) { // }
public IrSymbolTable(LlvmModule module) { this.module = module; this.Metadata = new Dictionary <string, string>(); }