[all-commits] [llvm/llvm-project] dcc8f9: [TableGen] Add !setdagarg and !setdagname

darkbuck via All-commits all-commits at lists.llvm.org
Wed Jun 7 06:38:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dcc8f9490f790e7ecbe08a655abec272422df163
      https://github.com/llvm/llvm-project/commit/dcc8f9490f790e7ecbe08a655abec272422df163
  Author: Michael Liao <michael.hliao at gmail.com>
  Date:   2023-06-07 (Wed, 07 Jun 2023)

  Changed paths:
    M llvm/docs/TableGen/ProgRef.rst
    M llvm/include/llvm/TableGen/Record.h
    M llvm/lib/TableGen/Record.cpp
    M llvm/lib/TableGen/TGLexer.cpp
    M llvm/lib/TableGen/TGLexer.h
    M llvm/lib/TableGen/TGParser.cpp
    M llvm/test/TableGen/getsetop.td

  Log Message:
  -----------
  [TableGen] Add !setdagarg and !setdagname

- This patch proposes to add `!setdagarg` and `!setdagname` bang
  operators to produce a new DAG node after replacing the specified
  argument value/name from the given input DAG node. E.g.,
  `!setdagarg((foo 1, 2), 0, "x")` produces `(foo "x", 2)` and
  `!setdagname((foo 1:$a, 2:$b), 1, "c")` produces `(foo 1:$a, 2:$c)`.

Reviewed By: simon_tatham

Differential Revision: https://reviews.llvm.org/D151842




More information about the All-commits mailing list