Skip to content

Expose typed OpenACC host fragments and remove deprecated parser API - #21

Merged
ouankou merged 3 commits into
mainfrom
agent/harden-unparser-contracts
Aug 7, 2026
Merged

ouankou merged 3 commits into
mainfrom
agent/harden-unparser-contracts

Conversation

@ouankou

@ouankou ouankou commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • remove the deprecated raw OpenACC parser entry point and its compatibility-only caller test
  • expose typed host-fragment traversal over the OpenACC AST
  • preserve the fragment kind, source spelling, and owned semantic node at the parser boundary
  • add parser tests for typed host-fragment discovery and semantic-node attachment

Why

REX must consume the parser's typed AST directly. Keeping the deprecated compatibility API would preserve two competing parser contracts and allow callers to bypass typed ownership. The new traversal API gives REX one explicit boundary for attaching frontend semantic nodes without reparsing or reconstructing host-language fragments later.

This is intentionally an API-breaking cleanup. Unsupported or malformed states are not projected through a fallback compatibility path.

Validation

  • standalone build completed with no pending work
  • full standalone CTest suite: 919/919 passed, zero failures
  • git diff --check origin/main...HEAD passed

@ouankou

ouankou commented Aug 7, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 08aeb62a06

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/OpenACCIR.cpp
@ouankou

ouankou commented Aug 7, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 14b52b9345

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ouankou
ouankou merged commit b202e74 into main Aug 7, 2026
6 checks passed
@ouankou
ouankou deleted the agent/harden-unparser-contracts branch August 7, 2026 16:11
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