[llvm-dev] RFC/bikeshedding: Separation of instruction and pattern definitions in LLVM backends

John Leidel via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 18 05:02:23 PDT 2017


I agree with David's sentiment.  The second method appears to be easier to
follow.  IMHO, this would be easier for external users that desire to
modify the backend for their own custom extensions/instructions.

On Fri, Aug 18, 2017 at 5:05 AM, David Chisnall <David.Chisnall at cl.cam.ac.uk
> wrote:

> On 18 Aug 2017, at 10:55, Alex Bradbury <asb at asbradbury.org> wrote:
> >
> > I've demonstrated both the "conventional" approach
> > <https://gist.github.com/asb/0c61ebc131076c6186052c29968a49
> 1d#file-riscvinstrinfo_conventional-td>
> > and the "separate patterns" approach
> > <https://gist.github.com/asb/0c61ebc131076c6186052c29968a49
> 1d#file-riscvinstrinfo_separate_pats-td>.
> > Obviously once patterns and pseudo-instructions are separated out, you
> may
> > want to move them to a different .td file.
> >
> > Does anyone have strong views on these sort of choices one way or
> another?
>
> I do find the second easier to follow, though both are a lot easier to
> read than the MIPS back end.
>
> David
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170818/4d43e503/attachment-0001.html>


More information about the llvm-dev mailing list