[llvm] [LoongArch] Record the special AMO operand constraint with TableGen (PR #114398)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 31 23:34:33 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 df9769e14b79048331c33deeda1a93acc9a4a73e 0f6047320e6b966cd877416e79d42d237928d21e --extensions cpp,h -- llvm/lib/Target/LoongArch/AsmParser/LoongArchAsmParser.cpp llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchBaseInfo.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchBaseInfo.h b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchBaseInfo.h
index 7389bfd0a5..bd63c5edea 100644
--- a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchBaseInfo.h
+++ b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchBaseInfo.h
@@ -85,9 +85,7 @@ static inline bool isSubjectToAMORdConstraint(uint64_t TSFlags) {
 }
 
 /// \returns true if this instruction belongs to the AMCAS family.
-static inline bool isAMCAS(uint64_t TSFlags) {
-  return TSFlags & IsAMCASMask;
-}
+static inline bool isAMCAS(uint64_t TSFlags) { return TSFlags & IsAMCASMask; }
 } // end namespace LoongArchII
 
 namespace LoongArchABI {

``````````

</details>


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


More information about the llvm-commits mailing list