You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/08/04 23:27:59 UTC

[GitHub] [tvm] ZihengJiang commented on a change in pull request #7686: [Texture support][Part 1] TIR lowering and OpenCL support

ZihengJiang commented on a change in pull request #7686:
URL: https://github.com/apache/tvm/pull/7686#discussion_r683023953



##########
File path: src/target/source/codegen_opencl.cc
##########
@@ -27,18 +27,63 @@
 #include <vector>
 
 #include "../../runtime/opencl/opencl_module.h"
+#include "../../runtime/texture.h"
 #include "../../runtime/thread_storage_scope.h"
 #include "../build_common.h"
 
 namespace tvm {
 namespace codegen {
 
-CodeGenOpenCL::CodeGenOpenCL() { restrict_keyword_ = "restrict"; }
+class InferTextureAccess : public StmtExprVisitor {
+ public:
+  static constexpr const uint8_t read_access = 1;

Review comment:
       The naming convention is kReadAccess for constant.




-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org