[REFACTOR][TIR] Migrate all low-level passes to the Pass Manager. (#5233)
authorTianqi Chen <tqchen@users.noreply.github.com>
Sun, 5 Apr 2020 00:36:49 +0000 (17:36 -0700)
committerGitHub <noreply@github.com>
Sun, 5 Apr 2020 00:36:49 +0000 (17:36 -0700)
commite63e08febd682f40a536075998a6839bccccd3c6
tree20b5ecc2af2a7a1dfb097cc52cc853dfd10a4ef3
parentfd9ce583f3cac2af4bc919a021bd9fe66534b659
[REFACTOR][TIR] Migrate all low-level passes to the Pass Manager. (#5233)

* [REFACTOR][TIR] Migrate all low-level passes to the Pass Manager.

This PR migrates the tvm.lower to return IRModule of PrimFuncs
instead of the LoweredFuncs.

* Remove LoweredFunc.
63 files changed:
apps/lldb/tvm.py
docs/dev/codebase_walkthrough.rst
include/tvm/driver/driver_api.h
include/tvm/ir/module.h
include/tvm/target/codegen.h
include/tvm/tir/analysis.h
include/tvm/tir/ir_pass.h
include/tvm/tir/lowered_func.h [deleted file]
include/tvm/tir/transform.h
python/tvm/driver/build_module.py
python/tvm/relay/backend/_backend.py
python/tvm/relay/backend/graph_runtime_codegen.py
python/tvm/runtime/__init__.py
python/tvm/target/build_config.py
python/tvm/testing.py
python/tvm/tir/__init__.py
python/tvm/tir/analysis/analysis.py
python/tvm/tir/function.py
python/tvm/tir/stmt.py
python/tvm/tir/transform/transform.py
src/contrib/hybrid/codegen_hybrid.h
src/driver/driver_api.cc
src/relay/backend/build_module.cc
src/relay/backend/compile_engine.h
src/relay/backend/graph_runtime_codegen.cc
src/relay/backend/vm/compiler.cc
src/relay/backend/vm/compiler.h
src/relay/transforms/gradient.cc
src/target/build_common.h
src/target/codegen.cc
src/target/llvm/codegen_llvm.cc
src/target/llvm/llvm_module.cc
src/target/source/codegen_c.h
src/target/spirv/codegen_spirv.h
src/target/stackvm/codegen_stackvm.h
src/tir/analysis/verify_memory.cc [moved from src/tir/pass/verify_memory.cc with 86% similarity]
src/tir/ir/buffer.cc
src/tir/ir/lowered_func.cc [deleted file]
src/tir/pass/ffi_api.cc
src/tir/pass/storage_rewrite.cc
src/tir/transforms/lower_custom_datatypes.cc [moved from src/tir/pass/lower_custom_datatypes.cc with 88% similarity]
src/tir/transforms/make_packed_api.cc [moved from src/tir/pass/make_api.cc with 61% similarity]
src/tir/transforms/remap_thread_axis.cc [moved from src/tir/pass/remap_thread_axis.cc with 73% similarity]
src/tir/transforms/split_host_device.cc
tests/cpp/build_module_test.cc
tests/python/integration/test_dot.py
tests/python/unittest/test_runtime_extension.py
tests/python/unittest/test_runtime_heterogeneous.py
tests/python/unittest/test_runtime_module_load.py
tests/python/unittest/test_target_codegen_llvm.py
tests/python/unittest/test_target_codegen_static_init.py
tests/python/unittest/test_target_codegen_vm_basic.py
tests/python/unittest/test_target_custom_datatypes.py
tests/python/unittest/test_tir_analysis_verify_memory.py [moved from tests/python/unittest/test_tir_pass_verify_memory.py with 70% similarity]
tests/python/unittest/test_tir_pass_bound_checkers.py
tests/python/unittest/test_tir_pass_inject_double_buffer.py
tests/python/unittest/test_tir_pass_loop_partition.py
tests/python/unittest/test_tir_pass_storage_flatten.py
tests/python/unittest/test_tir_transform_combine_context_call.py
tests/python/unittest/test_tir_transform_lower_warp_memory.py
tests/python/unittest/test_tir_transform_make_packed_api.py [moved from tests/python/unittest/test_tir_pass_makeapi.py with 84% similarity]
tests/python/unittest/test_tir_transform_thread_sync.py
tutorials/dev/low_level_custom_pass.py