Displaying 3 results from an estimated 3 matches for "module_stab".
2014 Sep 01
2
[LLVMdev] Problem linking and JITing code through C++-API
...input >> lib;
std::string topmodule = lib.modules.front().name;
// sprite::compiler::prettyprint(lib);
// Compile the program.
sprite::compiler::LibrarySTab stab;
sprite::compiler::compile(lib, stab);
// Declare the main function.
namespace tgt = sprite::backend;
auto & module_stab = stab.modules.at(topmodule);
auto & compiler = *module_stab.compiler;
tgt::scope _ = module_stab.module_ir;
tgt::extern_(
tgt::types::int_(32)(), "main", {}
, [&]{
// Construct the root expression (just the "main" symbol).
tgt::value root...
2014 Sep 02
2
[LLVMdev] Problem linking and JITing code through C++-API
...t;
> // sprite::compiler::prettyprint(lib);
>
> // Compile the program.
>
> sprite::compiler::LibrarySTab stab;
>
> sprite::compiler::compile(lib, stab);
>
> // Declare the main function.
>
> namespace tgt = sprite::backend;
>
> auto & module_stab = stab.modules.at(topmodule);
>
> auto & compiler = *module_stab.compiler;
>
> tgt::scope _ = module_stab.module_ir;
>
> tgt::extern_(
>
> tgt::types::int_(32)(), "main", {}
>
> , [&]{
>
> // Construct the root expr...
2014 Sep 08
2
[LLVMdev] Problem linking and JITing code through C++-API
...> > // Compile the program.
> >
> > sprite::compiler::LibrarySTab stab;
> >
> > sprite::compiler::compile(lib, stab);
> >
> > // Declare the main function.
> >
> > namespace tgt = sprite::backend;
> >
> > auto & module_stab = stab.modules.at(topmodule);
> >
> > auto & compiler = *module_stab.compiler;
> >
> > tgt::scope _ = module_stab.module_ir;
> >
> > tgt::extern_(
> >
> > tgt::types::int_(32)(), "main", {}
> >
> > , [&am...