diff options
author | Tom Roeder <tmroeder@google.com> | 2020-12-01 17:23:55 -0800 |
---|---|---|
committer | Tom Roeder <tmroeder@google.com> | 2020-12-16 15:39:50 -0800 |
commit | 1844ab770cb9380a1896d83b1863b93766ffdf22 (patch) | |
tree | b4ad1c3d576fc92f9c52e0385d314194dc61e78e /llvm/lib/CodeGen/CodeGen.cpp | |
parent | f31e9bcd73eb5f99256a19ae8ed958140ba58a42 (diff) | |
download | llvm-1844ab770cb9380a1896d83b1863b93766ffdf22.zip llvm-1844ab770cb9380a1896d83b1863b93766ffdf22.tar.gz llvm-1844ab770cb9380a1896d83b1863b93766ffdf22.tar.bz2 |
[ASTImporter] Add support for importing GenericSelectionExpr AST nodes.
This allows ASTs to be merged when they contain GenericSelectionExpr
nodes (this is _Generic from C11). This is needed, for example, for
CTU analysis of C code that makes use of _Generic, like the Linux
kernel.
The node is already supported in the AST, but it didn't have a matcher
in ASTMatchers. So, this change adds the matcher and adds support to
ASTImporter. Additionally, this change adds support for structural
equivalence of _Generic in the AST.
Reviewed By: martong, aaron.ballman
Differential Revision: https://reviews.llvm.org/D92600
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions