[llvm] [GISel][AArch64] Allow PatLeafs to be imported in GISel which were previously causing warnings (PR #140935)

David Green via llvm-commits llvm-commits at lists.llvm.org
Thu May 22 01:34:03 PDT 2025


================
@@ -510,6 +511,16 @@ class AArch64InstructionSelector : public InstructionSelector {
   /// Return true if \p MI is a load or store of \p NumBytes bytes.
   bool isLoadStoreOfNumBytes(const MachineInstr &MI, unsigned NumBytes) const;
 
+  /// Return true if top 16 bits of register are zero.
+  bool isTop16Zero(const MachineOperand &MO) const;
----------------
davemgreen wrote:

Could these be done inline? I'm not sure its much better, but it helps keep the code for the SDAG and GISel together in one place.

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


More information about the llvm-commits mailing list