]> git.ipfire.org Git - thirdparty/gcc.git/commit
contrib: add mdcompact
authorAndrea Corallo <andrea.corallo@arm.com>
Tue, 3 Oct 2023 12:19:03 +0000 (14:19 +0200)
committerAndrea Corallo <andrea.corallo@arm.com>
Thu, 5 Oct 2023 15:41:54 +0000 (17:41 +0200)
commite866d08d8b02ea19f88ac149ecb41695ba626aa6
treef5b23e423168e16bc33b35d9c742712619acc48c
parenta28f0970859b80578f1b45bb432c1a831d21ac03
contrib: add mdcompact

Hello all,

this patch checks in mdcompact, the tool written in elisp that I used
to mass convert all the multi choice pattern in the aarch64 back-end to
the new compact syntax.

I tested it on Emacs 29 (might run on older versions as well not
sure), also I verified it runs cleanly on a few other back-ends (arm,
loongarch).

The tool can be used to convert a single pattern, an open buffer or
all md files in a directory.

The tool might need further adjustment to run on some specific
back-end, in case very happy to help.

This patch was pre-approved here [1].

Best Regards

  Andrea Corallo

[1] <https://gcc.gnu.org/pipermail/gcc-patches/2023-October/631830.html>

contrib/ChangeLog

* mdcompact/mdcompact-testsuite.el: New file.
* mdcompact/mdcompact.el: Likewise.
* mdcompact/tests/1.md: Likewise.
* mdcompact/tests/1.md.out: Likewise.
* mdcompact/tests/2.md: Likewise.
* mdcompact/tests/2.md.out: Likewise.
* mdcompact/tests/3.md: Likewise.
* mdcompact/tests/3.md.out: Likewise.
* mdcompact/tests/4.md: Likewise.
* mdcompact/tests/4.md.out: Likewise.
* mdcompact/tests/5.md: Likewise.
* mdcompact/tests/5.md.out: Likewise.
* mdcompact/tests/6.md: Likewise.
* mdcompact/tests/6.md.out: Likewise.
* mdcompact/tests/7.md: Likewise.
* mdcompact/tests/7.md.out: Likewise.
16 files changed:
contrib/mdcompact/mdcompact-testsuite.el [new file with mode: 0644]
contrib/mdcompact/mdcompact.el [new file with mode: 0644]
contrib/mdcompact/tests/1.md [new file with mode: 0644]
contrib/mdcompact/tests/1.md.out [new file with mode: 0644]
contrib/mdcompact/tests/2.md [new file with mode: 0644]
contrib/mdcompact/tests/2.md.out [new file with mode: 0644]
contrib/mdcompact/tests/3.md [new file with mode: 0644]
contrib/mdcompact/tests/3.md.out [new file with mode: 0644]
contrib/mdcompact/tests/4.md [new file with mode: 0644]
contrib/mdcompact/tests/4.md.out [new file with mode: 0644]
contrib/mdcompact/tests/5.md [new file with mode: 0644]
contrib/mdcompact/tests/5.md.out [new file with mode: 0644]
contrib/mdcompact/tests/6.md [new file with mode: 0644]
contrib/mdcompact/tests/6.md.out [new file with mode: 0644]
contrib/mdcompact/tests/7.md [new file with mode: 0644]
contrib/mdcompact/tests/7.md.out [new file with mode: 0644]