diff --git a/openfpga/src/annotation/device_rr_gsb.cpp b/openfpga/src/annotation/device_rr_gsb.cpp index a37921e7c..ef2403c01 100644 --- a/openfpga/src/annotation/device_rr_gsb.cpp +++ b/openfpga/src/annotation/device_rr_gsb.cpp @@ -582,8 +582,8 @@ size_t DeviceRRGSB::get_cb_unique_module_index( } void DeviceRRGSB::preload_unique_cbx_module( - const vtr::Point block_coordinate, - const std::vector> instance_coords) { + const vtr::Point& block_coordinate, + const std::vector>& instance_coords) { /*check whether the preloaded value exceeds the limit */ size_t limit_x = cbx_unique_module_id_.size(); size_t limit_y = cbx_unique_module_id_[0].size(); @@ -606,8 +606,8 @@ void DeviceRRGSB::preload_unique_cbx_module( } void DeviceRRGSB::preload_unique_cby_module( - const vtr::Point block_coordinate, - const std::vector> instance_coords) { + const vtr::Point& block_coordinate, + const std::vector>& instance_coords) { /*check whether the preloaded value exceeds the limit */ size_t limit_x = cby_unique_module_id_.size(); size_t limit_y = cby_unique_module_id_[0].size(); @@ -631,8 +631,8 @@ void DeviceRRGSB::preload_unique_cby_module( } void DeviceRRGSB::preload_unique_sb_module( - const vtr::Point block_coordinate, - const std::vector> instance_coords) { + const vtr::Point& block_coordinate, + const std::vector>& instance_coords) { /*check whether the preloaded value exceeds the limit */ VTR_ASSERT(block_coordinate.x() < sb_unique_module_id_.size()); VTR_ASSERT(block_coordinate.y() < sb_unique_module_id_[0].size()); diff --git a/openfpga/src/annotation/device_rr_gsb.h b/openfpga/src/annotation/device_rr_gsb.h index 43627fb9e..106bac82e 100644 --- a/openfpga/src/annotation/device_rr_gsb.h +++ b/openfpga/src/annotation/device_rr_gsb.h @@ -101,14 +101,14 @@ class DeviceRRGSB { of unique mirrors and rotatable mirrors */ void clear(); /* clean the content */ void preload_unique_cbx_module( - const vtr::Point block_coordinate, - const std::vector> instance_coords); + const vtr::Point& block_coordinate, + const std::vector>& instance_coords); void preload_unique_cby_module( - const vtr::Point block_coordinate, - const std::vector> instance_coords); + const vtr::Point& block_coordinate, + const std::vector>& instance_coords); void preload_unique_sb_module( - const vtr::Point block_coordinate, - const std::vector> instance_coords); + const vtr::Point& block_coordinate, + const std::vector>& instance_coords); void clear_unique_modules(); void get_id_sb_instance_map( std::map>>& id_instance_map) const;