|
tvm
|
Copy-on-write helper macro for IR ffi::ObjectRef types. More...
#include <tvm/ffi/object.h>#include <utility>Go to the source code of this file.
Namespaces | |
| tvm | |
| An object that builds and maintains block scope and StmtSref mapping for Dependence analysis. | |
Macros | |
| #define | TVM_DEFINE_OBJECT_REF_COW_METHOD(ObjectName) |
| Define CopyOnWrite function in an ffi::ObjectRef. More... | |
Copy-on-write helper macro for IR ffi::ObjectRef types.
| #define TVM_DEFINE_OBJECT_REF_COW_METHOD | ( | ObjectName | ) |
Define CopyOnWrite function in an ffi::ObjectRef.
| ObjectName | The Type of the Node. |
CopyOnWrite will generate a unique copy of the internal node. The node will be copied if it is referenced by multiple places. The function returns the raw pointer to the node to allow modification of the content.