Skip to content

Commit 750c1f5

Browse files
committed
cpplint
1 parent 1ae34fe commit 750c1f5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+156
-225
lines changed

include/tvm/arith/analyzer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
#define TVM_ARITH_ANALYZER_H_
2626

2727
#include <tvm/arith/int_set.h>
28+
#include <tvm/ffi/reflection/reflection.h>
2829
#include <tvm/ir/expr.h>
2930
#include <tvm/support/with.h>
30-
#include <tvm/ffi/reflection/reflection.h>
3131

3232
#include <limits>
3333
#include <memory>
@@ -90,8 +90,8 @@ class ConstIntBoundNode : public Object {
9090
static void RegisterReflection() {
9191
namespace refl = tvm::ffi::reflection;
9292
refl::ObjectDef<ConstIntBoundNode>()
93-
.def_ro("min_value", &ConstIntBoundNode::min_value)
94-
.def_ro("max_value", &ConstIntBoundNode::max_value);
93+
.def_ro("min_value", &ConstIntBoundNode::min_value)
94+
.def_ro("max_value", &ConstIntBoundNode::max_value);
9595
}
9696

9797
static constexpr bool _type_has_method_visit_attrs = false;

include/tvm/arith/iter_affine_map.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
#define TVM_ARITH_ITER_AFFINE_MAP_H_
5050

5151
#include <tvm/arith/analyzer.h>
52+
#include <tvm/ffi/reflection/reflection.h>
5253
#include <tvm/ir/diagnostic.h>
5354
#include <tvm/ir/expr.h>
5455
#include <tvm/tir/var.h>
55-
#include <tvm/ffi/reflection/reflection.h>
5656

5757
namespace tvm {
5858
namespace arith {
@@ -102,8 +102,8 @@ class IterMarkNode : public Object {
102102
static void RegisterReflection() {
103103
namespace refl = tvm::ffi::reflection;
104104
refl::ObjectDef<IterMarkNode>()
105-
.def_ro("source", &IterMarkNode::source)
106-
.def_ro("extent", &IterMarkNode::extent);
105+
.def_ro("source", &IterMarkNode::source)
106+
.def_ro("extent", &IterMarkNode::extent);
107107
}
108108

109109
static constexpr bool _type_has_method_visit_attrs = false;
@@ -161,10 +161,10 @@ class IterSplitExprNode : public IterMapExprNode {
161161
static void RegisterReflection() {
162162
namespace refl = tvm::ffi::reflection;
163163
refl::ObjectDef<IterSplitExprNode>()
164-
.def_ro("source", &IterSplitExprNode::source)
165-
.def_ro("lower_factor", &IterSplitExprNode::lower_factor)
166-
.def_ro("extent", &IterSplitExprNode::extent)
167-
.def_ro("scale", &IterSplitExprNode::scale);
164+
.def_ro("source", &IterSplitExprNode::source)
165+
.def_ro("lower_factor", &IterSplitExprNode::lower_factor)
166+
.def_ro("extent", &IterSplitExprNode::extent)
167+
.def_ro("scale", &IterSplitExprNode::scale);
168168
}
169169

170170
static constexpr bool _type_has_method_visit_attrs = false;
@@ -231,8 +231,8 @@ class IterSumExprNode : public IterMapExprNode {
231231
static void RegisterReflection() {
232232
namespace refl = tvm::ffi::reflection;
233233
refl::ObjectDef<IterSumExprNode>()
234-
.def_ro("args", &IterSumExprNode::args)
235-
.def_ro("base", &IterSumExprNode::base);
234+
.def_ro("args", &IterSumExprNode::args)
235+
.def_ro("base", &IterSumExprNode::base);
236236
}
237237

238238
static constexpr bool _type_has_method_visit_attrs = false;
@@ -302,9 +302,9 @@ class IterMapResultNode : public Object {
302302
static void RegisterReflection() {
303303
namespace refl = tvm::ffi::reflection;
304304
refl::ObjectDef<IterMapResultNode>()
305-
.def_ro("indices", &IterMapResultNode::indices)
306-
.def_ro("errors", &IterMapResultNode::errors)
307-
.def_ro("padding_predicate", &IterMapResultNode::padding_predicate);
305+
.def_ro("indices", &IterMapResultNode::indices)
306+
.def_ro("errors", &IterMapResultNode::errors)
307+
.def_ro("padding_predicate", &IterMapResultNode::padding_predicate);
308308
}
309309

310310
static constexpr bool _type_has_method_visit_attrs = false;

include/tvm/ir/expr.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
#ifndef TVM_IR_EXPR_H_
2525
#define TVM_IR_EXPR_H_
2626

27+
#include <tvm/ffi/reflection/reflection.h>
2728
#include <tvm/ffi/string.h>
2829
#include <tvm/ir/source_map.h>
2930
#include <tvm/ir/type.h>
3031
#include <tvm/node/node.h>
3132
#include <tvm/runtime/object.h>
32-
#include <tvm/ffi/reflection/reflection.h>
3333

3434
#include <algorithm>
3535
#include <functional>
@@ -108,7 +108,6 @@ class PrimExprNode : public BaseExprNode {
108108
*/
109109
DataType dtype;
110110

111-
112111
static void RegisterReflection() {
113112
namespace refl = tvm::ffi::reflection;
114113
refl::ObjectDef<PrimExprNode>().def_ro("dtype", &PrimExprNode::dtype);

include/tvm/meta_schedule/arg_info.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
#define TVM_META_SCHEDULE_ARG_INFO_H_
2121

2222
#include <tvm/ffi/container/shape.h>
23+
#include <tvm/ffi/reflection/reflection.h>
2324
#include <tvm/ir/module.h>
2425
#include <tvm/node/node.h>
2526
#include <tvm/node/reflection.h>
2627
#include <tvm/runtime/data_type.h>
2728
#include <tvm/runtime/object.h>
2829
#include <tvm/tir/function.h>
29-
#include <tvm/ffi/reflection/reflection.h>
3030

3131
namespace tvm {
3232
namespace meta_schedule {

include/tvm/meta_schedule/builder.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
#include <tvm/ffi/container/map.h>
2424
#include <tvm/ffi/function.h>
2525
#include <tvm/ffi/optional.h>
26+
#include <tvm/ffi/reflection/reflection.h>
2627
#include <tvm/ffi/string.h>
2728
#include <tvm/ir/module.h>
2829
#include <tvm/node/reflection.h>
2930
#include <tvm/runtime/ndarray.h>
3031
#include <tvm/runtime/object.h>
3132
#include <tvm/target/target.h>
32-
#include <tvm/ffi/reflection/reflection.h>
3333

3434
namespace tvm {
3535
namespace meta_schedule {
@@ -156,8 +156,7 @@ class PyBuilderNode : public BuilderNode {
156156

157157
static void RegisterReflection() {
158158
namespace refl = tvm::ffi::reflection;
159-
refl::ObjectDef<PyBuilderNode>()
160-
.def_ro("f_build", &PyBuilderNode::f_build);
159+
refl::ObjectDef<PyBuilderNode>().def_ro("f_build", &PyBuilderNode::f_build);
161160
}
162161

163162
static constexpr bool _type_has_method_visit_attrs = false;

include/tvm/meta_schedule/cost_model.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222

2323
#include <tvm/ffi/container/array.h>
2424
#include <tvm/ffi/function.h>
25+
#include <tvm/ffi/reflection/reflection.h>
2526
#include <tvm/ffi/string.h>
2627
#include <tvm/meta_schedule/arg_info.h>
2728
#include <tvm/meta_schedule/measure_candidate.h>
2829
#include <tvm/meta_schedule/runner.h>
2930
#include <tvm/node/reflection.h>
3031
#include <tvm/runtime/object.h>
3132
#include <tvm/tir/schedule/schedule.h>
32-
#include <tvm/ffi/reflection/reflection.h>
3333

3434
#include <vector>
3535

@@ -126,8 +126,6 @@ class PyCostModelNode : public CostModelNode {
126126
/*! \brief The packed function to the `AsString` function. */
127127
FAsString f_as_string;
128128

129-
130-
131129
void Load(const String& path);
132130
void Save(const String& path);
133131
void Update(const TuneContext& context, const Array<MeasureCandidate>& candidates,

include/tvm/meta_schedule/database.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#include <tvm/ffi/container/array.h>
2323
#include <tvm/ffi/function.h>
24+
#include <tvm/ffi/reflection/reflection.h>
2425
#include <tvm/ffi/string.h>
2526
#include <tvm/ir/expr.h>
2627
#include <tvm/ir/module.h>
@@ -30,7 +31,6 @@
3031
#include <tvm/target/target.h>
3132
#include <tvm/tir/schedule/schedule.h>
3233
#include <tvm/tir/schedule/trace.h>
33-
#include <tvm/ffi/reflection/reflection.h>
3434

3535
#include <memory>
3636

@@ -383,8 +383,8 @@ class PyDatabaseNode : public DatabaseNode {
383383
FSize f_size;
384384

385385
static void RegisterReflection() {
386-
// ffi::Functions are all not registered, because the reflection system doesn't take care of them,
387-
// so it cannot be accessible on the python side. If there is such need from the future,
386+
// ffi::Functions are all not registered, because the reflection system doesn't take care of
387+
// them, so it cannot be accessible on the python side. If there is such need from the future,
388388
// we can then add corresponding accessor methods to help access on python.
389389
// `f_has_workload` is not registered
390390
// `f_commit_workload` is not registered

include/tvm/meta_schedule/extracted_task.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
#define TVM_META_SCHEDULE_EXTRACTED_TASK_H_
2121

2222
#include <tvm/ffi/container/array.h>
23+
#include <tvm/ffi/reflection/reflection.h>
2324
#include <tvm/ffi/string.h>
2425
#include <tvm/ir/module.h>
2526
#include <tvm/node/reflection.h>
2627
#include <tvm/runtime/object.h>
2728
#include <tvm/target/target.h>
28-
#include <tvm/ffi/reflection/reflection.h>
2929

3030
namespace tvm {
3131
namespace tir {

include/tvm/meta_schedule/feature_extractor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222

2323
#include <tvm/ffi/container/array.h>
2424
#include <tvm/ffi/function.h>
25+
#include <tvm/ffi/reflection/reflection.h>
2526
#include <tvm/ffi/string.h>
2627
#include <tvm/meta_schedule/measure_candidate.h>
2728
#include <tvm/node/reflection.h>
2829
#include <tvm/runtime/ndarray.h>
2930
#include <tvm/runtime/object.h>
30-
#include <tvm/ffi/reflection/reflection.h>
3131

3232
namespace tvm {
3333
namespace meta_schedule {

include/tvm/meta_schedule/measure_callback.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#include <tvm/ffi/container/array.h>
2424
#include <tvm/ffi/function.h>
25+
#include <tvm/ffi/reflection/reflection.h>
2526
#include <tvm/ffi/string.h>
2627
#include <tvm/meta_schedule/builder.h>
2728
#include <tvm/meta_schedule/measure_candidate.h>
@@ -30,7 +31,6 @@
3031
#include <tvm/meta_schedule/tune_context.h>
3132
#include <tvm/node/reflection.h>
3233
#include <tvm/runtime/object.h>
33-
#include <tvm/ffi/reflection/reflection.h>
3434

3535
namespace tvm {
3636
namespace meta_schedule {

0 commit comments

Comments
 (0)