-
Notifications
You must be signed in to change notification settings - Fork 1
[DO NOT MERGE] sync for review #4
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
base: new2024
Are you sure you want to change the base?
Conversation
1. Port CustomOperator.def. 2. Add rounding mode. 3. Port tail policy. 4. Add intrinsic function prefix "__riscv_". 5. Fix CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request introduces extensive inline comment additions and new literal body definitions across multiple operator literal generation scripts. Key changes include the introduction of new operation modes (e.g. FRM, VXRM) in VXLiteral, VVLiteral, VSLiteral, and VLiteral, updates to operator creation functions to include identifying inline comments, and adjustments to build and CI configuration files.
Reviewed Changes
Copilot reviewed 60 out of 68 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
scripts/XLiteral.py | Added new literal body for nonmask MV operations and inline comments in create_x_op. |
scripts/VXMLiteral.py | Appended inline comments to operator creation lines. |
scripts/VXLiteral.py | Introduced new literal bodies (e.g. vx_literal_nonmask_frm_body, vx_literal_mask_vxrm_body) and extended operator creation branches for FRM/VXRM modes. |
scripts/VVMLiteral.py | Minor comment additions. |
scripts/VVLiteral.py | Added several new literal bodies and updated operator creation functions for various modes. |
scripts/VSLiteral.py | New reduction and masked literal bodies introduced. |
scripts/VLiteral.py | Added literal bodies for load and frame operations; updated operator creation functions with inline comments and debug outputs. |
scripts/MiscMaskLiteral.py | Updated inline comments and adjusted input handling in operator creation functions. |
scripts/GenerateOperatorComputeHeaders.py | Updated header generation comments to reflect the new script location. |
rif-test | Removed the experimental extension flag from arch_flags. |
.github/workflows/clang-format.yml | Upgraded the clang-format action version and clangFormatVersion. |
Files not reviewed (8)
- include/Basic.hpp: Language not supported
- include/CustomValue.def: Language not supported
- include/Decode.hpp: Language not supported
- include/TypeInfo.hpp: Language not supported
- library/Basic.cpp: Language not supported
- library/Graph.cpp: Language not supported
- library/Operator.cpp: Language not supported
- library/Utils.cpp: Language not supported
Comments suppressed due to low confidence (2)
rif-test:23
- Verify that the removal of the '-menable-experimental-extensions' flag is intentional and does not negatively impact any functionality relying on experimental extensions.
arch_flags = "-march=%s -mabi=%s " %(opts.arch, opts.abi)
.github/workflows/clang-format.yml:11
- [nitpick] Ensure that upgrading to clang-format version 16 is fully supported by your CI environment and documented for developers.
- uses: DoozyX/[email protected]
''' | ||
|
||
v_literal_mask_frm_body = ''' | ||
// generated by scripts/VLiteral.py v_literal_mask_frm_body |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider removing or guarding the debug std::cerr outputs in this literal body to avoid unintended console logging in production builds.
// generated by scripts/VLiteral.py v_literal_mask_frm_body | |
// generated by scripts/VLiteral.py v_literal_mask_frm_body | |
#ifdef DEBUG |
Copilot uses AI. Check for mistakes.
No description provided.