[PATCH] D112445: [fir] Add fir.array_access op
Valentin Clement via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 26 01:07:38 PDT 2021
clementval added a comment.
In D112445#3086236 <https://reviews.llvm.org/D112445#3086236>, @mehdi_amini wrote:
> This likely requires a longer design discussion, maybe on the mailing list. But:
>
> - If we have an immutable copy of an array in an SSA value, I would think that we'd get a single element by extracting it.
> - If we want a reference to the element in memory, then we shouldn't try to get it from such an SSA value but from the reference: basically an operation performing in-memory array-indexing / GEP-style manipulation.
I'll let @schweitz answer here since he is the one who designed the array operations and will have deeper explanation on that.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112445/new/
https://reviews.llvm.org/D112445
More information about the llvm-commits
mailing list