Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions include/tvm/arith/analyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ class ConstIntBoundNode : public Object {
.def_ro("max_value", &ConstIntBoundNode::max_value);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const ConstIntBoundNode* other, SEqualReducer equal) const {
return equal(min_value, other->min_value) && equal(max_value, other->max_value);
}
Expand Down Expand Up @@ -220,8 +218,6 @@ class ModularSetNode : public Object {
.def_ro("base", &ModularSetNode::base);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const ModularSetNode* other, SEqualReducer equal) const {
return equal(coeff, other->coeff) && equal(base, other->base);
}
Expand Down
9 changes: 0 additions & 9 deletions include/tvm/arith/iter_affine_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ namespace arith {
*/
class IterMapExprNode : public PrimExprNode {
public:
static constexpr bool _type_has_method_visit_attrs = false;
static constexpr const char* _type_key = "arith.IterMapExpr";
static constexpr const uint32_t _type_child_slots = 2;
TVM_DECLARE_BASE_OBJECT_INFO(IterMapExprNode, PrimExprNode);
Expand Down Expand Up @@ -106,8 +105,6 @@ class IterMarkNode : public Object {
.def_ro("extent", &IterMarkNode::extent);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const IterMarkNode* other, SEqualReducer equal) const {
equal->MarkGraphNode();
return equal(source, other->source) && equal(extent, other->extent);
Expand Down Expand Up @@ -167,8 +164,6 @@ class IterSplitExprNode : public IterMapExprNode {
.def_ro("scale", &IterSplitExprNode::scale);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const IterSplitExprNode* other, SEqualReducer equal) const {
return equal(source, other->source) && equal(lower_factor, other->lower_factor) &&
equal(extent, other->extent) && equal(scale, other->scale);
Expand Down Expand Up @@ -235,8 +230,6 @@ class IterSumExprNode : public IterMapExprNode {
.def_ro("base", &IterSumExprNode::base);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const IterSumExprNode* other, SEqualReducer equal) const {
return equal(args, other->args) && equal(base, other->base);
}
Expand Down Expand Up @@ -307,8 +300,6 @@ class IterMapResultNode : public Object {
.def_ro("padding_predicate", &IterMapResultNode::padding_predicate);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "arith.IterMapResult";
TVM_DECLARE_FINAL_OBJECT_INFO(IterMapResultNode, Object);
};
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/ir/attrs.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class AttrFieldInfoNode : public Object {
}

static constexpr const char* _type_key = "ir.AttrFieldInfo";
static constexpr bool _type_has_method_visit_attrs = false;

static constexpr bool _type_has_method_sequal_reduce = false;
static constexpr bool _type_has_method_shash_reduce = false;
TVM_DECLARE_FINAL_OBJECT_INFO(AttrFieldInfoNode, Object);
Expand Down
6 changes: 0 additions & 6 deletions include/tvm/ir/diagnostic.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ class DiagnosticNode : public Object {
.def_ro("message", &DiagnosticNode::message);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const DiagnosticNode* other, SEqualReducer equal) const {
return equal(this->level, other->level) && equal(this->span, other->span) &&
equal(this->message, other->message);
Expand Down Expand Up @@ -174,8 +172,6 @@ class DiagnosticRendererNode : public Object {
refl::ObjectDef<DiagnosticRendererNode>().def_ro("renderer", &DiagnosticRendererNode::renderer);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "DiagnosticRenderer";
TVM_DECLARE_FINAL_OBJECT_INFO(DiagnosticRendererNode, Object);
};
Expand Down Expand Up @@ -214,8 +210,6 @@ class DiagnosticContextNode : public Object {
.def_ro("diagnostics", &DiagnosticContextNode::diagnostics);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const DiagnosticContextNode* other, SEqualReducer equal) const {
return equal(module, other->module) && equal(diagnostics, other->diagnostics);
}
Expand Down
2 changes: 0 additions & 2 deletions include/tvm/ir/env_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ class EnvFuncNode : public Object {
refl::ObjectDef<EnvFuncNode>().def_ro("name", &EnvFuncNode::name);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const EnvFuncNode* other, SEqualReducer equal) const {
// name uniquely identifies the env function.
return name == other->name;
Expand Down
4 changes: 0 additions & 4 deletions include/tvm/ir/global_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ class VDeviceNode : public GlobalInfoNode {
.def_ro("memory_scope", &VDeviceNode::memory_scope);
}

static constexpr bool _type_has_method_visit_attrs = false;

TVM_DLL bool SEqualReduce(const VDeviceNode* other, SEqualReducer equal) const {
return equal(target, other->target) && equal(vdevice_id, other->vdevice_id) &&
equal(memory_scope, other->memory_scope);
Expand Down Expand Up @@ -114,8 +112,6 @@ class DummyGlobalInfoNode : public GlobalInfoNode {
refl::ObjectDef<DummyGlobalInfoNode>();
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "ir.DummyGlobalInfo";

TVM_DLL bool SEqualReduce(const DummyGlobalInfoNode* other, SEqualReducer equal) const {
Expand Down
2 changes: 0 additions & 2 deletions include/tvm/ir/global_var_supply.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ class GlobalVarSupplyNode : public Object {
refl::ObjectDef<GlobalVarSupplyNode>();
}

static constexpr bool _type_has_method_visit_attrs = false;

/*! \brief The NameSupply used to generate unique name hints to GlobalVars. */
NameSupply name_supply_;

Expand Down
2 changes: 0 additions & 2 deletions include/tvm/ir/instrument.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ class PassInstrumentNode : public Object {
refl::ObjectDef<PassInstrumentNode>().def_ro("name", &PassInstrumentNode::name);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "instrument.PassInstrument";
TVM_DECLARE_BASE_OBJECT_INFO(PassInstrumentNode, Object);
};
Expand Down
2 changes: 0 additions & 2 deletions include/tvm/ir/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ class IRModuleNode : public Object {
.def_ro("global_infos", &IRModuleNode::global_infos);
}

static constexpr bool _type_has_method_visit_attrs = false;

TVM_DLL bool SEqualReduce(const IRModuleNode* other, SEqualReducer equal) const;

TVM_DLL void SHashReduce(SHashReducer hash_reduce) const;
Expand Down
2 changes: 0 additions & 2 deletions include/tvm/ir/name_supply.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ class NameSupplyNode : public Object {
*/
bool ContainsName(const String& name, bool add_prefix = true);

static constexpr bool _type_has_method_visit_attrs = false;

// Prefix for all GlobalVar names. It can be empty.
std::string prefix_;

Expand Down
2 changes: 0 additions & 2 deletions include/tvm/ir/op.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ class OpNode : public RelaxExprNode {
.def_ro("support_level", &OpNode::support_level);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const OpNode* other, SEqualReducer equal) const {
// pointer equality is fine as there is only one op with the same name.
return this == other;
Expand Down
10 changes: 0 additions & 10 deletions include/tvm/ir/source_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ class SourceNameNode : public Object {
refl::ObjectDef<SourceNameNode>().def_ro("name", &SourceNameNode::name);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr bool _type_has_method_sequal_reduce = true;

bool SEqualReduce(const SourceNameNode* other, SEqualReducer equal) const {
Expand Down Expand Up @@ -112,8 +110,6 @@ class SpanNode : public Object {
.def_ro("end_column", &SpanNode::end_column);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr bool _type_has_method_sequal_reduce = true;

bool SEqualReduce(const SpanNode* other, SEqualReducer equal) const {
Expand Down Expand Up @@ -149,8 +145,6 @@ class SequentialSpanNode : public SpanNode {
refl::ObjectDef<SequentialSpanNode>().def_ro("spans", &SequentialSpanNode::spans);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "ir.SequentialSpan";
TVM_DECLARE_FINAL_OBJECT_INFO(SequentialSpanNode, SpanNode);

Expand Down Expand Up @@ -206,8 +200,6 @@ class SourceNode : public Object {
.def_ro("source", &SourceNode::source);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "ir.Source";
TVM_DECLARE_FINAL_OBJECT_INFO(SourceNode, Object);
};
Expand Down Expand Up @@ -237,8 +229,6 @@ class SourceMapObj : public Object {
refl::ObjectDef<SourceMapObj>().def_ro("source_map", &SourceMapObj::source_map);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const SourceMapObj* other, SEqualReducer equal) const {
return equal(source_map, other->source_map);
}
Expand Down
8 changes: 0 additions & 8 deletions include/tvm/ir/transform.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ class PassContextNode : public Object {
.def_ro("diag_ctx", &PassContextNode::diag_ctx);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "transform.PassContext";
static constexpr bool _type_has_method_sequal_reduce = false;
TVM_DECLARE_FINAL_OBJECT_INFO(PassContextNode, Object);
Expand Down Expand Up @@ -325,8 +323,6 @@ class PassInfoNode : public Object {
.def_ro("traceable", &PassInfoNode::traceable);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "transform.PassInfo";
static constexpr bool _type_has_method_sequal_reduce = false;
TVM_DECLARE_FINAL_OBJECT_INFO(PassInfoNode, Object);
Expand Down Expand Up @@ -383,8 +379,6 @@ class PassNode : public Object {
*/
virtual IRModule operator()(IRModule mod, const PassContext& pass_ctx) const = 0;

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "transform.Pass";
TVM_DECLARE_BASE_OBJECT_INFO(PassNode, Object);
};
Expand Down Expand Up @@ -448,8 +442,6 @@ class SequentialNode : public PassNode {
.def_ro("passes", &SequentialNode::passes);
}

static constexpr bool _type_has_method_visit_attrs = false;

/*!
* \brief Get the pass information/meta data.
*/
Expand Down
10 changes: 0 additions & 10 deletions include/tvm/ir/type.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ class PrimTypeNode : public TypeNode {
refl::ObjectDef<PrimTypeNode>().def_ro("dtype", &PrimTypeNode::dtype);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const PrimTypeNode* other, SEqualReducer equal) const {
return equal(dtype, other->dtype);
}
Expand Down Expand Up @@ -172,8 +170,6 @@ class PointerTypeNode : public TypeNode {
.def_ro("storage_scope", &PointerTypeNode::storage_scope);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const PointerTypeNode* other, SEqualReducer equal) const {
// Make "global" equal to ""
String lhs_scope = storage_scope.empty() ? "global" : storage_scope;
Expand Down Expand Up @@ -225,8 +221,6 @@ class TupleTypeNode : public TypeNode {
.def_ro("span", &TupleTypeNode::span);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const TupleTypeNode* other, SEqualReducer equal) const {
return equal(fields, other->fields);
}
Expand Down Expand Up @@ -296,8 +290,6 @@ class FuncTypeNode : public TypeNode {
.def_ro("span", &FuncTypeNode::span);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const FuncTypeNode* other, SEqualReducer equal) const {
// type params first as they defines type vars.
return equal(arg_types, other->arg_types) && equal(ret_type, other->ret_type);
Expand Down Expand Up @@ -341,8 +333,6 @@ class TensorMapTypeNode : public TypeNode {
refl::ObjectDef<TensorMapTypeNode>().def_ro("span", &TensorMapTypeNode::span);
}

static constexpr bool _type_has_method_visit_attrs = false;

bool SEqualReduce(const TensorMapTypeNode* other, SEqualReducer equal) const {
return equal(span, other->span);
}
Expand Down
2 changes: 0 additions & 2 deletions include/tvm/meta_schedule/arg_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ class TensorInfoNode : public ArgInfoNode {
.def_ro("shape", &TensorInfoNode::shape);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "meta_schedule.TensorInfo";
TVM_DECLARE_FINAL_OBJECT_INFO(TensorInfoNode, ArgInfoNode);

Expand Down
6 changes: 0 additions & 6 deletions include/tvm/meta_schedule/builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ class BuilderInputNode : public runtime::Object {
.def_ro("params", &BuilderInputNode::params);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "meta_schedule.BuilderInput";
TVM_DECLARE_FINAL_OBJECT_INFO(BuilderInputNode, runtime::Object);
};
Expand Down Expand Up @@ -90,8 +88,6 @@ class BuilderResultNode : public runtime::Object {
.def_ro("error_msg", &BuilderResultNode::error_msg);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "meta_schedule.BuilderResult";
TVM_DECLARE_FINAL_OBJECT_INFO(BuilderResultNode, runtime::Object);
};
Expand Down Expand Up @@ -159,8 +155,6 @@ class PyBuilderNode : public BuilderNode {
refl::ObjectDef<PyBuilderNode>().def_ro("f_build", &PyBuilderNode::f_build);
}

static constexpr bool _type_has_method_visit_attrs = false;

Array<BuilderResult> Build(const Array<BuilderInput>& build_inputs) final {
ICHECK(f_build != nullptr) << "PyBuilder's Build method not implemented!";
return f_build(build_inputs);
Expand Down
3 changes: 0 additions & 3 deletions include/tvm/meta_schedule/cost_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ class CostModelNode : public runtime::Object {
virtual std::vector<double> Predict(const TuneContext& context,
const Array<MeasureCandidate>& candidates) = 0;

static constexpr bool _type_has_method_visit_attrs = false;
static constexpr const char* _type_key = "meta_schedule.CostModel";
TVM_DECLARE_BASE_OBJECT_INFO(CostModelNode, Object);
};
Expand Down Expand Up @@ -133,8 +132,6 @@ class PyCostModelNode : public CostModelNode {
std::vector<double> Predict(const TuneContext& context,
const Array<MeasureCandidate>& candidates);

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "meta_schedule.PyCostModel";
TVM_DECLARE_FINAL_OBJECT_INFO(PyCostModelNode, CostModelNode);
};
Expand Down
6 changes: 0 additions & 6 deletions include/tvm/meta_schedule/task_scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ class TaskRecordNode : public runtime::Object {
.def_ro("runner_futures", &TaskRecordNode::runner_futures);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "meta_schedule.TaskRecord";
TVM_DECLARE_FINAL_OBJECT_INFO(TaskRecordNode, Object);
};
Expand Down Expand Up @@ -157,8 +155,6 @@ class TaskSchedulerNode : public runtime::Object {
.def_ro("remaining_tasks_", &TaskSchedulerNode::remaining_tasks_);
}

static constexpr bool _type_has_method_visit_attrs = false;

/*!
* \brief Fetch the next task id.
* \return The next task id.
Expand Down Expand Up @@ -249,8 +245,6 @@ class PyTaskSchedulerNode : public TaskSchedulerNode {
refl::ObjectDef<PyTaskSchedulerNode>();
}

static constexpr bool _type_has_method_visit_attrs = false;

int NextTaskId() final;
Array<RunnerResult> JoinRunningTask(int task_id) final;
void Tune(Array<TuneContext> tasks, Array<FloatImm> task_weights, int max_trials_global,
Expand Down
2 changes: 0 additions & 2 deletions include/tvm/node/script_printer.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ class PrinterConfigNode : public Object {
.def_ro("obj_to_annotate", &PrinterConfigNode::obj_to_annotate);
}

static constexpr bool _type_has_method_visit_attrs = false;

Array<String> GetBuiltinKeywords();

static constexpr const char* _type_key = "script.PrinterConfig";
Expand Down
2 changes: 0 additions & 2 deletions include/tvm/relax/binding_rewrite.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ class DataflowBlockRewriteNode : public Object {
.def_ro("root_fn", &DataflowBlockRewriteNode::root_fn_);
}

static constexpr bool _type_has_method_visit_attrs = false;

static constexpr const char* _type_key = "relax.DataflowBlockRewrite";
TVM_DECLARE_FINAL_OBJECT_INFO(DataflowBlockRewriteNode, Object);

Expand Down
Loading
Loading