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 origin/main HEAD --extensions cpp,h -- 
llvm/utils/TableGen/Common/CodeGenInstAlias.cpp 
llvm/utils/TableGen/Common/CodeGenRegisters.cpp 
llvm/utils/TableGen/Common/CodeGenRegisters.h 
llvm/utils/TableGen/Common/CodeGenTarget.cpp 
llvm/utils/TableGen/Common/CodeGenTarget.h 
llvm/utils/TableGen/CompressInstEmitter.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/utils/TableGen/Common/CodeGenInstAlias.cpp 
b/llvm/utils/TableGen/Common/CodeGenInstAlias.cpp
index 26d0d4681..d3050c055 100644
--- a/llvm/utils/TableGen/Common/CodeGenInstAlias.cpp
+++ b/llvm/utils/TableGen/Common/CodeGenInstAlias.cpp
@@ -40,11 +40,9 @@ unsigned CodeGenInstAlias::ResultOperand::getMINumOperands() 
const {
 
 using ResultOperand = CodeGenInstAlias::ResultOperand;
 
-static Expected<ResultOperand> matchSimpleOperand(const Init *Arg,
-                                                  const StringInit *ArgName,
-                                                  const Record *Op,
-                                                  const CodeGenTarget &T,
-                                                  ArrayRef<SMLoc> Loc) {
+static Expected<ResultOperand>
+matchSimpleOperand(const Init *Arg, const StringInit *ArgName, const Record 
*Op,
+                   const CodeGenTarget &T, ArrayRef<SMLoc> Loc) {
   if (const Record *OpRC = T.getAsRegClassLike(Op)) {
     if (const auto *ArgDef = dyn_cast<DefInit>(Arg)) {
       const Record *ArgRec = ArgDef->getDef();

``````````

</details>


https://github.com/llvm/llvm-project/pull/170790
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to