[llvm] [AMDGPU] Lower loads and stores for address space 13 (PR #209541)

Gheorghe-Teodor Bercea via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 5 22:04:29 PDT 2026


================
@@ -379,6 +385,83 @@ bool AMDGPULowerVGPREncoding::runOnMachineInstr(MachineInstr &MI) {
   return false;
 }
 
+void AMDGPULowerVGPREncoding::lowerLoadStoreIdx(MachineInstr &MI) {
+  auto &LdSt = cast<AMDGPUMI::VLoadStoreIdxInst>(MI);
----------------
doru1004 wrote:

`MI` is a `MachineInstr &` here, so `cast` returns a reference. Using `*LdSt` fails to compile.

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


More information about the llvm-commits mailing list