Commit ddfde89
committed
Update on "[Helion + torch.compile] Refactor TemplateBuffer as extensible base class"
Move common fields and methods up from TritonTemplateBuffer to
TemplateBuffer so that all template subclasses (Triton, CuteDSL,
external backends) share them:
- Add mutated_inputs, allowed_prologue_inps to TemplateBuffer.__init__
- Move mutation_outputs setup from TritonTemplateBuffer to base class
- Move get_outputs(), get_allowed_prologue_inps() up
- Extract _read_deps_from_inputs() helper from extract_read_writes()
- Remove can_fuse_multi_output_epilogue() (unused)
- Simplify TritonTemplateBuffer to delegate to super().__init__()
- Remove redundant self.outputs from CppTemplateBuffer
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo
[ghstack-poisoned]1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5223 | 5223 | | |
5224 | 5224 | | |
5225 | 5225 | | |
5226 | | - | |
5227 | | - | |
5228 | | - | |
| 5226 | + | |
5229 | 5227 | | |
5230 | 5228 | | |
5231 | 5229 | | |
| |||
5335 | 5333 | | |
5336 | 5334 | | |
5337 | 5335 | | |
5338 | | - | |
5339 | | - | |
5340 | | - | |
5341 | 5336 | | |
5342 | 5337 | | |
5343 | 5338 | | |
| |||
5362 | 5357 | | |
5363 | 5358 | | |
5364 | 5359 | | |
| 5360 | + | |
| 5361 | + | |
| 5362 | + | |
5365 | 5363 | | |
5366 | 5364 | | |
5367 | 5365 | | |
| |||
0 commit comments