[llvm] [LLVM][TableGen] Support type casts of nodes with multiple results (PR #109728)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 10:35:00 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 8b4b7d28f7c344c728a9812aa99d9ad24edb40a2 8a9513ed17bb7098bb88f10007765d0d9f2c9ffe --extensions cpp -- llvm/lib/TableGen/TGParser.cpp llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp
index 5ec45aae39..1d1fcbb698 100644
--- a/llvm/lib/TableGen/TGParser.cpp
+++ b/llvm/lib/TableGen/TGParser.cpp
@@ -2844,8 +2844,8 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType,
 
     return ListInit::get(Vals, DeducedEltTy);
   }
-  case tgtok::l_paren: {       // Value ::= '(' IDValue DagArgList ')'
-                               // Value ::= '(' '[' ValueList ']' DagArgList ')'
+  case tgtok::l_paren: { // Value ::= '(' IDValue DagArgList ')'
+                         // Value ::= '(' '[' ValueList ']' DagArgList ')'
     Lex.Lex();   // eat the '('
     if (Lex.getCode() != tgtok::Id && Lex.getCode() != tgtok::XCast &&
         Lex.getCode() != tgtok::question && Lex.getCode() != tgtok::XGetDagOp &&

``````````

</details>


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


More information about the llvm-commits mailing list