[PATCH] D94465: [RISCV] Frame handling for RISC-V V extension. (2nd. version)

Roger Ferrer Ibanez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 1 07:52:55 PDT 2021


rogfer01 added a comment.

Hi @SuH,

> My question is how to count the scalar incoming argument with this frame layout,
> because scalar incoming arguments cross RVV previous local variables frame objects.
> In the current frame(callee), we don't know the RVV previous local variables count.
> So we can't get the real stack offset because callee not  know the **caller vector local variables size.**

My understanding is that the FrameIndexes associated to the RVV incoming arguments will have positive offsets in the MachineFrameInfo before we start emitting the frame layout (local variables should have negative offsets). FrameIndexes for RVV objects should have a different StackID too.

That said, I might be mixing things here so if you have an example showing the issue, this would help a lot.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94465/new/

https://reviews.llvm.org/D94465



More information about the llvm-commits mailing list