-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IR] Experimental real function support (Stage 1) (#2306)
* [IR] Experimental real function support stage 1 (draft) * Fix build error * Add compile flag and separate FuncCallExpression/FrontendFuncCallStmt * Add CurrentFunctionGuard * Use Func.__call__ * Correct function body now * Compile function while compiling kernel * Compile to simplified * Add function_map and some cleanup * Function call type check * Fix C++/Python ownership issue * Inlining * cleanup * cleanup and code format * cleanup and code format * Debugging: test_call_expressions() * Fixed * Fix ti.Expr and chain_compare issue * [skip ci] enforce code format * Revert "enforce code format" This partially reverts commit 1a0ebbe * [skip ci] enforce code format * revert code format * Fix kernel functions, non-Taichi functions; add FrontendExprStmt * Remove FrontendFuncCallStmt * Apply review * Add a test and fix code format * fix test * Add FunctionKey * cleanup * support templates * Fix: FunctionKey seems not suitable for python dict * cleanup * fix tests about ti.func when experimental_real_function is false * Apply review * cleanup * Apply suggestions from code review * Apply review * Pass Function * into FuncCallStmt * cleanup: remove function_type_check() * Add a C++ test * code format * fix build error * Fix tests Co-authored-by: Taichi Gardener <[email protected]>
- Loading branch information
1 parent
ef8d89d
commit a07b5a5
Showing
38 changed files
with
1,042 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.