Skip to content

Commit 87f4e2e

Browse files
Merge branch 'master' into tmep_placer_class
2 parents 291ec6f + 920e8ab commit 87f4e2e

File tree

38 files changed

+6877
-182
lines changed

38 files changed

+6877
-182
lines changed
-34.9 KB
Loading

doc/src/quickstart/index.rst

Lines changed: 188 additions & 130 deletions
Large diffs are not rendered by default.

doc/src/quickstart/tseng_blk1.png

-21.6 KB
Loading

doc/src/quickstart/tseng_nets.png

2.86 KB
Loading

libs/EXTERNAL/libblifparse/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ add_library(libblifparse STATIC
4545
target_include_directories(libblifparse PUBLIC ${LIB_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
4646
set_target_properties(libblifparse PROPERTIES PREFIX "") #Avoid extra 'lib' prefix
4747

48+
# Set the read buffer size in the generated lexers. This reduces the number of
49+
# syscalls since the default is only 1kB.
50+
target_compile_definitions(libblifparse PRIVATE YY_READ_BUF_SIZE=1048576)
51+
4852
#Create the test executable
4953
add_executable(blifparse_test src/main.cpp)
5054
target_link_libraries(blifparse_test libblifparse)

libs/EXTERNAL/libezgl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
22

33
# create the project
44
project(

libs/EXTERNAL/libezgl/examples/basic-application/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
22

33
project(
44
basic-application

libs/EXTERNAL/libtatum/libtatum/tatum/TimingGraph.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,14 +481,13 @@ tatum::util::linear_map<EdgeId,EdgeId> TimingGraph::optimize_edge_layout() const
481481
//Make all edges in a level be contiguous in memory
482482

483483
//Determine the edges driven by each level of the graph
484-
std::vector<std::vector<EdgeId>> edge_levels;
484+
std::vector<std::vector<EdgeId>> edge_levels(levels().size());
485485
for(LevelId level_id : levels()) {
486-
edge_levels.emplace_back();
487-
for(auto node_id : level_nodes(level_id)) {
486+
for(NodeId node_id : level_nodes(level_id)) {
488487

489488
//We walk the nodes according to the input-edge order.
490489
//This is the same order used by the arrival-time traversal (which is responsible
491-
//for most of the analyzer run-time), so matching it's order exactly results in
490+
//for most of the analyzer run-time), so matching its order exactly results in
492491
//better cache locality
493492
for(EdgeId edge_id : node_in_edges(node_id)) {
494493

@@ -498,7 +497,7 @@ tatum::util::linear_map<EdgeId,EdgeId> TimingGraph::optimize_edge_layout() const
498497
}
499498
}
500499

501-
//Maps from from original to new edge id, used to update node to edge refs
500+
//Maps from original to new edge id, used to update node to edge refs
502501
tatum::util::linear_map<EdgeId,EdgeId> orig_to_new_edge_id(edges().size());
503502

504503
//Determine the new order

libs/libpugiutil/src/pugixml_loc.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
#include <cstdio>
22
#include <algorithm>
3+
#include <vector>
34
#include "pugixml_util.hpp"
45
#include "pugixml_loc.hpp"
56

7+
// The size of the read buffer when reading from a file.
8+
#ifndef PUGI_UTIL_READ_BUF_SIZE
9+
#define PUGI_UTIL_READ_BUF_SIZE 1048576
10+
#endif // PUGI_UTIL_READ_BUF_SIZE
11+
612
namespace pugiutil {
713

814
//Return the line number from the given offset
@@ -30,10 +36,10 @@ void loc_data::build_loc_data() {
3036

3137
std::ptrdiff_t offset = 0;
3238

33-
char buffer[1024];
39+
std::vector<char> buffer(PUGI_UTIL_READ_BUF_SIZE);
3440
std::size_t size;
3541

36-
while ((size = fread(buffer, 1, sizeof(buffer), f)) > 0) {
42+
while ((size = fread(buffer.data(), 1, buffer.size() * sizeof(char), f)) > 0) {
3743
for (std::size_t i = 0; i < size; ++i) {
3844
if (buffer[i] == '\n') {
3945
offsets_.push_back(offset + i);

0 commit comments

Comments
 (0)