-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ir] Basic function definition/call instructions #612
Conversation
好累啊… |
当前我们只有一个kernel offload,如何插入新的offload为了FrontendFuncDefStmt? |
"Modifying a low-level header causes a recompilation of every cpp file that depends on it" is something notorious about C++. Maybe a more fundamental solution is to improve compilation speed in general. Currently, we have too many stuff in the headers (which gets recompiled over and over again) - maybe we should move these to the cpp files. Btw do you use WeChat? Do you mind emailing me ([email protected]) your WeChat id? |
I guess it's better to store |
Sounds reasonable, but where is OffloadedStmt stored? Can't find OffloadedStmt creation anywhere in export_lang. Isn't it done until lowering AST? |
It's stored at the root level. Note that |
Move some into cpp means no longer keep sync with defs in h? I still want to make
Email sent, hopefully gmail won't be forbidden by tianchao GFW. |
So I should modify taichi/taichi/transforms/offload.cpp Line 81 in a4b557b
Can translate to FunctionDefStmt here. |
Just a minute. I'm updating #602 to make things clear... |
I'll merge this in for now, but I suggest that we first come up with a detailed implementation plan before we start coding on this issue again. |
* [skip ci] add FuncBodyStmt * add FrontendFuncDefStmt & begin_func/end_func * function using scope_stack & real func_call * [skip ci] enforce code format * Update TaichiCore.cmake Co-authored-by: Taichi Gardener <[email protected]> Co-authored-by: Yuanming Hu <[email protected]>
Related issue id = #602