Skip to content

Commit

Permalink
Remove leading "./" from include paths (apache#1640)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazum authored and tqchen committed Aug 23, 2018
1 parent cfafd21 commit b95b595
Show file tree
Hide file tree
Showing 185 changed files with 310 additions and 285 deletions.
6 changes: 3 additions & 3 deletions include/tvm/api_registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
#ifndef TVM_API_REGISTRY_H_
#define TVM_API_REGISTRY_H_

#include "./base.h"
#include "./packed_func_ext.h"
#include "./runtime/registry.h"
#include "base.h"
#include "packed_func_ext.h"
#include "runtime/registry.h"

/*!
* \brief Register an API function globally.
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/arithmetic.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <vector>
#include <unordered_map>
#include <memory>
#include "./expr.h"
#include "expr.h"

namespace tvm {

Expand Down
6 changes: 3 additions & 3 deletions include/tvm/attrs.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
#include <vector>
#include <type_traits>
#include <string>
#include "./ir.h"
#include "./base.h"
#include "./packed_func_ext.h"
#include "ir.h"
#include "base.h"
#include "packed_func_ext.h"

namespace tvm {
/*!
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <string>
#include <memory>
#include <functional>
#include "./runtime/registry.h"
#include "runtime/registry.h"

namespace tvm {

Expand Down
4 changes: 2 additions & 2 deletions include/tvm/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include <tvm/container.h>
#include <string>

#include "./base.h"
#include "./expr.h"
#include "base.h"
#include "expr.h"

namespace tvm {

Expand Down
6 changes: 3 additions & 3 deletions include/tvm/build_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#include <string>
#include <vector>
#include <utility>
#include "./runtime/packed_func.h"
#include "./schedule_pass.h"
#include "./lowered_func.h"
#include "runtime/packed_func.h"
#include "schedule_pass.h"
#include "lowered_func.h"

namespace tvm {
using namespace tvm::runtime;
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/c_dsl_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef TVM_C_DSL_API_H_
#define TVM_C_DSL_API_H_

#include "./runtime/c_runtime_api.h"
#include "runtime/c_runtime_api.h"

#ifdef __cplusplus
extern "C" {
Expand Down
10 changes: 5 additions & 5 deletions include/tvm/codegen.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
#define TVM_CODEGEN_H_

#include <string>
#include "./base.h"
#include "./expr.h"
#include "./lowered_func.h"
#include "./api_registry.h"
#include "./runtime/packed_func.h"
#include "base.h"
#include "expr.h"
#include "lowered_func.h"
#include "api_registry.h"
#include "runtime/packed_func.h"

namespace tvm {
/*! \brief namespace for lowlevel IR pass and codegen */
Expand Down
4 changes: 2 additions & 2 deletions include/tvm/expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include <ir/IRPrinter.h>
#include <string>
#include <algorithm>
#include "./base.h"
#include "./runtime/c_runtime_api.h"
#include "base.h"
#include "runtime/c_runtime_api.h"

namespace tvm {

Expand Down
6 changes: 3 additions & 3 deletions include/tvm/ir.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#include <ir/IR.h>
#include <type_traits>
#include <string>
#include "./base.h"
#include "./expr.h"
#include "./runtime/util.h"
#include "base.h"
#include "expr.h"
#include "runtime/util.h"

namespace tvm {
namespace ir {
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/ir_functor_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define TVM_IR_FUNCTOR_EXT_H_

#include <tvm/ir_functor.h>
#include "./ir.h"
#include "ir.h"

namespace tvm {
namespace ir {
Expand Down
4 changes: 2 additions & 2 deletions include/tvm/ir_mutator.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#include <tvm/ir_functor.h>
#include <unordered_map>
#include "./expr.h"
#include "./ir.h"
#include "expr.h"
#include "ir.h"

namespace tvm {
namespace ir {
Expand Down
4 changes: 2 additions & 2 deletions include/tvm/ir_operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#define TVM_IR_OPERATOR_H_

#include <algorithm>
#include "./expr.h"
#include "./ir.h"
#include "expr.h"
#include "ir.h"

namespace tvm {

Expand Down
8 changes: 4 additions & 4 deletions include/tvm/ir_pass.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
#include <unordered_map>
#include <vector>
#include <string>
#include "./expr.h"
#include "./buffer.h"
#include "./schedule.h"
#include "./lowered_func.h"
#include "expr.h"
#include "buffer.h"
#include "schedule.h"
#include "lowered_func.h"

namespace tvm {
namespace ir {
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/ir_visitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define TVM_IR_VISITOR_H_

#include <tvm/ir_functor.h>
#include "./ir.h"
#include "ir.h"

namespace tvm {
namespace ir {
Expand Down
6 changes: 3 additions & 3 deletions include/tvm/lowered_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include <ir/FunctionBase.h>
#include <string>

#include "./base.h"
#include "./expr.h"
#include "./tensor.h"
#include "base.h"
#include "expr.h"
#include "tensor.h"

namespace tvm {

Expand Down
12 changes: 6 additions & 6 deletions include/tvm/operation.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
#include <string>
#include <vector>
#include <unordered_map>
#include "./expr.h"
#include "./ir_operator.h"
#include "./tensor.h"
#include "./schedule.h"
#include "./arithmetic.h"
#include "./buffer.h"
#include "expr.h"
#include "ir_operator.h"
#include "tensor.h"
#include "schedule.h"
#include "arithmetic.h"
#include "buffer.h"

namespace tvm {

Expand Down
8 changes: 4 additions & 4 deletions include/tvm/packed_func_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
#include <memory>
#include <type_traits>

#include "./base.h"
#include "./expr.h"
#include "./tensor.h"
#include "./runtime/packed_func.h"
#include "base.h"
#include "expr.h"
#include "tensor.h"
#include "runtime/packed_func.h"

namespace tvm {
using runtime::TVMArgs;
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/runtime/c_backend_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef TVM_RUNTIME_C_BACKEND_API_H_
#define TVM_RUNTIME_C_BACKEND_API_H_

#include "./c_runtime_api.h"
#include "c_runtime_api.h"

#ifdef __cplusplus
extern "C" {
Expand Down
4 changes: 2 additions & 2 deletions include/tvm/runtime/device_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#define TVM_RUNTIME_DEVICE_API_H_

#include <string>
#include "./packed_func.h"
#include "./c_runtime_api.h"
#include "packed_func.h"
#include "c_runtime_api.h"

namespace tvm {
namespace runtime {
Expand Down
4 changes: 2 additions & 2 deletions include/tvm/runtime/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <vector>
#include <string>
#include <unordered_map>
#include "./c_runtime_api.h"
#include "c_runtime_api.h"

namespace tvm {
namespace runtime {
Expand Down Expand Up @@ -173,5 +173,5 @@ inline const ModuleNode* Module::operator->() const {
} // namespace runtime
} // namespace tvm

#include "./packed_func.h"
#include "packed_func.h"
#endif // TVM_RUNTIME_MODULE_H_
4 changes: 2 additions & 2 deletions include/tvm/runtime/ndarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include <atomic>
#include <vector>
#include <utility>
#include "./c_runtime_api.h"
#include "./serializer.h"
#include "c_runtime_api.h"
#include "serializer.h"

namespace tvm {
namespace runtime {
Expand Down
6 changes: 3 additions & 3 deletions include/tvm/runtime/packed_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include <limits>
#include <memory>
#include <type_traits>
#include "./c_runtime_api.h"
#include "./module.h"
#include "./ndarray.h"
#include "c_runtime_api.h"
#include "module.h"
#include "ndarray.h"

namespace HalideIR {
// Forward declare type for extensions
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/runtime/registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include <string>
#include <vector>
#include "./packed_func.h"
#include "packed_func.h"

namespace tvm {
namespace runtime {
Expand Down
4 changes: 2 additions & 2 deletions include/tvm/runtime/serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

#include <dmlc/io.h>
#include <dmlc/serializer.h>
#include "./c_runtime_api.h"
#include "./ndarray.h"
#include "c_runtime_api.h"
#include "ndarray.h"

namespace dmlc {
namespace serializer {
Expand Down
2 changes: 1 addition & 1 deletion include/tvm/runtime/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef TVM_RUNTIME_UTIL_H_
#define TVM_RUNTIME_UTIL_H_

#include "./c_runtime_api.h"
#include "c_runtime_api.h"

namespace tvm {
namespace runtime {
Expand Down
8 changes: 4 additions & 4 deletions include/tvm/schedule.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#define TVM_SCHEDULE_H_

#include <string>
#include "./base.h"
#include "./expr.h"
#include "./tensor.h"
#include "./tensor_intrin.h"
#include "base.h"
#include "expr.h"
#include "tensor.h"
#include "tensor_intrin.h"

namespace tvm {

Expand Down
4 changes: 2 additions & 2 deletions include/tvm/schedule_pass.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#ifndef TVM_SCHEDULE_PASS_H_
#define TVM_SCHEDULE_PASS_H_

#include "./base.h"
#include "./schedule.h"
#include "base.h"
#include "schedule.h"

namespace tvm {
namespace schedule {
Expand Down
4 changes: 2 additions & 2 deletions include/tvm/target_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#define TVM_TARGET_INFO_H_

#include <string>
#include "./base.h"
#include "./expr.h"
#include "base.h"
#include "expr.h"

namespace tvm {

Expand Down
6 changes: 3 additions & 3 deletions include/tvm/tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#include <vector>
#include <type_traits>

#include "./base.h"
#include "./expr.h"
#include "./arithmetic.h"
#include "base.h"
#include "expr.h"
#include "arithmetic.h"

namespace tvm {

Expand Down
4 changes: 2 additions & 2 deletions include/tvm/tensor_intrin.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#define TVM_TENSOR_INTRIN_H_

#include <string>
#include "./tensor.h"
#include "./buffer.h"
#include "tensor.h"
#include "buffer.h"

namespace tvm {

Expand Down
12 changes: 6 additions & 6 deletions include/tvm/tvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
#ifndef TVM_TVM_H_
#define TVM_TVM_H_

#include "./base.h"
#include "./expr.h"
#include "./ir_operator.h"
#include "./tensor.h"
#include "./operation.h"
#include "./packed_func_ext.h"
#include "base.h"
#include "expr.h"
#include "ir_operator.h"
#include "tensor.h"
#include "operation.h"
#include "packed_func_ext.h"

#endif // TVM_TVM_H_
Loading

0 comments on commit b95b595

Please sign in to comment.