Commit ac27d7b5 authored by Paul's avatar Paul
Browse files

Format

parent c45afff0
...@@ -68,9 +68,11 @@ void run_pass(program& prog, const pass& p, tracer trace) ...@@ -68,9 +68,11 @@ void run_pass(program& prog, const pass& p, tracer trace)
std::size_t get_size(const program& p) std::size_t get_size(const program& p)
{ {
std::size_t n = 0; std::size_t n = 0;
for(auto* mod:p.get_modules()) { for(auto* mod : p.get_modules())
for(const auto& ins:*mod) { {
if (ins.name() != "@literal") for(const auto& ins : *mod)
{
if(ins.name() != "@literal")
continue; continue;
n += ins.get_literal().get_shape().bytes(); n += ins.get_literal().get_shape().bytes();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment