[llvm] [TableGen] Add let append/prepend syntax for field concatenation (PR #182382)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 6 08:26:47 PST 2026


================
@@ -3637,8 +3689,15 @@ bool TGParser::ParseBodyItem(Record *CurRec) {
     return false;
   }
 
-  // LET ID OptionalRangeList '=' Value ';'
-  if (Lex.Lex() != tgtok::Id)
+  // LET [append|prepend] ID OptionalBitList '=' Value ';'
+  Lex.Lex(); // eat 'let'.
+
+  if (Lex.getCode() != tgtok::Id)
----------------
jurahul wrote:

I think the issue is that your new unit test tests `let append append = ...` but does not test just `let append = 1`, so my comment here seems valid.

https://github.com/llvm/llvm-project/pull/182382


More information about the llvm-commits mailing list