Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drt: pin access split #5945

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from
Draft

Conversation

bnmfw
Copy link
Contributor

@bnmfw bnmfw commented Oct 14, 2024

This PR is waiting for every PA PR to merge, #5921, #5903 and #5891.

This PR creates three new PA files, one for each of the FlexPA_prep.cpp responsibilities:

  • Generating Access Points for Unique Instances: FlexPA_acc_point.cpp
  • Generating Access Patterns for Unique Instances: FlexPA_acc_patterns.cpp
  • Generating Access Patterns to Rows of Instances: FlexPA_row_patterns.cpp

Some functions that couldn't be easily separated were kept in FlexPA_prep.cpp, this might be due to being dependant to more than one of the new files or more than one of the new files depending on it.

There might be a case for moving everything in FlexPA_prep.cpp to 'FlexPA.cpp' as now there are few functions left.

I copied imports and copyright to new files. I commented any import that did not stop the project from compiling and running.

FlexPA_acc_point.cpp is still big 1483 LOC so it might have to be split even further.

Signed-off-by: bernardo <[email protected]>
Signed-off-by: bernardo <[email protected]>
Signed-off-by: bernardo <[email protected]>
Signed-off-by: bernardo <[email protected]>
Signed-off-by: bernardo <[email protected]>
Signed-off-by: bernardo <[email protected]>
Signed-off-by: bernardo <[email protected]>
@bnmfw bnmfw added the drt Detailed Routing label Oct 14, 2024
@bnmfw bnmfw changed the title Drt pa split drt: pin access split Oct 14, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

T* pin,
std::unique_ptr<frPathSeg> ps,
frInstTerm* inst_term,
const Point point,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 'point' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]

Suggested change
const Point point,
Point point,

T* pin,
std::unique_ptr<frPathSeg> ps,
frInstTerm* inst_term,
const Point point);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 'point' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]

Suggested change
const Point point);
Point point);

* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <omp.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 'omp.h' file not found [clang-diagnostic-error]

#include <omp.h>
         ^

* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <omp.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 'omp.h' file not found [clang-diagnostic-error]

#include <omp.h>
         ^

* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <omp.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 'omp.h' file not found [clang-diagnostic-error]

#include <omp.h>
         ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drt Detailed Routing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant