Skip to content

Add a first draft of the code annotations specification. - #173

Merged
dschuff merged 4 commits into
WebAssembly:mainfrom
yuri91:annotations
Nov 12, 2021
Merged

dschuff merged 4 commits into
WebAssembly:mainfrom
yuri91:annotations

Conversation

@yuri91

@yuri91 yuri91 commented Sep 20, 2021

Copy link
Copy Markdown
Contributor

This adds the document discussed in #167

@jabraham17

Copy link
Copy Markdown
Contributor

Adding to this document, the following is proposed as the new instruction trace format fitting with this proposal.


Trace Instruction

  • section name: code_annotation.trace_inst
  • binary format:
annotation(trace_inst) ::= funcpos: u32
               size: 0x04
               data: mark_id
mark_id ::= u32

Trace marks can appear on any instruction and are considered attached to the instruction. If a code transformation reorders the instruction, the trace mark should move with it. If a code transformation removes the instruction, the trace mark should be removed.

@yuri91

yuri91 commented Oct 11, 2021

Copy link
Copy Markdown
Contributor Author

Thanks @Jacob-Abraham , I updated the PR with the description of the Trace Instruction.

@yuri91

yuri91 commented Oct 11, 2021

Copy link
Copy Markdown
Contributor Author

Is there any blocker to get this merged? In the latest CG meeting there seemed to be no objection in the direction of this proposal.
If there are specific issues I am happy to work on fixing them.

Comment thread CodeAnnotations.md Resolved
Comment thread CodeAnnotations.md Resolved
Co-authored-by: Derek Schuff <[email protected]>
@yuri91

yuri91 commented Nov 10, 2021

Copy link
Copy Markdown
Contributor Author

Could this be merged? I would like to be able to easily point issues like WebAssembly/branch-hinting#15 that concern Code Annotations in general to this document (and this repo).

@dschuff
dschuff merged commit 38e7834 into WebAssembly:main Nov 12, 2021
@dschuff

dschuff commented Nov 12, 2021

Copy link
Copy Markdown
Member

Sorry for the delay here. If you end up contributing frequently to tool-conventions I'll just add you as a committer.

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.

3 participants