[PATCH] D127317: [AArch64][SME] Add ldr/str (fill/spill) intrinsics
Amara Emerson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 23:39:52 PDT 2022
aemerson added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:2351
+ MIB.add(MI.getOperand(2)); // base
+ MIB.add(MI.getOperand(1)); // offset, same as vector select offset
+
----------------
Nit: Comments usually start with capitals.
================
Comment at: llvm/lib/Target/AArch64/AArch64InstrFormats.td:3210
+// (unsigned immediate)
+// Indexed for 8-bit registers. offset is in range [0,15].
+def am_indexed8_4b : ComplexPattern<i64, 2, "SelectAddrModeIndexedUImm<1,15>", []>;
----------------
s/offset/Offset
================
Comment at: llvm/test/CodeGen/AArch64/SME/sme-intrinsics-loads.ll:265
+; CHECK-NEXT: ret
+ %base = getelementptr i8, i8* %ptr, i64 15
+ call void @llvm.aarch64.sme.ldr(i32 0, i8* %base)
----------------
I'm not following why a byte offset from a pointer would lower into an offset scaled by VL?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127317/new/
https://reviews.llvm.org/D127317
More information about the llvm-commits
mailing list