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

Support for 128 bit constants in dpdk backend #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Sosutha
Copy link
Owner

@Sosutha Sosutha commented Nov 8, 2024

Signed-off-by : Sosutha Sethuramapandian [email protected]

  • Added support for 128 bit constants usage in dpdk backend
  • Updated testcases and outputs

@Sosutha Sosutha force-pushed the dpdk_128_bit branch 4 times, most recently from 6ca3177 to 49488f6 Compare November 11, 2024 07:50
Copy link

@psivanup psivanup left a comment

Choose a reason for hiding this comment

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

The changes look fine to me

@@ -2957,6 +2957,14 @@ MoveNonHeaderFieldsToPseudoHeader::addAssignmentStmt(const IR::Expression *e) {
const IR::Node *MoveNonHeaderFieldsToPseudoHeader::postorder(IR::AssignmentStatement *assn) {
if (is_all_args_header) return assn;
auto result = new IR::IndexedVector<IR::StatOrDecl>();
if (isLargeFieldOperand(assn->left) && assn->right->is<IR::Constant>()) {
auto leftType = assn->left->type->to<IR::Type_Bits>()->width_bits();
auto rightType = assn->right->type->to<IR::Type_Bits>()->width_bits();

Choose a reason for hiding this comment

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

misleading variable name, can use leftSize instead.

@Sosutha Sosutha force-pushed the dpdk_128_bit branch 5 times, most recently from 5ffc0a9 to c9f778b Compare November 19, 2024 07:21
Signed-off-by : Sosutha Sethuramapandian <[email protected]>

* Added support for 128 bit constants usage in dpdk backend
* Updated testcases and outputs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants