Skip to content

Commit 151d878

Browse files
remove unused hash functor
1 parent 262ca0d commit 151d878

File tree

1 file changed

+9
-23
lines changed

1 file changed

+9
-23
lines changed

vpr/src/base/vpr_context.h

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
class SetupHoldTimingInfo;
4545
class PostClusterDelayCalculator;
4646

47-
#endif /* NO_SERVER */
47+
#endif // NO_SERVER
4848

4949
struct t_rr_node_route_inf;
5050

@@ -143,22 +143,10 @@ struct TimingContext : public Context {
143143

144144
t_timing_analysis_profile_info stats;
145145

146-
/* Represents whether or not VPR should fail if timing constraints aren't met. */
146+
/// Represents whether VPR should fail if timing constraints aren't met.
147147
bool terminate_if_timing_fails = false;
148148
};
149149

150-
namespace std {
151-
template<>
152-
struct hash<std::tuple<int, int, short>> {
153-
std::size_t operator()(const std::tuple<int, int, short>& ok) const noexcept {
154-
std::size_t seed = std::hash<int>{}(std::get<0>(ok));
155-
vtr::hash_combine(seed, std::get<1>(ok));
156-
vtr::hash_combine(seed, std::get<2>(ok));
157-
return seed;
158-
}
159-
};
160-
} // namespace std
161-
162150
/**
163151
* @brief State relating the device
164152
*
@@ -200,11 +188,9 @@ struct DeviceContext : public Context {
200188
std::vector<t_physical_tile_type> physical_tile_types;
201189
std::vector<t_logical_block_type> logical_block_types;
202190

203-
/*
204-
* Keep which layer in multi-die FPGA require inter-cluster programmable routing resources [0..number_of_layers-1]
205-
* If a layer doesn't require inter-cluster programmable routing resources,
206-
* RRGraph generation will ignore building SBs and CBs for that specific layer.
207-
*/
191+
/// Keep which layer in multi-die FPGA require inter-cluster programmable routing resources [0..number_of_layers-1]
192+
/// If a layer doesn't require inter-cluster programmable routing resources,
193+
/// RRGraph generation will ignore building SBs and CBs for that specific layer.
208194
std::vector<bool> inter_cluster_prog_routing_resources;
209195

210196
/**
@@ -373,7 +359,7 @@ struct ClusteringContext : public Context {
373359
/**
374360
* @brief State relating to packing multithreading
375361
*
376-
* This contain data structures to synchronize multithreading of packing iterative improvement.
362+
* This contains data structures to synchronize multithreading of packing iterative improvement.
377363
*/
378364
struct PackingMultithreadingContext : public Context {
379365
vtr::vector<ClusterBlockId, bool> clb_in_flight;
@@ -770,7 +756,7 @@ struct ServerContext : public Context {
770756
*/
771757
std::shared_ptr<PostClusterDelayCalculator> routing_delay_calc;
772758
};
773-
#endif /* NO_SERVER */
759+
#endif // NO_SERVER
774760

775761
/**
776762
* @brief This object encapsulates VPR's state.
@@ -855,7 +841,7 @@ class VprContext : public Context {
855841
#ifndef NO_SERVER
856842
const ServerContext& server() const { return server_; }
857843
ServerContext& mutable_server() { return server_; }
858-
#endif /* NO_SERVER */
844+
#endif // NO_SERVER
859845

860846
private:
861847
DeviceContext device_;
@@ -873,7 +859,7 @@ class VprContext : public Context {
873859

874860
#ifndef NO_SERVER
875861
ServerContext server_;
876-
#endif /* NO_SERVER */
862+
#endif // NO_SERVER
877863

878864
PackingMultithreadingContext packing_multithreading_;
879865
};

0 commit comments

Comments
 (0)