Name |
Last commit
|
Last update |
---|---|---|
.. | ||
common | ||
frontend | ||
macros | ||
runtime | ||
.gitignore | ||
.rustfmt.toml | ||
Cargo.toml |
* [RUNTIME] Introduce RValue reference(move) support to TypedPackedFunc This PR introduces RValue reference support the PackedFunc calling convention to address the above issue. Specifically, when an argument is a r-value reference, we will use a assign a different type code(`kObjectRValueRefArg`), and pass `Object**` (the address to the Object pointer) instead through the values array. The callee can choose to move out this Object pointer and set the original Object pointer from the caller side to be nullptr. We also add an experimental move support to the python side(marked as _move so to indicate the dev nature). This enhancement will enable copy on write optimizations through out the TVM stack. * Address review comments * fix compilation
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
common | Loading commit data... | |
frontend | Loading commit data... | |
macros | Loading commit data... | |
runtime | Loading commit data... | |
.gitignore | Loading commit data... | |
.rustfmt.toml | Loading commit data... | |
Cargo.toml | Loading commit data... |