adstraw commented on a change in pull request #10365:
URL: https://github.com/apache/tvm/pull/10365#discussion_r814068120
##########
File path: include/tvm/tir/builtin.h
##########
@@ -626,6 +626,13 @@ TVM_DLL const Op& texture2d_store();
*/
TVM_DLL const Op& texture2d_load();
+/*!
+ * \brief Copy 1d memory from source to destination
+ * Same semantics as memcpy(destination, source, size)
+ * Allows for device specific implementations e.g. direct memory access (DMA)
+ */
+TVM_DLL const Op& mem_copy();
Review comment:
I was thinking about something with "DMA" in the name but I realized
that DMA is more of an implementation detail. I ended up referencing DMA in
the comments instead. Happy to take suggestions including `dma_mem_copy`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]