From 44770566ecf72e93d3339f7ff631e681552dce04 Mon Sep 17 00:00:00 2001 From: richardworkstation Date: Thu, 1 Aug 2024 16:56:46 -0700 Subject: [PATCH] make old port binding a wrapper --- include/ion/port.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/include/ion/port.h b/include/ion/port.h index a9435bf2..09506dd6 100644 --- a/include/ion/port.h +++ b/include/ion/port.h @@ -181,16 +181,7 @@ class Port { template void bind(T *v) { - auto i = index_ == -1 ? 0 : index_; - - if (has_pred()) { - impl_->params[i] = Halide::Parameter{Halide::type_of(), false, 0, argument_name(pred_id(), id(), pred_name(), i, graph_id())}; - } else { - impl_->params[i] = Halide::Parameter{type(), false, dimensions(), argument_name(pred_id(), id(), pred_name(), i, graph_id())}; - } - - impl_->instances[i] = v; - impl_->bound_address[i] = std::make_tuple(v, false); + bind(Halide::type_of(),v); } void bind(Halide::Type typ,void *v) {