Skip to content

Commit d449e75

Browse files
authored
Merge pull request #2751 from heshpdx/master
Couple fixes from SPEC CPU work
2 parents ea8695a + cfb5d32 commit d449e75

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

libs/librrgraph/src/base/rr_graph_utils.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ vtr::vector<RRNodeId, std::vector<RREdgeId>> get_fan_in_list(const RRGraphView&
139139

140140
//Walk the graph and increment fanin on all dwnstream nodes
141141
rr_graph.rr_nodes().for_each_edge(
142-
[&](RREdgeId edge, __attribute__((unused)) RRNodeId src, RRNodeId sink) {
142+
[&](RREdgeId edge, RRNodeId src, RRNodeId sink) -> void {
143+
(void) src;
143144
node_fan_in_list[sink].push_back(edge);
144145
});
145146

@@ -258,4 +259,4 @@ bool inter_layer_connections_limited_to_opin(const RRGraphView& rr_graph) {
258259
}
259260

260261
return limited_to_opin;
261-
}
262+
}

libs/librrgraph/src/io/gen/rr_graph_uxsdcxx.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,15 @@ inline void write_rr_graph_xml(T &in, Context &context, std::ostream &os){
202202
}
203203

204204

205+
#if defined(_MSC_VER)
206+
typedef const uint32_t __declspec(align(1)) triehash_uu32;
207+
typedef const uint64_t __declspec(align(1)) triehash_uu64;
208+
#else
205209
typedef const uint32_t __attribute__((aligned(1))) triehash_uu32;
206210
typedef const uint64_t __attribute__((aligned(1))) triehash_uu64;
207211
static_assert(alignof(triehash_uu32) == 1, "Unaligned 32-bit access not found.");
208212
static_assert(alignof(triehash_uu64) == 1, "Unaligned 64-bit access not found.");
213+
#endif
209214
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
210215
#define onechar(c, s, l) (((uint64_t)(c)) << (s))
211216
#else

0 commit comments

Comments
 (0)