[llvm] [AArch64][GISel] Support SVE with 128-bit min-size for G_LOAD and G_STORE (PR #92130)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 15 09:40:47 PDT 2024


================
@@ -901,6 +901,27 @@ static unsigned selectLoadStoreUIOp(unsigned GenericOpc, unsigned RegBankID,
   return GenericOpc;
 }
 
+/// Select the AArch64 opcode for the G_LOAD or G_STORE operation for scalable 
+/// vectors.
+/// \p ElementSize size of the element of the scalable vector
+static unsigned selectLoadStoreSVEOp(const unsigned GenericOpc,
----------------
Him188 wrote:

https://github.com/llvm/llvm-project/blob/e2ec9514876744627e99fecb7179accdc6969e4e/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp#L865-L902

Currently we are already doing `selectLoadStoreUIOp` manually. I'm following the same idea.
Making them select through TableGen would require more work and can be a separate patch.

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


More information about the llvm-commits mailing list