Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nvq++] Removes MLIR's
memref
dialect. (#2438)
* [nvq++] Removes MLIR's `scf` dialect We don't use this dialect and its presence is a historical artifact. This change triggered the removal of two tests: * `test/Quake/ghz.qke` * `test/Quake/iqft.qke` Both tests are a reminder of a past when we had to write quantum kernels directly in MLIR because of a lack of frontend. Both no longer test aything useful. The commit modifies `test/Quake/canonical-2.qke`, which was only testing the canonicalization of `cc.scope` operations. The new form is removes the clutter, making the test more precise. `test/Translate/ghz.qke` had to be modified because it uses MLIR's `affined.for` and its conversion to LLVMDialect requires `scf.for`. Signed-off-by: boschmitt <[email protected]> * [nvq++] Remove MLIR's `affine` dialect. We don't use this dialect. The removal triggered the removel of one test: * `test/Quake/ccnot.qke` The test was not testing anything useful, only kernel inlining, which is already covered in other tests. Furthermore, the test is misleading because, contrary to what the kernel name might indicate, it is not implementing a `ccnot`. Signed-off-by: boschmitt <[email protected]> * [nvq++] Removes MLIR's `memref` dialect. We don't use this dialect. Most changes were to substitute `memref` ops with `cc` ops in tests. Signed-off-by: boschmitt <[email protected]> --------- Signed-off-by: boschmitt <[email protected]> Signed-off-by: Eric Schweitz <[email protected]> Co-authored-by: Eric Schweitz <[email protected]>
- Loading branch information