[all-commits] [llvm/llvm-project] 27e2c8: Add Record::getValueAsOptionalDef().
John McCall via All-commits
all-commits at lists.llvm.org
Fri Oct 25 16:39:31 PDT 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 27e2c8faec6926fafdbd4d9b5b2f827f002e1c8e
https://github.com/llvm/llvm-project/commit/27e2c8faec6926fafdbd4d9b5b2f827f002e1c8e
Author: John McCall <rjmccall at apple.com>
Date: 2019-10-25 (Fri, 25 Oct 2019)
Changed paths:
M llvm/include/llvm/TableGen/Record.h
M llvm/lib/TableGen/Record.cpp
Log Message:
-----------
Add Record::getValueAsOptionalDef().
Using `?` as an optional marker is very useful in Clang's AST-node
emitters because otherwise we need a separate class just to encode
the presence or absence of a base node reference.
Commit: baf91d02da6e68c4ee6723ef68911fcd80ece6a5
https://github.com/llvm/llvm-project/commit/baf91d02da6e68c4ee6723ef68911fcd80ece6a5
Author: John McCall <rjmccall at apple.com>
Date: 2019-10-25 (Fri, 25 Oct 2019)
Changed paths:
M clang/include/clang/Basic/CommentNodes.td
M clang/include/clang/Basic/DeclNodes.td
M clang/include/clang/Basic/StmtNodes.td
M clang/include/clang/Basic/TypeNodes.td
A clang/utils/TableGen/ClangASTEmitters.h
M clang/utils/TableGen/ClangASTNodesEmitter.cpp
M clang/utils/TableGen/ClangAttrEmitter.cpp
M clang/utils/TableGen/ClangTypeNodesEmitter.cpp
M clang/utils/TableGen/TableGen.cpp
Log Message:
-----------
[NFC] Add a tablegen node for the root of the AST node hierarchies.
This is useful for the property databases we want to add for abstract
serialization, since root classes can have interesting properties.
Compare: https://github.com/llvm/llvm-project/compare/dd501045cdea...baf91d02da6e
More information about the All-commits
mailing list