-
Notifications
You must be signed in to change notification settings - Fork 73
Refine host stream get/set IR nodes #5746
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
base: main
Are you sure you want to change the base?
Conversation
Description
|
| Relevant files | |||||||
|---|---|---|---|---|---|---|---|
| Enhancement |
| ||||||
| Tests |
|
PR Reviewer Guide
Here are some key observations to aid the review process:
| 🧪 PR contains tests |
| ⚡ Recommended focus areas for review |
Stream Creation Logic
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated. I'll do it in another PR
Greptile SummaryThis PR refines the host stream IR nodes to properly represent stream semantics in the intermediate representation. The key changes make Changes:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant IR as IR Builder
participant GCS as GetCurrentStream
participant SCS as SetCurrentStream
participant Pass as Stream Parallel Pass
Pass->>IR: Create Stream object
IR-->>Pass: stream instance
Pass->>IR: Create GetCurrentStream(stream)
IR->>GCS: stream as output
GCS-->>Pass: GetCurrentStream expr
Pass->>Pass: Add to top_level_exprs
Pass->>IR: Create SetCurrentStream(new_stream)
IR->>SCS: stream as input
SCS-->>Pass: SetCurrentStream expr
Pass->>Pass: Add to loop body
Note over GCS,SCS: Stream flows through IR as input/output<br/>enabling proper data dependency tracking
|
For #5308
Summary
Testing