[PATCH] D125690: [MemIntrinsics] Add an API to get elementtype attribute value. NFC.

Artur Pilipenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 25 12:30:34 PDT 2022


apilipenko added a comment.

> Copying arrays of pointers in environments with moving garbage collector is different from copying of 'primitive' types of the same types.

Well, I understand that upstream may not take it as a 'justification'.

GC support is a supported feature of LLVM upstream (https://llvm.org/docs/GarbageCollection.html). I think this is a totally fair justification for elementtype on memory transfer intrinsics. I would argue that elementtype might be a requirement for some of the GC strategies because without the type information we can't choose the right lowering for the intrinsic.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125690



More information about the llvm-commits mailing list