[REFACTOR][IR] Polish ir/type (#4705)
authorTianqi Chen <tqchen@users.noreply.github.com>
Tue, 14 Jan 2020 22:36:16 +0000 (14:36 -0800)
committerGitHub <noreply@github.com>
Tue, 14 Jan 2020 22:36:16 +0000 (14:36 -0800)
commitf4c4fde4a07d2346c159f1d5c6ccd00fb8fb7c7d
tree6df70953c66cabc4772b7809f94f46d7612d52f0
parent3f2abfbcb74dea2129e85a5a22e915310295a420
[REFACTOR][IR] Polish ir/type (#4705)

- Use consistent constructor style to construct objects.
- Move env_func to ir as it is mainly used to construct IRs.
- Make docs consistent.
33 files changed:
include/tvm/ir/adt.h
include/tvm/ir/env_func.h [new file with mode: 0644]
include/tvm/ir/expr.h
include/tvm/ir/module.h
include/tvm/ir/op.h
include/tvm/ir/transform.h
include/tvm/ir/type.h
include/tvm/ir/type_relation.h
include/tvm/node/env_func.h [deleted file]
include/tvm/relay/type.h
src/api/api_test.cc
src/ir/env_func.cc [new file with mode: 0644]
src/ir/type.cc
src/ir/type_relation.cc
src/node/env_func.cc [deleted file]
src/relay/backend/compile_engine.cc
src/relay/ir/expr.cc
src/relay/ir/type.cc
src/relay/ir/type_functor.cc
src/relay/op/algorithm/topk.cc
src/relay/op/memory/memory.cc
src/relay/op/nn/nn.cc
src/relay/op/nn/sparse.cc
src/relay/op/tensor/transform.cc
src/relay/op/vision/multibox_op.cc
src/relay/op/vision/nms.cc
src/relay/pass/de_duplicate.cc
src/relay/pass/eta_expand.cc
src/relay/pass/gradient.cc
src/relay/pass/to_cps.cc
src/relay/pass/type_infer.cc
src/relay/pass/type_solver.cc
tests/cpp/relay_pass_type_infer_test.cc