[all-commits] [llvm/llvm-project] 91ccbc: [TableGen] Support named arguments
Wang Pengcheng via All-commits
all-commits at lists.llvm.org
Thu Jul 20 01:05:48 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 91ccbc6c1c4c121935ee4fbfa0db13ad86590a59
https://github.com/llvm/llvm-project/commit/91ccbc6c1c4c121935ee4fbfa0db13ad86590a59
Author: wangpc <wangpengcheng.pp at bytedance.com>
Date: 2023-07-20 (Thu, 20 Jul 2023)
Changed paths:
M llvm/docs/ReleaseNotes.rst
M llvm/docs/TableGen/ProgRef.rst
M llvm/include/llvm/TableGen/Record.h
M llvm/lib/TableGen/Record.cpp
M llvm/lib/TableGen/TGParser.cpp
M llvm/lib/TableGen/TGParser.h
A llvm/test/TableGen/named-arguments.td
M llvm/test/TableGen/template-args.td
Log Message:
-----------
[TableGen] Support named arguments
We provide a way to specify arguments in the form of `name=value`
so that we don't have to specify all optional arguments before the
one we'd like to change. Required arguments can alse be specified
in this way.
Note that the argument can only be specified once regardless of
the way (named or positional) to specify and positional arguments
should be put before named arguments.
Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D152998
More information about the All-commits
mailing list