[PATCH] D76283: [IRBuilder] Use preferred target type for len argument of memory intrinsic functions

John McCall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 17 10:44:00 PDT 2020


rjmccall added a comment.

I guess the logical rule would be that the bit-width of the size has to match the minimum of the bit-widths of the address spaces used with the intrinsic.  (Note that `llvm.memcpy` etc. can take pointers into two different address spaces, potentially of different widths.)  That might be pretty disruptive for existing code, though.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76283





More information about the llvm-commits mailing list