So what we will try to do is to compile a following function
int sum(int a, int b) {
return a + b + 2;
}
on the fly. And here's the entire .cpp example:
#include <iostream>
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/I...