diff options
author | Jay Foad <jay.foad@amd.com> | 2025-01-30 13:17:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-30 13:17:41 +0000 |
commit | 104c2b86a5e9f4871707b25399735f0e5db58745 (patch) | |
tree | cbf99eec11220d3b7ce91dbf3ab6070bad7f678b /clang/lib/CodeGen | |
parent | d553e5d4b601ead44ed5045156f5644aa26ae107 (diff) | |
download | llvm-104c2b86a5e9f4871707b25399735f0e5db58745.zip llvm-104c2b86a5e9f4871707b25399735f0e5db58745.tar.gz llvm-104c2b86a5e9f4871707b25399735f0e5db58745.tar.bz2 |
[TableGen][Docs] Accept "code" as a Type (#124902)
Previously the Type production did not include "code", which was only
accepted in one place in the grammar:
BodyItem: (`Type` | "code") `TokIdentifier` ["=" `Value`] ";"
However the parser implementation accepts "code" as a Type with only one
place where it is *not* allowed, corresponding to this production:
SimpleValue9: `BangOperator` ["<" `Type` ">"] "(" `ValueListNE` ")"
This patch changes the production for Type to include "code", thereby
fixing most occurrences of Type in the grammar, and documents the
restriction for BangOperator Types in the text instead of codifying it
in the grammar.
Diffstat (limited to 'clang/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions