One piece of knowledge from an llvm.assume operand bundle.
Synopsis
Declared in <llvm/Analysis/AssumeBundleQueries.h>
struct RetainedKnowledge;
Description
AttrKind is the property that holds. WasOn if not null is that Value for which AttrKind holds. ArgValue is optionally an argument of the attribute. For example if we know that %P has an alignment of at least four:
-
AttrKind will be Attribute::Alignment.
-
WasOn will be %P.
-
ArgValue will be 4.
Member Functions
Name |
Description |
|
Construct retained knowledge for an attribute and optional value. |
Return true if this knowledge is non‐empty. |
|
Return true if this knowledge equals |
|
Return true if this knowledge differs from |
|
Compare by ArgValue among otherwise equal attributes. |
Static Member Functions
Name |
Description |
Return an empty RetainedKnowledge. |
Data Members
Name |
Description |
Optional numeric argument for the attribute (e.g. alignment). |
|
Attribute kind that is known to hold. |
|
Optional IR value argument associated with the attribute. |
|
Value to which the attribute applies, or nullptr if none. |
Non-Member Functions
Name |
Description |
Return a valid Knowledge associated to the Value V if its Attribute kind is in AttrKinds and it matches the Filter. |
|
This extracts the Knowledge from an element of an operand bundle. This is mostly for use in the assume builder. |
|
Return a valid Knowledge associated to the Use U if its Attribute kind is in AttrKinds. |
|
Return a valid Knowledge associated to the Value V if its Attribute kind is in AttrKinds and the knowledge is suitable to be used in the context of CtxI. |
Created with MrDocs