aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2022-07-18 04:03:55 -0700
committerIgor Kudrin <ikudrin@accesssoftek.com>2022-07-18 04:08:59 -0700
commit04e978ccba1e6c8b600b2fbad1a82b4b64ffc34b (patch)
tree58767379eff7ff79270d4c3a1098986cb52e657b /llvm/lib/Transforms/Utils/CloneFunction.cpp
parente27f9214c0465fab2d5efa3cf462019836f5eb08 (diff)
downloadllvm-04e978ccba1e6c8b600b2fbad1a82b4b64ffc34b.zip
llvm-04e978ccba1e6c8b600b2fbad1a82b4b64ffc34b.tar.gz
llvm-04e978ccba1e6c8b600b2fbad1a82b4b64ffc34b.tar.bz2
[NVPTX] Use the mask() operator to initialize packed structs with pointers
The current implementation assumes that all pointers used in the initialization of an aggregate are aligned according to the pointer size of the target; that might not be so if the object is packed. In that case, an array of .u8 should be used and pointers should be decorated with the mask() operator. The operator was introduced in PTX ISA 7.1, so an error is issued if the case is detected for an earlier version. Differential Revision: https://reviews.llvm.org/D127504
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
0 files changed, 0 insertions, 0 deletions