[syntax tree] fixed broadcast semantics lowering

This commit is contained in:
Philippe Tillet
2019-01-08 17:44:31 -05:00
parent 7a14693f51
commit 73db84c8ba
10 changed files with 153 additions and 128 deletions

View File

@@ -25,7 +25,7 @@ public:
unsigned get_allocated_size() const { return allocated_size_; }
// run
void run(ir::function &fn);
void run();
private:
std::map<ir::value*, unsigned> offsets_;

View File

@@ -7,7 +7,7 @@
namespace tdl {
namespace ir {
class function;
class module;
class instruction;
class value;
}
@@ -32,7 +32,7 @@ public:
shared_view_info get_shared_view(ir::value *v, unsigned idx);
// run
bool run(ir::function &fn);
void run(ir::module &mod);
private:
std::map<ir::value*, shared_view_val_t> shared_views_;

View File

@@ -8,6 +8,7 @@ namespace tdl{
namespace ir{
class value;
class function;
class module;
}
namespace codegen{
@@ -47,7 +48,7 @@ public:
segment get_interval(ir::value* v) const { return intervals_.at(v); }
// run
void run(ir::function *fn);
void run(ir::module &mod);
private:
has_storage_map_t has_dedicated_storage_;