Skip to content

Commit

Permalink
SymbolicRange -> SymbolicInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitsteiner committed Feb 7, 2020
1 parent 74945ac commit 6bcdf8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/autoscheduler/FunctionDAG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ FunctionDAG::FunctionDAG(const vector<Function> &outputs, const MachineParams &p
Halide::Var max_var(consumer.name() + "." + consumer.args()[j] + ".max");
Interval interval(min_var, max_var);
scope.push(consumer.args()[j], interval);
node.region_required.push_back(SymbolicRange{min_var, max_var});
node.region_required.push_back(SymbolicInterval{min_var, max_var});
}

auto pure_args = node.func.args();
Expand Down Expand Up @@ -1020,7 +1020,7 @@ void FunctionDAG::dump_internal(OS &os) const {
for (const Node &n : nodes) {
os << "Node: " << n.func.name() << '\n'
<< " Symbolic region required: \n";
for (const SymbolicRange &i : n.region_required) {
for (const SymbolicInterval &i : n.region_required) {
os << " " << i.min << ", " << i.max << '\n';
}
os << " Region computed: \n";
Expand Down
4 changes: 2 additions & 2 deletions apps/autoscheduler/FunctionDAG.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ struct FunctionDAG {
// An edge is a producer-consumer relationship
struct Edge;

struct SymbolicRange {
struct SymbolicInterval {
Halide::Var min;
Halide::Var max;
};
Expand All @@ -366,7 +366,7 @@ struct FunctionDAG {

// The min/max variables used to denote a symbolic region of
// this Func. Used in the cost above, and in the Edges below.
vector<SymbolicRange> region_required;
vector<SymbolicInterval> region_required;

// A concrete region required from a bounds estimate. Only
// defined for outputs.
Expand Down

0 comments on commit 6bcdf8b

Please sign in to comment.