[PATCH] D89655: [TableGen] Enhance !empty and !size to handle strings and DAGs

Paul C. Anagnostopoulos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 18 13:08:14 PDT 2020


Paul-C-Anagnostopoulos created this revision.
Paul-C-Anagnostopoulos added reviewers: lattner, nhaehnle, madhur13490.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Paul-C-Anagnostopoulos requested review of this revision.

This patch enhances the TableGen !empty and !size operators so they can handle strings and DAGs in addition to lists. This is the first in a series of patches to improve TableGen's ability to build complex DAGs.

In the process, I fixed a bug in the type checking for !first, !empty, !size, and !tail.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89655

Files:
  llvm/docs/TableGen/ProgRef.rst
  llvm/lib/TableGen/Record.cpp
  llvm/lib/TableGen/TGParser.cpp
  llvm/test/TableGen/empty.td
  llvm/test/TableGen/size.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89655.298896.patch
Type: text/x-patch
Size: 9767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201018/1930a9e4/attachment.bin>


More information about the llvm-commits mailing list