Cache of branch conditions that affect values, for use by ValueTracking.

Synopsis

Declared in <llvm/Analysis/DomConditionCache.h>

class DomConditionCache;

Description

Unlike AssumptionCache, this class does not perform any automatic analysis or invalidation. The caller is responsible for registering all relevant branches (and re‐registering them if they change), and for removing invalidated values from the cache.

Member Functions

Name

Description

conditionsFor

Access the list of branches which affect this value.

registerBranch

Add a branch condition to the cache.

removeValue

Remove a value from the cache, e.g. because it will be erased.

Created with MrDocs