gen_llvm.cpp is updated, next is globals.cpp. this one implements the C API wrapper around the C++ parts of the compiler and also exports all API symbols to the client context, which looks like below.
these 600+ lines of definitions are all manually maintained, but could be autogenerated from scopes.h alone, which i'll implement now.