Skip to content

Commit

Permalink
[Matchers] Move from scalehls utils to HLS dialect utils
Browse files Browse the repository at this point in the history
  • Loading branch information
hanchenye committed Jun 28, 2023
1 parent e1e3e38 commit ab10065
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef SCALEHLS_UTILS_MATCHERS_H
#define SCALEHLS_UTILS_MATCHERS_H
#ifndef SCALEHLS_DIALECT_HLS_UTILS_MATCHERS_H
#define SCALEHLS_DIALECT_HLS_UTILS_MATCHERS_H

#include "scalehls/Dialect/HLS/IR/HLS.h"
#include "scalehls/Utils/Utils.h"
Expand All @@ -15,8 +15,7 @@

namespace mlir {
namespace scalehls {

using namespace hls;
namespace hls {

//===----------------------------------------------------------------------===//
// BlockMatcher
Expand Down Expand Up @@ -380,7 +379,8 @@ struct IPMatcher {
IPMatchingStatus status;
};

} // namespace hls
} // namespace scalehls
} // namespace mlir

#endif // SCALEHLS_UTILS_MATCHERS_H
#endif // SCALEHLS_DIALECT_HLS_UTILS_MATCHERS_H
2 changes: 1 addition & 1 deletion lib/Dialect/HLS/Transforms/GenerateTaskDesignSpace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include "mlir/Dialect/SCF/Utils/Utils.h"
#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
#include "scalehls/Dialect/HLS/Transforms/Passes.h"
#include "scalehls/Dialect/HLS/Utils/Matchers.h"
#include "scalehls/Dialect/HLS/Utils/Utils.h"
#include "scalehls/Utils/Matchers.h"

using namespace mlir;
using namespace scalehls;
Expand Down
2 changes: 1 addition & 1 deletion lib/Dialect/HLS/Transforms/ImplementTaskDesignSpace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include "mlir/Dialect/SCF/Utils/Utils.h"
#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
#include "scalehls/Dialect/HLS/Transforms/Passes.h"
#include "scalehls/Dialect/HLS/Utils/Matchers.h"
#include "scalehls/Dialect/HLS/Utils/Utils.h"
#include "scalehls/Utils/Matchers.h"

using namespace mlir;
using namespace scalehls;
Expand Down
4 changes: 0 additions & 4 deletions lib/Dialect/HLS/Transforms/SimplifyDesignSpace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@
//
//===----------------------------------------------------------------------===//

#include "mlir/Dialect/Linalg/Transforms/Transforms.h"
#include "mlir/Dialect/SCF/Transforms/Transforms.h"
#include "mlir/Dialect/SCF/Utils/Utils.h"
#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
#include "scalehls/Dialect/HLS/Transforms/Passes.h"
#include "scalehls/Dialect/HLS/Utils/Utils.h"
#include "scalehls/Utils/Matchers.h"

using namespace mlir;
using namespace scalehls;
Expand Down
1 change: 1 addition & 0 deletions lib/Dialect/HLS/Utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
add_mlir_dialect_library(MLIRScaleHLSHLSUtils
Matchers.cpp
Utils.cpp
)
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
//
//===----------------------------------------------------------------------===//

#include "scalehls/Utils/Matchers.h"
#include "scalehls/Dialect/HLS/Utils/Matchers.h"
#include "llvm/Support/Debug.h"

#define DEBUG_TYPE "scalehls-matchers"

using namespace mlir;
using namespace scalehls;
using namespace hls;

//===----------------------------------------------------------------------===//
// BlockMatcher
Expand Down
1 change: 0 additions & 1 deletion lib/Utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_mlir_library(MLIRScaleHLSUtils
Matchers.cpp
Utils.cpp

LINK_LIBS PUBLIC
Expand Down

0 comments on commit ab10065

Please sign in to comment.