Skip to content

Commit

Permalink
[core] Move canonical patterns out of tablegen. (#2473)
Browse files Browse the repository at this point in the history
* [core] Move canonical patterns out of tablegen.

Fix #476. Eliminate the file Canonical.td and move/rewrite the patterns
from that file.

Signed-off-by: Eric Schweitz <eschweitz@nvidia.com>

* Fix comments.

Signed-off-by: Eric Schweitz <eschweitz@nvidia.com>

* Move OpRewritePatterns to the new file.

Signed-off-by: Eric Schweitz <eschweitz@nvidia.com>

---------

Signed-off-by: Eric Schweitz <eschweitz@nvidia.com>
  • Loading branch information
schweitzpgi authored Dec 13, 2024
1 parent 105c05a commit 2cf6b04
Show file tree
Hide file tree
Showing 5 changed files with 490 additions and 481 deletions.
4 changes: 0 additions & 4 deletions include/cudaq/Optimizer/Dialect/Quake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@
add_cudaq_dialect(Quake quake)
add_cudaq_interface(QuakeInterfaces)
add_cudaq_dialect_doc(QuakeDialect quake)

set(LLVM_TARGET_DEFINITIONS Canonical.td)
mlir_tablegen(Canonical.inc -gen-rewriters)
add_public_tablegen_target(CanonicalIncGen)
67 changes: 0 additions & 67 deletions include/cudaq/Optimizer/Dialect/Quake/Canonical.td

This file was deleted.

1 change: 0 additions & 1 deletion lib/Optimizer/Dialect/Quake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ add_cudaq_dialect_library(QuakeDialect
QuakeDialectIncGen
QuakeOpsIncGen
QuakeTypesIncGen
CanonicalIncGen

LINK_LIBS
CCDialect
Expand Down
Loading

0 comments on commit 2cf6b04

Please sign in to comment.