[llvm] [llubi] Add support for captures (PR #201170)

Ralf Jung via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 08:16:11 PDT 2026


RalfJung wrote:

> Can we recover the provenance in the following case?

I would argue that if `captures` alters the provenance of the pointer, then this provenance should not be recovered. `p3` is mixing pointers with two different provenances. This is not an artifact of the "random tag" encoding; even with full per-bit provenance, we'd see the same thing.

With full per-bit provenance, one could implement something where certain provenances can be mixed. But then we have to define what the meaning of that mixed provenance is, and for something like `noalias` that will not always be meaningful...

https://github.com/llvm/llvm-project/pull/201170


More information about the llvm-commits mailing list