vpr/src/route/rr_graph.cpp
/* frees the track to ipin mapping for each physical grid type */
frees the track to ipin mapping for each physical grid type
frees the track to ipin mapping for each physical grid type
static void free_type_track_to_pin_map(t_track_to_pin_lookup& track_to_pin_map,
                                       const std::vector<t_physical_tile_type>& types,
                                       int max_chan_width) {
    auto& device_ctx = g_vpr_ctx.device();
    for (unsigned int i = 0; i < device_ctx.physical_tile_types.size(); i++) {
        if (!track_to_pin_map[i].empty()) {
            for (int track = 0; track < max_chan_width; ++track) {
                for (int width = 0; width < types[i].width; ++width) {
                    for (int height = 0; height < types[i].height; ++height) {
                        for (int side = 0; side < 4; ++side) {
                            if (!track_to_pin_map[i][track][width][height][side].empty()) {
                                track_to_pin_map[i][track][width][height][side].clear();
                            }
                        }
                    }
                }
            }
        }
    }
}
static void free_type_track_to_pin_map ( t_track_to_pin_lookup & track_to_pin_map , const std :: vector < t_physical_tile_type > & types , int max_chan_width ) { auto & device_ctx = g_vpr_ctx . device ( ) ; for ( unsigned int i = 0 ; i < device_ctx . physical_tile_types . size ( ) ; i ++ ) { if ( ! track_to_pin_map [ i ] . empty ( ) ) { for ( int track = 0 ; track < max_chan_width ; ++ track ) { for ( int width = 0 ; width < types [ i ] . width ; ++ width ) { for ( int height = 0 ; height < types [ i ] . height ; ++ height ) { for ( int side = 0 ; side < 4 ; ++ side ) { if ( ! track_to_pin_map [ i ] [ track ] [ width ] [ height ] [ side ] . empty ( ) ) { track_to_pin_map [ i ] [ track ] [ width ] [ height ] [ side ] . clear ( ) ; } } } } } } } }
frees the track to ipin mapping for each physical grid type
frees the track to ipin mapping for each physical grid type