taichi icon indicating copy to clipboard operation
taichi copied to clipboard

[Lang] More evaluative build_for

Open windwhiterain opened this issue 9 months ago • 2 comments

When build ast for "for loop", decorators like "static", "grouped", exprs like "ndrange" are detected directly from ast. However, "mesh-for" is detected via evaluating the iterable statement's value. I made some change that using similar evaluation to detect "grouped" and "ndrange" so that end user can wrap these method into there own iterable. I'm motivated when developing a type hint rich wrapper for taichi, during which I found no way to wrap "grouped" nor "ndrange" into typed one.

windwhiterain avatar Mar 09 '25 18:03 windwhiterain

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Mar 09 '25 18:03 CLAassistant

/rebase

feisuzhu avatar May 07 '25 14:05 feisuzhu