Displaying 1 result from an estimated 1 matches for "threadconstattr".
2020 Nov 18
0
[RFC] Coroutine and pthread_self
...scalable and it puts burden on pass writers. So I would
like to propose a new solution.
Proposed Solution:
First of all, we need to update the Clang front-end to special handle
the attributes of pthread_self function: replace the ConstAttr
attribute of pthread_self with a new attribute, say "ThreadConstAttr".
Next, in the emitted IR, functions with "ThreadConstAttr" will have a
new IR attribute, say "thread_readnone".
Finally, there are two possible sub-solutions to handle this new IR attribute:
a) We add a new Pass after CoroSplitPass that changes all the
"thread_readnon...