Esempio n. 1
0
 public CodeGenerator(Assembly tree, string outFile)
 {
     _tree = tree;
     _outFile = outFile;
     _table = new SymbolTable();
 }
Esempio n. 2
0
        private void GenerateAssembly(Assembly assembly, LLVMPassManagerRef fpm)
        {
            LLVMBuilderRef builder = LLVM.CreateBuilder();
            foreach (Function f in assembly.Functions)
            {
                LLVMValueRef func = GenerateFunction(f, builder);

                LLVM.RunFunctionPassManager(fpm, func);
            }
        }