Skip to content

Commit faeba24

Browse files
committed
conversion tests
🎨 pre-commit fixes
1 parent 48ee457 commit faeba24

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

mlir/lib/Dialect/QC/IR/Modifiers/PowOp.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#include <llvm/ADT/STLFunctionalExtras.h>
1616
#include <llvm/ADT/TypeSwitch.h>
1717
#include <llvm/Support/Casting.h>
18-
19-
#include <cstdint>
2018
#include <mlir/Dialect/Arith/IR/Arith.h>
2119
#include <mlir/IR/Builders.h>
2220
#include <mlir/IR/MLIRContext.h>
@@ -26,6 +24,7 @@
2624
#include <mlir/Support/LogicalResult.h>
2725

2826
#include <cmath>
27+
#include <cstdint>
2928
#include <numbers>
3029

3130
using namespace mlir;

mlir/lib/Dialect/QCO/IR/Modifiers/PowOp.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#include <Eigen/Core>
1616
#include <Eigen/Eigenvalues>
1717
#include <llvm/ADT/STLFunctionalExtras.h>
18-
19-
#include <cstdint>
2018
#include <llvm/ADT/SmallVector.h>
2119
#include <llvm/ADT/TypeSwitch.h>
2220
#include <llvm/Support/Casting.h>
@@ -33,6 +31,7 @@
3331

3432
#include <cmath>
3533
#include <cstddef>
34+
#include <cstdint>
3635
#include <numbers>
3736
#include <optional>
3837

mlir/unittests/Conversion/QCOToQC/test_qco_to_qc.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ INSTANTIATE_TEST_SUITE_P(
158158
QCOToQCTestCase{"NegPowRx", MQT_NAMED_BUILDER(qco::negPowRx),
159159
MQT_NAMED_BUILDER(qc::negPowRx)},
160160
QCOToQCTestCase{"InvPowRx", MQT_NAMED_BUILDER(qco::invPowRx),
161-
MQT_NAMED_BUILDER(qc::powRxNeg)}));
161+
MQT_NAMED_BUILDER(qc::powRxNeg)},
162+
QCOToQCTestCase{"PowCtrlRx", MQT_NAMED_BUILDER(qco::powCtrlRx),
163+
MQT_NAMED_BUILDER(qc::ctrlPowRx)}));
162164
/// @}
163165

164166
/// \name QCOToQC/Modifiers/InvOp.cpp

mlir/unittests/Conversion/QCToQCO/test_qc_to_qco.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ INSTANTIATE_TEST_SUITE_P(
157157
QCToQCOTestCase{"NegPowRx", MQT_NAMED_BUILDER(qc::negPowRx),
158158
MQT_NAMED_BUILDER(qco::negPowRx)},
159159
QCToQCOTestCase{"InvPowRx", MQT_NAMED_BUILDER(qc::invPowRx),
160-
MQT_NAMED_BUILDER(qco::powRxNeg)}));
160+
MQT_NAMED_BUILDER(qco::powRxNeg)},
161+
QCToQCOTestCase{"PowCtrlRx",
162+
MQT_NAMED_BUILDER(qc::powCtrlRx),
163+
MQT_NAMED_BUILDER(qco::ctrlPowRx)}));
161164
/// @}
162165

163166
/// \name QCToQCO/Modifiers/InvOp.cpp

0 commit comments

Comments
 (0)