File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
mlir/lib/Dialect/QCO/Transforms Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 1111#include " mlir/Dialect/QCO/IR/QCODialect.h"
1212#include " mlir/Dialect/QCO/Transforms/Passes.h"
1313
14- #include < iostream>
14+ #include < algorithm>
15+ #include < array>
16+ #include < llvm/ADT/STLExtras.h>
17+ #include < mlir/Dialect/Arith/IR/Arith.h>
1518#include < mlir/Dialect/Math/IR/Math.h>
19+ #include < mlir/IR/MLIRContext.h>
20+ #include < mlir/IR/Operation.h>
1621#include < mlir/IR/PatternMatch.h>
17- #include < mlir/Support/LLVM.h>
22+ #include < mlir/IR/Value.h>
23+ #include < mlir/IR/ValueRange.h>
24+ #include < mlir/Support/LogicalResult.h>
1825#include < mlir/Transforms/GreedyPatternRewriteDriver.h>
19- #include < unordered_set>
26+ #include < stdexcept>
27+ #include < string_view>
28+ #include < utility>
2029
2130namespace mlir ::qco {
2231
32+ #define GEN_PASS_DEF_MERGEROTATIONGATES
33+ #include " mlir/Dialect/QCO/Transforms/Passes.h.inc"
2334
2435/* *
2536 * @brief This pattern attempts to merge consecutive rotation gates.
@@ -302,9 +313,6 @@ populateMergeRotationGatesPatterns(mlir::RewritePatternSet& patterns) {
302313 patterns.add <MergeRotationGatesPattern>(patterns.getContext ());
303314}
304315
305- #define GEN_PASS_DEF_MERGEROTATIONGATES
306- #include " mlir/Dialect/QCO/Transforms/Passes.h.inc"
307-
308316/* *
309317 * @brief This pattern attempts to merge consecutive rotation gates by using
310318 * quaternions
You can’t perform that action at this time.
0 commit comments