[llvm] [AArch64](NFC) Introduce unified `isLegalArithImmed()` and `isLegalCmpImmed()` (PR #203020)

David Green via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 12:51:37 PDT 2026


================
@@ -350,6 +350,28 @@ static inline bool isValidDecodeLogicalImmediate(uint64_t val,
   return true;
 }
 
+// isLegalArithImmed - \returns true if \p C is a legal immediate operand for an
+// arithmetic instruction.
----------------
davemgreen wrote:

///'s for doxygen comment.

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


More information about the llvm-commits mailing list