Skip to content

[Refactor] Introduce NeuraAttributes.h to manage attribute constants#241

Merged
tancheng merged 4 commits intocoredac:mainfrom
shiyunyao:main
Jan 20, 2026
Merged

[Refactor] Introduce NeuraAttributes.h to manage attribute constants#241
tancheng merged 4 commits intocoredac:mainfrom
shiyunyao:main

Conversation

@shiyunyao
Copy link
Copy Markdown
Contributor

This PR addresses part of #145 by introducing a centralized header NeuraAttributes.h and replacing a subset of hardcoded magic strings in the lib/ directory.

Copy link
Copy Markdown
Contributor

@tancheng tancheng left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup~!

@tancheng tancheng requested a review from HobbitQia January 18, 2026 14:51
@tancheng tancheng linked an issue Jan 18, 2026 that may be closed by this pull request
@tancheng
Copy link
Copy Markdown
Contributor

@shiyunyao
Copy link
Copy Markdown
Contributor Author

Hi @tancheng, thanks for the suggestions!

I have addressed both points in the latest commits:

  1. Clarified Dataflow/Mapping modes: Added comments as requested (see b209ad1).

  2. Added missing constants: Ported the logic from GenerateCodePass.cpp and added kValue, kConstantValue, kRhsValue, kLhsValue to the header (see 344e97c).

Please verify and resolve the conversation if it looks good.

@tancheng
Copy link
Copy Markdown
Contributor

Thanks~!

@tancheng tancheng merged commit 76f8c1a into coredac:main Jan 20, 2026
1 check 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.

[P0] Add attributes header file to manage attributes in neura dialects

4 participants