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

[P4Testgen] Refactor ProgramInfo to be initialized with CompilerResult instead of a IR::P4Program #4324

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Jan 10, 2024

Builds on #4323 and introduces the CompilerResult data structure to the ProgramInfo class.

It also introduces the BMv2CompilerResult, which also contains the P4Rutime API for the program. This API is computed in the mid end for this target.

@fruffy fruffy added the p4tools Topics related to the P4Tools back end label Jan 10, 2024
@fruffy fruffy changed the base branch from main to fruffy/compiler_info_1 January 10, 2024 13:40
@fruffy fruffy marked this pull request as draft January 10, 2024 15:23
Copy link
Contributor

@vlstill vlstill left a comment

Choose a reason for hiding this comment

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

Looks good, one question...

@fruffy fruffy force-pushed the fruffy/compiler_info_1 branch 2 times, most recently from e9a24db to 227ff4d Compare January 12, 2024 17:57
Base automatically changed from fruffy/compiler_info_1 to main January 12, 2024 18:48
@fruffy fruffy marked this pull request as ready for review January 12, 2024 18:51
@fruffy fruffy requested a review from vlstill January 12, 2024 18:51
class Bmv2V1ModelCompilerTarget : public CompilerTarget {
public:
/// Registers this target.
static void make();

/// @returns the singleton instance for the current target.
static const Bmv2V1ModelCompilerTarget &get();
Copy link
Contributor

Choose a reason for hiding this comment

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

The singleton was not there before?

@fruffy fruffy force-pushed the fruffy/compiler_info_2 branch 5 times, most recently from 7376777 to a9121c7 Compare January 13, 2024 14:14
@vlstill vlstill self-requested a review January 15, 2024 10:12
@fruffy fruffy enabled auto-merge (squash) January 15, 2024 10:16
@fruffy fruffy merged commit 4c547a3 into main Jan 15, 2024
13 checks passed
@fruffy fruffy deleted the fruffy/compiler_info_2 branch January 15, 2024 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p4tools Topics related to the P4Tools back end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants