Skip to content

Commit

Permalink
[IR] eager constant folding in operator overloading (apache#1789)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed Oct 1, 2018
1 parent e3ef9f6 commit 54dcfe3
Show file tree
Hide file tree
Showing 29 changed files with 1,106 additions and 196 deletions.
1 change: 1 addition & 0 deletions include/tvm/buffer.h
Expand Up @@ -10,6 +10,7 @@

#include "base.h"
#include "expr.h"
#include "ir_operator.h"
#include "node/container.h"

namespace tvm {
Expand Down
10 changes: 0 additions & 10 deletions include/tvm/expr.h
Expand Up @@ -7,7 +7,6 @@
#define TVM_EXPR_H_

#include <ir/Expr.h>
#include <ir/IROperator.h>
#include <ir/IRPrinter.h>
#include <string>
#include <algorithm>
Expand All @@ -34,15 +33,6 @@ using HalideIR::Internal::Stmt;
using HalideIR::Internal::IRPrinter;
using HalideIR::Internal::Variable;

using HalideIR::Internal::make_const;
using HalideIR::Internal::make_zero;
using HalideIR::Internal::make_one;
using HalideIR::Internal::as_const_int;
using HalideIR::Internal::as_const_uint;
using HalideIR::Internal::const_true;
using HalideIR::Internal::const_false;
using HalideIR::Internal::is_no_op;

inline Type TVMShapeIndexType() {
if (std::is_signed<tvm_index_t>::value) {
return Int(sizeof(tvm_index_t) * 8);
Expand Down
2 changes: 0 additions & 2 deletions include/tvm/ir.h
Expand Up @@ -495,8 +495,6 @@ using HalideIR::Internal::Block;
using HalideIR::Internal::IfThenElse;
using HalideIR::Internal::Evaluate;
using HalideIR::Internal::Shuffle;
// ir functions
using HalideIR::Internal::is_const_power_of_two_integer;

/*!
* \brief Create a type annotation expression
Expand Down

0 comments on commit 54dcfe3

Please sign in to comment.