[CORE] Add some documentation on codegen.h