Skip to content

Commit

Permalink
Process Andrew's feedback, part 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcourteaux committed Oct 5, 2023
1 parent 1ef5583 commit d14e4ea
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions src/IRPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1085,35 +1085,9 @@ void IRPrinter::visit(const Shuffle *op) {
}

void IRPrinter::visit(const VectorReduce *op) {
std::string op_str;
switch (op->op) {
case VectorReduce::Add:
op_str = "add";
break;
case VectorReduce::SaturatingAdd:
op_str = "saturating_add";
break;
case VectorReduce::Mul:
op_str = "mul";
break;
case VectorReduce::Min:
op_str = "min";
break;
case VectorReduce::Max:
op_str = "max";
break;
case VectorReduce::And:
op_str = "and";
break;
case VectorReduce::Or:
op_str = "or";
break;
default:
internal_assert(false) << "Not a valid VectorReduce::Operator";
}
stream << "("
<< op->type
<< ")vector_reduce_" << op_str << "("
<< ")vector_reduce_" << op->op << "("
<< ", "
<< op->value
<< ")";
Expand Down

0 comments on commit d14e4ea

Please sign in to comment.