[TIR][REFACTOR][API-Change] Migrate tir/stmt.h to use constructor. (#5778)
authorTianqi Chen <tqchen@users.noreply.github.com>
Thu, 11 Jun 2020 23:35:43 +0000 (16:35 -0700)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2020 23:35:43 +0000 (16:35 -0700)
commit54bde8501df19f0133d094432914e3cf3e98fb14
tree3cb4d328a031407c72af7959a2b98bcbd637a959
parenteafb2aa13d6cd223629f17d5f6aab5a8d4fce7f5
[TIR][REFACTOR][API-Change] Migrate tir/stmt.h to use constructor. (#5778)

This PR migrate tvm/tir/stmt.h to the new constructor style that is
consistent with the rest of the codebase and changes the affected files accordingly.
52 files changed:
include/tvm/tir/stmt.h
include/tvm/tir/stmt_functor.h
src/arith/ir_mutator_with_analyzer.cc
src/target/llvm/codegen_cpu.cc
src/te/operation/compute_op.cc
src/te/operation/cross_thread_reduction.cc
src/te/operation/extern_op.cc
src/te/operation/hybrid_op.cc
src/te/operation/op_util.cc
src/te/operation/scan_op.cc
src/te/operation/tensor_compute_op.cc
src/te/operation/tensorize.cc
src/te/schedule/operation_inline.cc
src/te/schedule/schedule_dataflow_rewrite.cc
src/te/schedule/schedule_ops.cc
src/te/schedule/schedule_postproc_rewrite_for_tensor_core.cc
src/te/schedule/schedule_postproc_to_primfunc.cc
src/tir/ir/buffer.cc
src/tir/ir/expr.cc
src/tir/ir/stmt.cc
src/tir/ir/stmt_functor.cc
src/tir/pass/hoist_if_then_else.cc
src/tir/transforms/arg_binder.cc
src/tir/transforms/bound_checker.cc
src/tir/transforms/combine_context_call.cc
src/tir/transforms/coproc_sync.cc
src/tir/transforms/decorate_device_scope.cc
src/tir/transforms/inject_double_buffer.cc
src/tir/transforms/inject_virtual_thread.cc
src/tir/transforms/ir_util.cc
src/tir/transforms/ir_util.h
src/tir/transforms/lift_attr_scope.cc
src/tir/transforms/loop_partition.cc
src/tir/transforms/lower_custom_datatypes.cc
src/tir/transforms/lower_device_storage_access_info.cc
src/tir/transforms/lower_thread_allreduce.cc
src/tir/transforms/lower_tvm_builtin.cc
src/tir/transforms/lower_warp_memory.cc
src/tir/transforms/make_packed_api.cc
src/tir/transforms/narrow_datatype.cc
src/tir/transforms/remap_thread_axis.cc
src/tir/transforms/remove_no_op.cc
src/tir/transforms/simplify.cc
src/tir/transforms/split_host_device.cc
src/tir/transforms/storage_flatten.cc
src/tir/transforms/storage_rewrite.cc
src/tir/transforms/tensorcore_infer_fragment.cc
src/tir/transforms/thread_storage_sync.cc
src/tir/transforms/unroll_loop.cc
src/tir/transforms/vectorize_loop.cc
tests/cpp/ir_functor_test.cc
topi/include/topi/detail/extern.h