[llvm] [GISel][AArch64] Allow PatLeafs to be imported in GISel which were previously causing warnings (PR #140935)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 2 02:34:57 PDT 2025
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 HEAD~1 HEAD --extensions cpp,h -- llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutor.h llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp llvm/utils/TableGen/Common/CodeGenDAGPatterns.h llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.h llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTableExecutorEmitter.cpp llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTableExecutorEmitter.h llvm/utils/TableGen/GlobalISelCombinerEmitter.cpp llvm/utils/TableGen/GlobalISelEmitter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h b/llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h
index bcb610a1c..591cf9c97 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h
@@ -415,10 +415,10 @@ bool GIMatchTableExecutor::executeMatchTable(
uint64_t OpIdx = readULEB();
uint16_t Predicate = readU16();
DEBUG_WITH_TYPE(TgtExecutor::getName(),
- dbgs()
- << CurrentIdx << ": GIM_CheckLeafOperandPredicate(MIs["
- << InsnID << "]->getOperand(" << OpIdx
- << "), Predicate=" << Predicate << ")\n");
+ dbgs() << CurrentIdx
+ << ": GIM_CheckLeafOperandPredicate(MIs[" << InsnID
+ << "]->getOperand(" << OpIdx
+ << "), Predicate=" << Predicate << ")\n");
assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
assert(State.MIs[InsnID]->getOperand(OpIdx).isReg() &&
"Expected register operand");
``````````
</details>
https://github.com/llvm/llvm-project/pull/140935
More information about the llvm-commits
mailing list