[REFACTOR][IR] Unified IR IRModule structure. (#4699)
authorTianqi Chen <tqchen@users.noreply.github.com>
Tue, 14 Jan 2020 00:18:01 +0000 (16:18 -0800)
committerGitHub <noreply@github.com>
Tue, 14 Jan 2020 00:18:01 +0000 (16:18 -0800)
commitc69092ae0d39f9a5161f098d933d0a2ec570a2c5
tree8945ec54e023c668e8f9313ccfa2e36dd603c274
parentbd17baa215d37de045a32aaa08112f509fdc2633
[REFACTOR][IR] Unified IR IRModule structure. (#4699)

This PR brings relay::Module as the unified IRModule structure.
IRModule will be used as the basic unit for transformations
through out the stack.

- Rename relay::Module -> IRModule
- Move relay/module.h -> ir/module.h
- ModuleNode::FromExpr -> IRModule::FromExpr
- FromText -> IRModule::FromText
62 files changed:
docs/dev/relay_pass_infra.rst
include/tvm/ir/module.h [new file with mode: 0644]
include/tvm/ir/type_relation.h
include/tvm/ir_pass.h
include/tvm/relay/analysis.h
include/tvm/relay/base.h
include/tvm/relay/error.h
include/tvm/relay/feature.h
include/tvm/relay/interpreter.h
include/tvm/relay/module.h [deleted file]
include/tvm/relay/transform.h
src/ir/module.cc [new file with mode: 0644]
src/relay/backend/build_module.cc
src/relay/backend/compile_engine.cc
src/relay/backend/contrib/codegen_c/codegen.cc
src/relay/backend/graph_runtime_codegen.cc
src/relay/backend/interpreter.cc
src/relay/backend/vm/compiler.cc
src/relay/backend/vm/compiler.h
src/relay/backend/vm/inline_primitives.cc
src/relay/backend/vm/lambda_lift.cc
src/relay/backend/vm/removed_unused_funcs.cc
src/relay/ir/alpha_equal.cc
src/relay/ir/error.cc
src/relay/ir/module.cc [deleted file]
src/relay/ir/pretty_printer.cc
src/relay/op/tensor/transform.h
src/relay/pass/alter_op_layout.cc
src/relay/pass/canonicalize_cast.cc
src/relay/pass/canonicalize_ops.cc
src/relay/pass/combine_parallel_conv2d.cc
src/relay/pass/combine_parallel_dense.cc
src/relay/pass/combine_parallel_op_batch.cc
src/relay/pass/convert_layout.cc
src/relay/pass/dead_code.cc
src/relay/pass/device_annotation.cc
src/relay/pass/eliminate_common_subexpr.cc
src/relay/pass/eta_expand.cc
src/relay/pass/feature.cc
src/relay/pass/fold_constant.cc
src/relay/pass/fold_scale_axis.cc
src/relay/pass/fuse_ops.cc
src/relay/pass/gradient.cc
src/relay/pass/kind_check.cc
src/relay/pass/legalize.cc
src/relay/pass/match_exhaustion.cc
src/relay/pass/partial_eval.cc
src/relay/pass/pass_manager.cc
src/relay/pass/print_ir.cc
src/relay/pass/quantize/annotate.cc
src/relay/pass/quantize/partition.cc
src/relay/pass/quantize/realize.cc
src/relay/pass/simplify_inference.cc
src/relay/pass/to_a_normal_form.cc
src/relay/pass/to_cps.cc
src/relay/pass/to_graph_normal_form.cc
src/relay/pass/type_infer.cc
src/relay/pass/type_solver.cc
src/relay/pass/type_solver.h
src/relay/pass/util.cc
tests/cpp/relay_pass_type_infer_test.cc
tests/cpp/relay_transform_sequential.cc