Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This project adheres to [Semantic Versioning], with the exception that minor rel
### Added

- ✨ Add conversions between Jeff and QCO ([#1479]) ([**@denialhaag**])
- ✨ Add a `place-and-route` pass for mapping circuits to architectures with restricted topologies ([#1537]) ([**@MatthiasReumann**])
- ✨ Add a `place-and-route` pass for mapping circuits to architectures with restricted topologies ([#1537], [#1547]) ([**@MatthiasReumann**])
- ✨ Add initial infrastructure for new QC and QCO MLIR dialects
([#1264], [#1330], [#1402], [#1428], [#1430], [#1436], [#1443], [#1446], [#1464], [#1465], [#1470], [#1471], [#1472], [#1474], [#1475], [#1506], [#1510], [#1513], [#1521])
([**@burgholzer**], [**@denialhaag**], [**@taminob**], [**@DRovara**], [**@li-mingbao**], [**@Ectras**], [**@MatthiasReumann**])
Expand Down Expand Up @@ -329,6 +329,7 @@ _📚 Refer to the [GitHub Release Notes](https://github.com/munich-quantum-tool

<!-- PR links -->

[#1547]: https://github.com/munich-quantum-toolkit/core/pull/1547
[#1537]: https://github.com/munich-quantum-toolkit/core/pull/1537
[#1521]: https://github.com/munich-quantum-toolkit/core/pull/1521
[#1513]: https://github.com/munich-quantum-toolkit/core/pull/1513
Expand Down
1 change: 0 additions & 1 deletion mlir/include/mlir/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@

add_subdirectory(Conversion)
add_subdirectory(Dialect)
add_subdirectory(Passes)
1 change: 1 addition & 0 deletions mlir/include/mlir/Dialect/QCO/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
# Licensed under the MIT License

add_subdirectory(IR)
add_subdirectory(Transforms)
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

set(LLVM_TARGET_DEFINITIONS Passes.td)
mlir_tablegen(Passes.h.inc -gen-pass-decls -name QCO)
add_public_tablegen_target(QcoPassesIncGen)
add_mlir_doc(Passes QcoPasses Passes/ -gen-pass-doc)
add_public_tablegen_target(MLIRQCOTransformsIncGen)
add_mlir_doc(Passes MLIRQCOTransforms Passes/ -gen-pass-doc)
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
namespace mlir::qco {

#define GEN_PASS_DECL
#include "mlir/Passes/Passes.h.inc" // IWYU pragma: export
#include "mlir/Dialect/QCO/Transforms/Passes.h.inc" // IWYU pragma: export

//===----------------------------------------------------------------------===//
// Registration
//===----------------------------------------------------------------------===//

/// Generate the code for registering passes.
#define GEN_PASS_REGISTRATION
#include "mlir/Passes/Passes.h.inc" // IWYU pragma: export
#include "mlir/Dialect/QCO/Transforms/Passes.h.inc" // IWYU pragma: export

} // namespace mlir::qco
1 change: 0 additions & 1 deletion mlir/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
add_subdirectory(Conversion)
add_subdirectory(Compiler)
add_subdirectory(Dialect)
add_subdirectory(Passes)
add_subdirectory(Support)
1 change: 1 addition & 0 deletions mlir/lib/Dialect/QCO/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@

add_subdirectory(Builder)
add_subdirectory(IR)
add_subdirectory(Transforms)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
add_subdirectory(Utils)
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,24 @@ file(GLOB_RECURSE PASSES_SOURCES *.cpp)
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)

add_mlir_library(
QcoPasses
MLIRQCOTransforms
${PASSES_SOURCES}
LINK_LIBS
PUBLIC
PRIVATE
${dialect_libs}
DEPENDS
QcoPassesIncGen)
MLIRQCOTransformsIncGen)

# collect header files
file(GLOB_RECURSE PASSES_HEADERS_SOURCE ${MQT_MLIR_SOURCE_INCLUDE_DIR}/mlir/Passes/*.h)
file(GLOB_RECURSE PASSES_HEADERS_BUILD ${MQT_MLIR_BUILD_INCLUDE_DIR}/mlir/Passes/*.inc)
file(GLOB_RECURSE PASSES_HEADERS_SOURCE
${MQT_MLIR_SOURCE_INCLUDE_DIR}/mlir/Dialect/QCO/Transforms/*.h)
file(GLOB_RECURSE PASSES_HEADERS_BUILD
${MQT_MLIR_BUILD_INCLUDE_DIR}/mlir/Dialect/QCO/Transforms/*.inc)

# add public headers using file sets
target_sources(
QcoPasses
MLIRQCOTransforms
PUBLIC FILE_SET
HEADERS
BASE_DIRS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Licensed under the MIT License
*/

#include "mlir/Passes/Mapping/Architecture.h"
#include "mlir/Dialect/QCO/Transforms/Mapping/Architecture.h"

#include <llvm/Support/ErrorHandling.h>
#include <mlir/Support/LLVM.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include "mlir/Dialect/QCO/IR/QCODialect.h"
#include "mlir/Dialect/QCO/IR/QCOInterfaces.h"
#include "mlir/Dialect/QCO/IR/QCOOps.h"
#include "mlir/Dialect/QCO/Transforms/Mapping/Architecture.h"
#include "mlir/Dialect/QCO/Transforms/Passes.h"
#include "mlir/Dialect/QCO/Utils/WireIterator.h"
#include "mlir/Passes/Mapping/Architecture.h"
#include "mlir/Passes/Passes.h"

#include <llvm/ADT/STLExtras.h>
#include <llvm/ADT/SmallVector.h>
Expand Down Expand Up @@ -49,7 +49,7 @@
namespace mlir::qco {

#define GEN_PASS_DEF_MAPPINGPASS
#include "mlir/Passes/Passes.h.inc"
#include "mlir/Dialect/QCO/Transforms/Passes.h.inc"

struct MappingPass : impl::MappingPassBase<MappingPass> {
private:
Expand Down
1 change: 0 additions & 1 deletion mlir/unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ add_subdirectory(programs)
add_subdirectory(Compiler)
add_subdirectory(Dialect)
add_subdirectory(Conversion)
add_subdirectory(Passes)
1 change: 1 addition & 0 deletions mlir/unittests/Dialect/QCO/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
# Licensed under the MIT License

add_subdirectory(IR)
add_subdirectory(Transforms)
add_subdirectory(Utils)
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@
set(target_name mqt-core-mlir-unittest-mapping)
add_executable(${target_name} test_mapping.cpp)

target_link_libraries(${target_name} PRIVATE MLIRParser GTest::gtest_main MLIRQCProgramBuilder
QCToQCO QCOToQC QcoPasses)
target_link_libraries(
${target_name}
PRIVATE MLIRParser
GTest::gtest_main
MLIRQCProgramBuilder
MLIRQCOUtils
QCToQCO
QCOToQC
MLIRQCOTransforms)

mqt_mlir_configure_unittest_target(${target_name})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include "mlir/Dialect/QC/IR/QCInterfaces.h"
#include "mlir/Dialect/QC/IR/QCOps.h"
#include "mlir/Dialect/QCO/IR/QCODialect.h"
#include "mlir/Passes/Mapping/Architecture.h"
#include "mlir/Passes/Passes.h"
#include "mlir/Dialect/QCO/Transforms/Mapping/Architecture.h"
#include "mlir/Dialect/QCO/Transforms/Passes.h"

#include <gtest/gtest.h>
#include <llvm/ADT/STLExtras.h>
Expand Down
Loading