summaryrefslogtreecommitdiff
path: root/src/transformations/loop_tile.cc
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-26 15:18:38 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-09-26 15:18:38 -0600
commit15e8ff480e7a75f4dce8c8d41da157cf51bd3cb8 (patch)
tree9bbdc313f0614689e9276ed615dd780f1faccfd6 /src/transformations/loop_tile.cc
parentf4474891acec5918f94bc126fed8eb9bb2792912 (diff)
downloadchill-15e8ff480e7a75f4dce8c8d41da157cf51bd3cb8.tar.gz
chill-15e8ff480e7a75f4dce8c8d41da157cf51bd3cb8.tar.bz2
chill-15e8ff480e7a75f4dce8c8d41da157cf51bd3cb8.zip
namespaced error
Diffstat (limited to 'src/transformations/loop_tile.cc')
-rw-r--r--src/transformations/loop_tile.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/transformations/loop_tile.cc b/src/transformations/loop_tile.cc
index 0a1808b..7281462 100644
--- a/src/transformations/loop_tile.cc
+++ b/src/transformations/loop_tile.cc
@@ -70,7 +70,7 @@ void Loop::tile(int stmt_num, int level, int tile_size, int outer_level,
stmt[*i].loop_level[l - 1].payload)
&& dv.hasPositive(
stmt[*i].loop_level[l - 1].payload))
- throw loop_error(
+ throw chill::error::loop(
"loop error: Tiling is illegal, dependence violation!");
} else {
@@ -87,7 +87,7 @@ void Loop::tile(int stmt_num, int level, int tile_size, int outer_level,
if (dim3 < level - 1)
if (dv.isCarried(dim3)
&& dv.hasPositive(dim3))
- throw loop_error(
+ throw chill::error::loop(
"loop error: Tiling is illegal, dependence violation!");
}
}
@@ -167,7 +167,7 @@ void Loop::tile(int stmt_num, int level, int tile_size, int outer_level,
}
if (!bound.has_single_conjunct())
- throw loop_error("cannot handle tile bounds");
+ throw chill::error::loop("cannot handle tile bounds");
}
// separate lower and upper bounds
@@ -183,10 +183,10 @@ void Loop::tile(int stmt_num, int level, int tile_size, int outer_level,
}
}
if (lb_list.size() == 0)
- throw loop_error(
+ throw chill::error::loop(
"unable to calculate tile controlling loop lower bound");
if (ub_list.size() == 0)
- throw loop_error(
+ throw chill::error::loop(
"unable to calculate tile controlling loop upper bound");
// find the simplest lower bound for StridedTile or simplest iteration count for CountedTile
@@ -352,7 +352,7 @@ void Loop::tile(int stmt_num, int level, int tile_size, int outer_level,
break;
}
default:
- throw loop_error("cannot handle tile bounds");
+ throw chill::error::loop("cannot handle tile bounds");
}
}
h.update_const(lb_list[simplest_lb].get_const());
@@ -387,7 +387,7 @@ void Loop::tile(int stmt_num, int level, int tile_size, int outer_level,
break;
}
default:
- throw loop_error("cannot handle tile bounds");
+ throw chill::error::loop("cannot handle tile bounds");
}
}
h1.update_const(lb_list[simplest_lb].get_const());
@@ -455,7 +455,7 @@ void Loop::tile(int stmt_num, int level, int tile_size, int outer_level,
break;
}
default:
- throw loop_error("cannot handle tile bounds");
+ throw chill::error::loop("cannot handle tile bounds");
}
}
h.update_const(ub_list[simplest_ub].get_const());
@@ -490,7 +490,7 @@ void Loop::tile(int stmt_num, int level, int tile_size, int outer_level,
break;
}
default:
- throw loop_error("cannot handle tile bounds");
+ throw chill::error::loop("cannot handle tile bounds");
}
}
h1.update_const(-ub_list[simplest_ub].get_const());
@@ -569,7 +569,7 @@ void Loop::tile(int stmt_num, int level, int tile_size, int outer_level,
stmt[*i].loop_level[j - 1].payload++;
break;
default:
- throw loop_error(
+ throw chill::error::loop(
"unknown loop level type for statement "
+ to_string(*i));
}