From 2909ffa8bf65beaa63ffe4a0e0c2977820c2a341 Mon Sep 17 00:00:00 2001 From: Alex McCaskey Date: Thu, 28 Sep 2023 23:23:40 +0000 Subject: [PATCH] clean up Signed-off-by: Alex McCaskey --- runtime/cudaq/builder/kernel_builder.cpp | 1 - test/AST-Quake/exp-pauli-1.cpp | 1 - test/AST-Quake/exp-pauli-2.cpp | 2 -- unittests/CMakeLists.txt | 2 +- 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/runtime/cudaq/builder/kernel_builder.cpp b/runtime/cudaq/builder/kernel_builder.cpp index a395d6bc975..676d9bc0b0e 100644 --- a/runtime/cudaq/builder/kernel_builder.cpp +++ b/runtime/cudaq/builder/kernel_builder.cpp @@ -194,7 +194,6 @@ void exp_pauli(ImplicitLocOpBuilder &builder, const QuakeValue &theta, strLitTy, builder.getStringAttr(pauliWord)); SmallVector args{thetaVal, qubitsVal, stringLiteral}; builder.create(TypeRange{}, args); - return; } /// @brief Search the given `FuncOp` for all `CallOps` recursively. diff --git a/test/AST-Quake/exp-pauli-1.cpp b/test/AST-Quake/exp-pauli-1.cpp index 88b80b06b3d..b1e17236b1b 100644 --- a/test/AST-Quake/exp-pauli-1.cpp +++ b/test/AST-Quake/exp-pauli-1.cpp @@ -19,7 +19,6 @@ int main() { }; } - // CHECK-LABEL: func.func @__nvqpp__mlirgen__Z4mainE3$_0( // CHECK-SAME: %[[VAL_0:.*]]: f64) attributes {"cudaq-entrypoint", "cudaq-kernel"} { // CHECK: %[[VAL_1:.*]] = cc.alloca f64 diff --git a/test/AST-Quake/exp-pauli-2.cpp b/test/AST-Quake/exp-pauli-2.cpp index 4404bb32d17..346e8d36640 100644 --- a/test/AST-Quake/exp-pauli-2.cpp +++ b/test/AST-Quake/exp-pauli-2.cpp @@ -19,8 +19,6 @@ int main() { }; } - - // CHECK-LABEL: func.func @__nvqpp__mlirgen__Z4mainE3$_0( // CHECK-SAME: %[[VAL_0:.*]]: f64, // CHECK-SAME: %[[VAL_1:.*]]: !cc.ptr) attributes {"cudaq-entrypoint", "cudaq-kernel"} { diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index ef06ce7e552..6a12a223974 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -64,7 +64,7 @@ macro (create_tests_with_backend NVQIR_BACKEND EXTRA_BACKEND_TESTER) nvqir-${NVQIR_BACKEND} nvqir cudaq fmt::fmt-header-only cudaq-platform-default - cudaq-builder + cudaq-builder gtest_main) if (${NVQIR_BACKEND} STREQUAL "dm") target_compile_definitions(${TEST_EXE_NAME} PRIVATE -DCUDAQ_BACKEND_DM)