Skip to content

Add AST and parsing support for gpu frame blocks - #1301

Merged
godofecht merged 9 commits into
mainfrom
jules-17219555743344578006-63bbc736
Oct 4, 2026
Merged

godofecht merged 9 commits into
mainfrom
jules-17219555743344578006-63bbc736

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Adds the initial AST_GPU_FRAME and parsing integration in flowc for gpu frame { ... } blocks, as outlined in the multi-pass GPU design tracking document.

  • AST node AST_GPU_FRAME
  • Parser extension flowc_parse_gpu_frame
  • Typecheck evaluation extension (to handle inner blocks correctly).

PR created automatically by Jules for task 17219555743344578006 started by @godofecht

@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules Bot and others added 2 commits October 3, 2026 22:06
This PR adds the `AST_GPU_FRAME` node to the Flow compiler's AST and implements parsing for `gpu frame { ... }` blocks in the `flowc` parser. The blocks are correctly passed through to the type checker to resolve statements within the frame block. This forms the foundation for representing render and compute passes natively in Flow, allowing multi-pass GPU programs to execute without host-side choreography.

Part of #812

Co-authored-by: godofecht <[email protected]>
@cursor
cursor Bot force-pushed the jules-17219555743344578006-63bbc736 branch from 1160334 to 93db771 Compare October 3, 2026 22:10
cursoragent and others added 7 commits October 4, 2026 14:42
Keep the AST_GPU_FRAME parser/typecheck feature and take main's
bootstrap C so it can be regenerated from the merged compiler/src.

Co-authored-by: Abhishek Shivakumar <[email protected]>
Self-emit from the merged compiler/src until the C reaches a fixed
point at gen2 so bootstrap_from_c.sh --verify matches AST_GPU_FRAME.

Co-authored-by: Abhishek Shivakumar <[email protected]>
Programs that import compiler/src now include the gpu-frame AST node
and parser, so their normalized MLIR digests change. Update those 28
corpus entries only.

Co-authored-by: Abhishek Shivakumar <[email protected]>
Include native shape specialization from #1303 (aa6fec8) while
keeping AST_GPU_FRAME parser/typecheck work.

Co-authored-by: Abhishek Shivakumar <[email protected]>
Include first-class RT-safe callable contracts from #1310 (5d97890)
while keeping AST_GPU_FRAME parser/typecheck. Take main's bootstrap C
so it can be regenerated from the merged compiler/src.

Co-authored-by: Abhishek Shivakumar <[email protected]>
Self-emit from the merged compiler/src until the C reaches a fixed
point at gen2 so bootstrap_from_c.sh --verify matches AST_GPU_FRAME
and the #1310 rt_safe callable-contract work.

Co-authored-by: Abhishek Shivakumar <[email protected]>
tests/lang/test_typecheck_overload_integration.flow imports
compiler/src/typecheck.flow, so its normalized MLIR digest changes
when AST_GPU_FRAME and the #1310 rt_safe row checks sit together.
Update that one corpus entry only.

Co-authored-by: Abhishek Shivakumar <[email protected]>
@godofecht
godofecht merged commit 49f16ed into main Oct 4, 2026
35 checks passed
@godofecht
godofecht deleted the jules-17219555743344578006-63bbc736 branch October 12, 2026 22:43
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.

2 participants