Thomas Lively via llvm-dev
2020-Jul-15 17:57 UTC
[llvm-dev] [Beginner] Understanding Tablegen language
Adding -debug to a -gen-dag-isel run can also print useful information about the parsed patterns. On Wed, Jul 15, 2020 at 10:44 AM Matt Arsenault via llvm-dev < llvm-dev at lists.llvm.org> wrote:> > > > On Jul 15, 2020, at 13:33, Rotate Right via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > > > Is there a backend to Tablegen which can dump a map of > pattern-to-matched to instruction-to-be-generated? > > --help doesn't seem to indicate anything like that. > > > If you run tablgen with no arguments, it produces the fully expanded > tablegen. You can directly view what ends up getting interpreted there > > -Matt > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200715/11347526/attachment.html>
Madhur Amilkanthwar via llvm-dev
2020-Jul-15 18:03 UTC
[llvm-dev] [Beginner] Understanding Tablegen language
I use --print-records and then search for opcode name or pattern name and then look for "PatternToMatch" key. It is close to the map you're looking for. On Wed, Jul 15, 2020 at 11:27 PM Thomas Lively via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Adding -debug to a -gen-dag-isel run can also print useful information > about the parsed patterns. > > On Wed, Jul 15, 2020 at 10:44 AM Matt Arsenault via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> >> >> > On Jul 15, 2020, at 13:33, Rotate Right via llvm-dev < >> llvm-dev at lists.llvm.org> wrote: >> > >> > Is there a backend to Tablegen which can dump a map of >> pattern-to-matched to instruction-to-be-generated? >> > --help doesn't seem to indicate anything like that. >> >> >> If you run tablgen with no arguments, it produces the fully expanded >> tablegen. You can directly view what ends up getting interpreted there >> >> -Matt >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- *Disclaimer: Views, concerns, thoughts, questions, ideas expressed in this mail are of my own and my employer has no take in it. * Thank You. Madhur D. Amilkanthwar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200715/e1730a4b/attachment.html>
Rotate Right via llvm-dev
2020-Jul-15 18:05 UTC
[llvm-dev] [Beginner] Understanding Tablegen language
Thanks. -print-records is useful in addition to other tips. On Wed, Jul 15, 2020 at 11:33 PM Madhur Amilkanthwar via llvm-dev < llvm-dev at lists.llvm.org> wrote:> I use --print-records and then search for opcode name or pattern name and > then look for "PatternToMatch" key. It is close to the map you're looking > for. > > On Wed, Jul 15, 2020 at 11:27 PM Thomas Lively via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Adding -debug to a -gen-dag-isel run can also print useful information >> about the parsed patterns. >> >> On Wed, Jul 15, 2020 at 10:44 AM Matt Arsenault via llvm-dev < >> llvm-dev at lists.llvm.org> wrote: >> >>> >>> >>> > On Jul 15, 2020, at 13:33, Rotate Right via llvm-dev < >>> llvm-dev at lists.llvm.org> wrote: >>> > >>> > Is there a backend to Tablegen which can dump a map of >>> pattern-to-matched to instruction-to-be-generated? >>> > --help doesn't seem to indicate anything like that. >>> >>> >>> If you run tablgen with no arguments, it produces the fully expanded >>> tablegen. You can directly view what ends up getting interpreted there >>> >>> -Matt >>> _______________________________________________ >>> LLVM Developers mailing list >>> llvm-dev at lists.llvm.org >>> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >>> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> > > > -- > *Disclaimer: Views, concerns, thoughts, questions, ideas expressed in this > mail are of my own and my employer has no take in it. * > Thank You. > Madhur D. Amilkanthwar > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200715/dc75e3a2/attachment.html>