[llvm] [NFC][TableGen] Reorganize GlobalISelMatchTable.h (PR #200153)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 03:31:31 PDT 2026
Pierre-vh wrote:
This is somewhat of an RFC. I've been looking at these files for the past few weeks in search of various improvements (see previous patches, and there are some WIPs I have that im investigating too), and over these past weeks I tried a few times to split up the implementation, only to be unhappy with the result and deleting the commits, thinking it wasn't a good idea.
This time I decided to finish it and put it up for review to see what others think.
Personally I think it helps this code be a bit more maintainable by highlighting the different components of the match table system. I think we can do even more, I'd like to eventually move the entire set of classes derived from the PredicateMatcher into a standalone file, but that requires a bit more work (the Predicates aren't just simple data object, some contain pointers when they shouldn't, but it's another discussion).
My main motivation for this change is that there is growing momentum behind GlobalISel, and this is a critical part of it. It'd like to ensure this is a bit more maintainable, and that adding new stuff to these files or fixing bugs is at least a bit easier for the uninitiated.
https://github.com/llvm/llvm-project/pull/200153
More information about the llvm-commits
mailing list