2019-05-28 17:22:48 -04:00
|
|
|
#include "triton/lang/module.h"
|
2019-05-28 17:07:54 -04:00
|
|
|
#include "triton/ir/module.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace triton{
|
|
|
|
|
2019-05-28 17:22:48 -04:00
|
|
|
namespace lang{
|
2019-05-28 17:07:54 -04:00
|
|
|
|
|
|
|
/* Translation unit */
|
|
|
|
ir::value* translation_unit::codegen(ir::module *mod) const{
|
|
|
|
mod->add_new_scope();
|
|
|
|
decls_.codegen(mod);
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|