[PATCH] D151702: [TableGen] Implement !getdagargs and !getdagargnames.

Francesco Petrogalli via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 30 04:28:24 PDT 2023


fpetrogalli created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
fpetrogalli requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

  ``!getdagargs<``\ *type*\ ``>(``\ *dag*\ ``)``
      This operator extracts the list of arguments of the given *dag*.
  
      Due to limitations of the type system, it is requires that the
      arguments of the given *dag* can be converted to *type*. In
      practice, this means that for each *arg* in the *dag* the
      predicate ``!isa<type>(arg)`` is true.
  
  ``!getdagargnames(``\ *dag*\ ``)``
      This operator extracts the list of argument names of the given *dag*.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151702

Files:
  llvm/docs/TableGen/ProgRef.rst
  llvm/include/llvm/TableGen/Record.h
  llvm/lib/TableGen/Record.cpp
  llvm/lib/TableGen/TGLexer.cpp
  llvm/lib/TableGen/TGLexer.h
  llvm/lib/TableGen/TGParser.cpp
  llvm/test/TableGen/getdagargnames.td
  llvm/test/TableGen/getdagargs-error.td
  llvm/test/TableGen/getdagargs.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151702.526574.patch
Type: text/x-patch
Size: 14263 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230530/de06cec9/attachment.bin>


More information about the llvm-commits mailing list