LLVM  14.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
 
bool operator< (RetainedKnowledge Other) const
 This is only intended for use in std::min/stdmax between attribute that only differ in ArgValue. More...
 
 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 101 of file AssumeBundleQueries.h.

Member Function Documentation

◆ none()

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

Definition at line 120 of file AssumeBundleQueries.h.

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

◆ operator bool()

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

Definition at line 119 of file AssumeBundleQueries.h.

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

◆ operator!=()

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

Definition at line 109 of file AssumeBundleQueries.h.

References Other.

◆ operator<()

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

This is only intended for use in std::min/stdmax between attribute that only differ in ArgValue.

Definition at line 112 of file AssumeBundleQueries.h.

References ArgValue, assert(), AttrKind, llvm::Attribute::None, Other, and WasOn.

◆ operator==()

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

Definition at line 105 of file AssumeBundleQueries.h.

References ArgValue, AttrKind, Other, and WasOn.

Member Data Documentation

◆ ArgValue

unsigned llvm::RetainedKnowledge::ArgValue = 0

◆ AttrKind

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

◆ WasOn

Value* llvm::RetainedKnowledge::WasOn = nullptr

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