Skip to content

Change some internal packer APIs to not use C-style arrays #2987

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

Merged
merged 4 commits into from
Apr 19, 2025

Conversation

AmirhosseinPoolad
Copy link
Contributor

This commit changes some functions in the packer and prepacker that used C-style arrays to use std::vector instead. Previously we used the .data() method of std::vector to pass a pointer to these functions.

@github-actions github-actions bot added VPR VPR FPGA Placement & Routing Tool lang-cpp C/C++ code labels Apr 17, 2025
@github-actions github-actions bot added the libarchfpga Library for handling FPGA Architecture descriptions label Apr 17, 2025
@AmirhosseinPoolad AmirhosseinPoolad force-pushed the pack_remove_c_arr branch 2 times, most recently from a4772a1 to 3129316 Compare April 17, 2025 17:17
Copy link
Contributor

@AlexandreSinger AlexandreSinger left a comment

Choose a reason for hiding this comment

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

LGTM. Just one minor comment.

AmirhosseinPoolad and others added 4 commits April 18, 2025 16:37
This commit changes some functions that used C-style arrays
to use std::vector instead. Previously we used the .data() method
of std::vectors to pass a pointer to these functions.
This commit changes two functions in the prepacker to
get the specific element of the array they work with and
not the entire array.
@AlexandreSinger AlexandreSinger merged commit e3380ce into master Apr 19, 2025
36 checks passed
@AlexandreSinger AlexandreSinger deleted the pack_remove_c_arr branch April 19, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-cpp C/C++ code libarchfpga Library for handling FPGA Architecture descriptions VPR VPR FPGA Placement & Routing Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants