Repository navigation
Add AST and parsing support for gpu frame blocks - #1301
Conversation
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
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]>
Co-authored-by: Abhishek Shivakumar <[email protected]>
1160334 to
93db771
Compare
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]>
Adds the initial
AST_GPU_FRAMEand parsing integration inflowcforgpu frame { ... }blocks, as outlined in the multi-pass GPU design tracking document.AST_GPU_FRAMEflowc_parse_gpu_framePR created automatically by Jules for task 17219555743344578006 started by @godofecht