From 231703baba0190cee19f01aae0b29ca69d3998c3 Mon Sep 17 00:00:00 2001 From: Abhikrant Sharma Date: Wed, 29 Apr 2020 12:20:53 -0500 Subject: [PATCH] [Hexagon] Change "scalar" and "stack" in IDL from "inrout" to "in" --- src/runtime/hexagon/target/fastrpc/include/tvm_remote.idl | 4 ++-- src/runtime/hexagon/target/fastrpc/include/tvm_remote_nd.idl | 4 ++-- src/runtime/hexagon/target/fastrpc/src/tvm_remote_imp.cc | 4 ++-- src/runtime/hexagon/target/fastrpc/src/tvm_remote_nd_imp.cc | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/runtime/hexagon/target/fastrpc/include/tvm_remote.idl b/src/runtime/hexagon/target/fastrpc/include/tvm_remote.idl index 6aa194ee9fe2..bb7d8a29550d 100644 --- a/src/runtime/hexagon/target/fastrpc/include/tvm_remote.idl +++ b/src/runtime/hexagon/target/fastrpc/include/tvm_remote.idl @@ -34,8 +34,8 @@ interface tvm_remote : remote_handle64 { rout handle_t sym_ptr); long kernel(in handle_t mod, in handle_t symbol, - inrout sequence scalar, - inrout sequence stack, + in sequence scalar, + in sequence stack, in sequence scalar_in_octet, rout sequence scalar_out_octet, in sequence stack_in_octet, diff --git a/src/runtime/hexagon/target/fastrpc/include/tvm_remote_nd.idl b/src/runtime/hexagon/target/fastrpc/include/tvm_remote_nd.idl index d49e094c9f0f..845ddeffa26f 100644 --- a/src/runtime/hexagon/target/fastrpc/include/tvm_remote_nd.idl +++ b/src/runtime/hexagon/target/fastrpc/include/tvm_remote_nd.idl @@ -36,8 +36,8 @@ interface tvm_remote_nd { rout handle_t sym_ptr); long kernel(in handle_t mod, in handle_t symbol, - inrout sequence scalar, - inrout sequence stack, + in sequence scalar, + in sequence stack, in sequence scalar_in_octet, rout sequence scalar_out_octet, in sequence stack_in_octet, diff --git a/src/runtime/hexagon/target/fastrpc/src/tvm_remote_imp.cc b/src/runtime/hexagon/target/fastrpc/src/tvm_remote_imp.cc index f245d7dcba4e..7f3c5038468b 100644 --- a/src/runtime/hexagon/target/fastrpc/src/tvm_remote_imp.cc +++ b/src/runtime/hexagon/target/fastrpc/src/tvm_remote_imp.cc @@ -165,8 +165,8 @@ int tvm_remote_get_symbol(remote_handle64 handle, tvm_remote_handle_t lib, */ int tvm_remote_kernel( remote_handle64 handle, tvm_remote_handle_t lib, - tvm_remote_handle_t symbol, int* scalar, int scalar_len, int* stack, - int stack_len, const tvm_remote_buffer* scalar_in_octet, + tvm_remote_handle_t symbol, const int* scalar, int scalar_len, + const int* stack, int stack_len, const tvm_remote_buffer* scalar_in_octet, int scalar_in_octet_len, tvm_remote_buffer* scalar_out_octet, int scalar_out_octet_len, const tvm_remote_buffer* stack_in_octet, int stack_in_octet_len, tvm_remote_buffer* stack_out_octet, diff --git a/src/runtime/hexagon/target/fastrpc/src/tvm_remote_nd_imp.cc b/src/runtime/hexagon/target/fastrpc/src/tvm_remote_nd_imp.cc index 24af924da65f..dce2e03d4b44 100644 --- a/src/runtime/hexagon/target/fastrpc/src/tvm_remote_nd_imp.cc +++ b/src/runtime/hexagon/target/fastrpc/src/tvm_remote_nd_imp.cc @@ -262,8 +262,8 @@ static void print_msg_call(const msg_call& mc) { * only. They are not used for procesing. */ int tvm_remote_nd_kernel( - tvm_remote_nd_handle_t lib, tvm_remote_nd_handle_t symbol, int* scalar, - int scalar_len, int* stack, int stack_len, + tvm_remote_nd_handle_t lib, tvm_remote_nd_handle_t symbol, + const int* scalar, int scalar_len, const int* stack, int stack_len, const tvm_remote_nd_buffer* scalar_in_octet, int scalar_in_octet_len, tvm_remote_nd_buffer* scalar_out_octet, int scalar_out_octet_len, const tvm_remote_nd_buffer* stack_in_octet, int stack_in_octet_len,