aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2025-01-30 13:17:41 +0000
committerGitHub <noreply@github.com>2025-01-30 13:17:41 +0000
commit104c2b86a5e9f4871707b25399735f0e5db58745 (patch)
treecbf99eec11220d3b7ce91dbf3ab6070bad7f678b /clang/lib/CodeGen
parentd553e5d4b601ead44ed5045156f5644aa26ae107 (diff)
downloadllvm-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