Skip to content

Commit 38f7e49

Browse files
committed
lint fix
1 parent fde6a50 commit 38f7e49

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/transform/arg_binder.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ void ArgBinder::Bind(const PrimExpr &arg, const PrimExpr &value,
8080
Bind_(arg, value, arg_name, with_let);
8181
}
8282

83-
void ArgBinder::BindArray(const Array<PrimExpr> &arg,
84-
const Array<PrimExpr> &value,
83+
void ArgBinder::BindArray(const ffi::Array<PrimExpr> &arg,
84+
const ffi::Array<PrimExpr> &value,
8585
const std::string &arg_name) {
8686
ICHECK_EQ(arg.size(), value.size())
8787
<< "Argument " << arg_name << " array size mismatch";
@@ -250,7 +250,7 @@ void ArgBinder::BindDLTensor(const Buffer &buffer, const PrimExpr &device_type,
250250
// Assert the buffer is compact
251251
DataType stype = buffer->DefaultIndexType();
252252
PrimExpr expect_stride = make_const(stype, 1);
253-
Array<PrimExpr> conds;
253+
ffi::Array<PrimExpr> conds;
254254
for (size_t i = buffer->shape.size(); i != 0; --i) {
255255
size_t k = i - 1;
256256
PrimExpr svalue =

src/transform/arg_binder.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ class ArgBinder {
8282
* \param value The target expression value
8383
* \param arg_name argument name.
8484
*/
85-
void BindArray(const Array<PrimExpr> &arg, const Array<PrimExpr> &value,
85+
void BindArray(const ffi::Array<PrimExpr> &arg,
86+
const ffi::Array<PrimExpr> &value,
8687
const std::string &arg_name);
8788
/*!
8889
* \brief Bind symbolic buffer to another symbolic buffer
@@ -149,7 +150,7 @@ class ArgBinder {
149150
*/
150151
const std::vector<Stmt> &init_nest() const { return init_nest_; }
151152
/*! \return Handle data type of the data */
152-
const Map<Var, PrimExpr> &def_handle_dtype() const {
153+
const ffi::Map<Var, PrimExpr> &def_handle_dtype() const {
153154
return def_handle_dtype_;
154155
}
155156

@@ -164,7 +165,7 @@ class ArgBinder {
164165
/*! \brief Initialize nest */
165166
std::vector<Stmt> init_nest_;
166167
/*! \brief handle data type in the defintiions */
167-
Map<Var, PrimExpr> def_handle_dtype_;
168+
ffi::Map<Var, PrimExpr> def_handle_dtype_;
168169
/*! \brief asserts generated */
169170
std::vector<Stmt> asserts_;
170171
/*! \brief internal analyzer. */

0 commit comments

Comments
 (0)