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

Pre-generate header/doc files based on isa-spec.yaml #65

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

Conversation

stsoe
Copy link
Collaborator

@stsoe stsoe commented Feb 26, 2025

When isa-spec.yaml is updated, pre-generated files must be recreated through isa-spec-gen target.

cmake --build . --config Release --target isa-spec-gen

This PR moves the generation from src/cpp/aiebu/src/CMakeLists.txt into

  • specification/CMakeLists.txt and
  • specification/{aie2,aie2ps}/CMakeLists.txt

The pre-generated files are created in the source tree where they are checked in.

The isa-spec-gen target is not invoked as part of a regular build, but can be run by specifying the target. If the files are different they will have to be added and comitted along with the new isa-spec.yaml file.

Still to-do is to have a default target that compare the timestamp of isa-spec.yaml against that of the pre-generated files.

When isa-spec.yaml is updated, pre-generated files must be recreated
through isa-spec-gen target.

```
cmake --build . --config Release --target isa-spec-gen
```

This PR moves the generation from src/cpp/aiebu/src/CMakeLists.txt
into
- specification/CMakeLists.txt and
- specification/{aie2,aie2ps}/CMakeLists.txt

The pre-generated files are created in the source tree where they are
checked in.

The isa-spec-gen target is not invoked as part of a regular build, but
can be run by specifying the target.  If the files are different they
will have to be added and comitted along with the new isa-spec.yaml file.

Still to-do is to have a default target that compare the timestamp of
isa-spec.yaml against that of the pre-generated files.

Signed-off-by: Soren Soe <[email protected]>
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.

1 participant