diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2024-10-01 10:41:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-01 12:41:15 -0500 |
commit | 335e1372671c78a8cc6f023f962d621ad48703bb (patch) | |
tree | 9be1d98dcfcf12177c2abc1697d60a1388bf647d /llvm/unittests/Support/ModRefTest.cpp | |
parent | b16e69494811c5908c1ab2a8cf56b70b5834698c (diff) | |
download | llvm-335e1372671c78a8cc6f023f962d621ad48703bb.zip llvm-335e1372671c78a8cc6f023f962d621ad48703bb.tar.gz llvm-335e1372671c78a8cc6f023f962d621ad48703bb.tar.bz2 |
[Attributor][FIX] Track returned pointer offsets (#110534)
If the pointer returned by a function is not "the base pointer" but has
an offset, we need to track the offset such that users can apply it to
their offset chain when they create accesses.
This was reported by @ye-luo and reduced test cases are included. The
OffsetInfo was moved and the container was replaced with a set to avoid
excessive growth. Otherwise, the patch just replaces the "returns
pointer" flag with the "returned offsets", and deals with the applying
to offsets at the call site.
---------
Co-authored-by: Johannes Doerfert <jdoerfert@llnl.gov>
Diffstat (limited to 'llvm/unittests/Support/ModRefTest.cpp')
0 files changed, 0 insertions, 0 deletions