@@ -1197,7 +1197,7 @@ class HTMLCodePrinter : public IRVisitor {
1197
1197
}
1198
1198
1199
1199
/* Helper functions for printing IR nodes */
1200
- void print_constant (std::string cls, Expr c) {
1200
+ void print_constant (const std::string & cls, const Expr & c) {
1201
1201
print_opening_tag (" span" , cls, type_to_string (c.type ()));
1202
1202
stream << c;
1203
1203
print_closing_tag (" span" );
@@ -1209,7 +1209,7 @@ class HTMLCodePrinter : public IRVisitor {
1209
1209
print_closing_tag (" span" );
1210
1210
}
1211
1211
1212
- void print_binary_op (const Expr &a, const Expr &b, std::string op, Type result_type) {
1212
+ void print_binary_op (const Expr &a, const Expr &b, const std::string & op, Type result_type) {
1213
1213
std::string result_type_str = type_to_string (result_type);
1214
1214
print_opening_tag (" span" , " BinaryOp" );
1215
1215
print_html_element (" span" , " matched" , " (" , result_type_str);
@@ -1222,7 +1222,7 @@ class HTMLCodePrinter : public IRVisitor {
1222
1222
print_closing_tag (" span" );
1223
1223
}
1224
1224
1225
- void print_function_call (std::string fn_name, const std::vector<Expr> &args, const std::string &tooltip) {
1225
+ void print_function_call (const std::string & fn_name, const std::vector<Expr> &args, const std::string &tooltip) {
1226
1226
print_opening_tag (" span" , " matched" );
1227
1227
print_html_element (" span" , " Symbol matched" , fn_name, tooltip);
1228
1228
print_text (" (" );
@@ -1329,7 +1329,7 @@ class HTMLCodePrinter : public IRVisitor {
1329
1329
}
1330
1330
1331
1331
// Prints a cost button/indicator
1332
- void print_cost_btn (int line_cost, int block_cost, int max_line_cost, int max_block_cost, std::string id, std::string prefix) {
1332
+ void print_cost_btn (int line_cost, int block_cost, int max_line_cost, int max_block_cost, const std::string & id, const std::string & prefix) {
1333
1333
const int num_cost_buckets = 20 ;
1334
1334
const auto compand = [](int v) -> int { return (int )std::sqrt (v * 10 ); };
1335
1335
0 commit comments