[code generation] bugfix in single buffering

This commit is contained in:
Philippe Tillet
2019-03-26 15:55:48 -07:00
parent 8d35c98920
commit 9d6fc1c051
13 changed files with 135 additions and 41 deletions

View File

@@ -29,7 +29,7 @@ void allocation::run(){
std::vector<ir::value *> J = I;
triples_map_type H;
H.insert({0, segment{0, 100}});
H.insert({0, segment{0, 1024}});
std::vector<ir::value *> V;
std::map<ir::value *, unsigned> starts;
@@ -116,6 +116,9 @@ void allocation::run(){
for(auto &x: offsets_){
allocated_size_ = std::max<size_t>(allocated_size_, x.second + get_num_bytes(x.first));
}
std::cout << "Allocated: " << allocated_size_ << std::endl;
for(auto &x: offsets_)
std::cout << x.first->get_name() << " " << x.second << std::endl;
}
}