Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 4012303

Browse files
author
Sven Verdoolaege
committed
cuda/codegen.cc: drop dead code
The last use of this function was removed in 04fa3ed (emitHalideExpr: use isl AST expression generator to print expression, Fri Mar 23 20:39:39 2018 +0100).
1 parent 0d10566 commit 4012303

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/core/polyhedral/cuda/codegen.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -447,19 +447,6 @@ void AstPrinter::emitAst(isl::ast_node node) {
447447

448448
namespace detail {
449449

450-
std::string toString(isl::aff subscript) {
451-
stringstream ss;
452-
// TODO: isl printer is not exported
453-
isl_printer* prn = isl_printer_to_str(subscript.get_ctx().get());
454-
prn = isl_printer_set_output_format(prn, ISL_FORMAT_C);
455-
prn = isl_printer_print_aff(prn, subscript.get());
456-
char* str = isl_printer_get_str(prn);
457-
ss << str;
458-
free(str);
459-
isl_printer_free(prn);
460-
return ss.str();
461-
}
462-
463450
std::string toString(isl::pw_aff subscript) {
464451
// Use a temporary isl::ast_build to print the expression.
465452
// Ideally, this should use the build at the point

0 commit comments

Comments
 (0)