LLVM  12.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::RetainedKnowledge Struct Reference

Represent one information held inside an operand bundle of an llvm.assume. More...

#include "llvm/Analysis/AssumeBundleQueries.h"

Collaboration diagram for llvm::RetainedKnowledge:
Collaboration graph
[legend]

Public Member Functions

bool operator== (RetainedKnowledge Other) const
 
bool operator!= (RetainedKnowledge Other) const
 
 operator bool () const
 

Static Public Member Functions

static RetainedKnowledge none ()
 

Public Attributes

Attribute::AttrKind AttrKind = Attribute::None
 
unsigned ArgValue = 0
 
ValueWasOn = nullptr
 

Detailed Description

Represent one information held inside an operand bundle of an llvm.assume.

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:

Definition at line 100 of file AssumeBundleQueries.h.

Member Function Documentation

◆ none()

static RetainedKnowledge llvm::RetainedKnowledge::none ( )
inlinestatic

Definition at line 110 of file AssumeBundleQueries.h.

Referenced by llvm::getKnowledgeForValue(), and llvm::getKnowledgeFromUse().

◆ operator bool()

llvm::RetainedKnowledge::operator bool ( ) const
inline

Definition at line 109 of file AssumeBundleQueries.h.

References AttrKind, and llvm::Attribute::None.

◆ operator!=()

bool llvm::RetainedKnowledge::operator!= ( RetainedKnowledge  Other) const
inline

Definition at line 108 of file AssumeBundleQueries.h.

References llvm::Other.

◆ operator==()

bool llvm::RetainedKnowledge::operator== ( RetainedKnowledge  Other) const
inline

Definition at line 104 of file AssumeBundleQueries.h.

References ArgValue, AttrKind, llvm::Other, and WasOn.

Member Data Documentation

◆ ArgValue

unsigned llvm::RetainedKnowledge::ArgValue = 0

Definition at line 102 of file AssumeBundleQueries.h.

Referenced by operator==().

◆ AttrKind

Attribute::AttrKind llvm::RetainedKnowledge::AttrKind = Attribute::None

Definition at line 101 of file AssumeBundleQueries.h.

Referenced by llvm::getKnowledgeFromUse(), operator bool(), and operator==().

◆ WasOn

Value* llvm::RetainedKnowledge::WasOn = nullptr

Definition at line 103 of file AssumeBundleQueries.h.

Referenced by operator==().


The documentation for this struct was generated from the following file: