Skip to content

Commit 7528b05

Browse files
committed
fix includes
1 parent 50e0f56 commit 7528b05

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

mlir/lib/Dialect/QCO/Transforms/QuaternionMergeRotationGates.cpp

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,26 @@
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

2130
namespace 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

0 commit comments

Comments
 (0)