Skip to content

update save/restore preemption asm annotation points#287

Merged
xuhz merged 1 commit into
Xilinx:main-gefrom
AdvaitNaik:annotation_update
May 20, 2026
Merged

update save/restore preemption asm annotation points#287
xuhz merged 1 commit into
Xilinx:main-gefrom
AdvaitNaik:annotation_update

Conversation

@AdvaitNaik
Copy link
Copy Markdown
Collaborator

Problem solved by the commit

update save/restore preemption asm annotation id for simplicity
make annotation id file-scoped (only 0/1 per file)

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

How problem was solved, alternative solutions (if any) and why they were rejected

Risks (if any) associated the changes in the commit

What has been tested and how, request additional testing if necessary

Documentation impact (if any)

Signed-off-by: advanaik <AdvaitHemant.Naik@amd.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Renumbers the annotation id values in the AIE4 preemption save/restore assembly specification files to be file-scoped (0 and 1 per file) instead of globally unique, simplifying maintenance.

Changes:

  • Replaces start-annotation id with 0 and end-annotation id with 1 in each preemption asm file.
  • Applies this consistently across all save and restore variants (1c, 1c0, 1c1, 1c2, 2c, 3c).

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
specification/aie4/preemption_asm/aie4_save_1c1.asm Renumber annotation ids 4/5 → 0/1
specification/aie4/preemption_asm/aie4_save_1c2.asm Renumber annotation ids 8/9 → 0/1
specification/aie4/preemption_asm/aie4_restore_1c.asm Renumber annotation ids 2/3 → 0/1
specification/aie4/preemption_asm/aie4_restore_1c0.asm Renumber annotation ids 2/3 → 0/1
specification/aie4/preemption_asm/aie4_restore_1c1.asm Renumber annotation ids 6/7 → 0/1
specification/aie4/preemption_asm/aie4_restore_1c2.asm Renumber annotation ids 10/11 → 0/1
specification/aie4/preemption_asm/aie4_restore_2c.asm Renumber annotation ids 2/3 → 0/1
specification/aie4/preemption_asm/aie4_restore_3c.asm Renumber annotation ids 2/3 → 0/1

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Copy Markdown
Member

@sonals sonals left a comment

Choose a reason for hiding this comment

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

Shouldn't the tables defined in src/cpp/preprocessor/aie4/aie4_save_restore_map_prebuilt.h be const?

@HimanshuChoudhary-Xilinx
Copy link
Copy Markdown
Collaborator

Shouldn't the tables defined in src/cpp/preprocessor/aie4/aie4_save_restore_map_prebuilt.h be const?

yes, @sonals
i will did in my new pr
#292

@xuhz xuhz merged commit 04a3e5b into Xilinx:main-ge May 20, 2026
10 checks passed
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.

5 participants