Skip to content

[REFACTOR][TIR] Represent thread binding as a parallel-loop annotation - #20403

Closed
tqchen wants to merge 5 commits into
apache:mainfrom
tqchen:task-508-for-thread-binding-annotation
Closed

tqchen wants to merge 5 commits into
apache:mainfrom
tqchen:task-508-for-thread-binding-annotation

Conversation

@tqchen

@tqchen tqchen commented Sep 21, 2026

Copy link
Copy Markdown
Member

Represent thread binding as a String annotation on parallel For loops, removing the dedicated field and loop-kind value. The ordinary TIRx constructor accepts annotations and exposes no binding-specific API; S-TIR constructs and interprets the thread tag.

Update scheduling, builders, printers and lowering to preserve the annotation until binding is consumed, and rebuild transient IterVars only where lower-level thread attributes require them. Distinguish ordinary CPU parallel execution from thread-bound execution while preserving serial, vectorized, unrolled and extent-one thread-scope behavior.

@tqchen tqchen closed this Sep 22, 2026
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