diff options
author | Jan Voung <jvoung@google.com> | 2024-10-16 12:10:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-16 12:10:39 -0400 |
commit | 87dd5dc8f03e78a34d99630b80024c102e5aee10 (patch) | |
tree | 20bad1d7533f6fefa489e87c9fb122e8337ad226 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 1c154a20b4943e9c94bcff8ee5bba34fdf9e52e5 (diff) | |
download | llvm-87dd5dc8f03e78a34d99630b80024c102e5aee10.zip llvm-87dd5dc8f03e78a34d99630b80024c102e5aee10.tar.gz llvm-87dd5dc8f03e78a34d99630b80024c102e5aee10.tar.bz2 |
[clang][dataflow] Add a lattice to help cache const accessor methods (#111006)
By caching const accessor methods we can sometimes treat method call
results as stable (e.g., for issue
https://github.com/llvm/llvm-project/issues/58510). Users can clear the
cache when a non-const method is called that may modify the state of an
object.
This is represented as mixin.
It will be used in a follow on patch to change
bugprone-unchecked-optional-access's lattice from NoopLattice to
CachedConstAccessorsLattice<NoopLattice>, along with some additional
transfer functions.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions