[llvm] [X86][AsmParser] Improve rel8 validation (PR #126073)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 26 09:48:01 PST 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 bb62af7d14f7fe1301311234352f9652d45ba354 d60fbb3c51195dda637cffbcbbed69069d7de3db --extensions h,cpp -- llvm/lib/Target/X86/AsmParser/X86Operand.h llvm/utils/TableGen/X86RecognizableInstr.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/AsmParser/X86Operand.h b/llvm/lib/Target/X86/AsmParser/X86Operand.h
index 9e1a7e020c..4a9b6c9ad9 100644
--- a/llvm/lib/Target/X86/AsmParser/X86Operand.h
+++ b/llvm/lib/Target/X86/AsmParser/X86Operand.h
@@ -424,9 +424,7 @@ struct X86Operand final : public MCParsedAsmOperand {
return true;
}
- bool isAbsMem8() const {
- return isAbsMem() && isMem8() && isDispImm8();
- }
+ bool isAbsMem8() const { return isAbsMem() && isMem8() && isDispImm8(); }
bool isMemUseUpRegs() const override { return UseUpRegs; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/126073
More information about the llvm-commits
mailing list