LLVM 18.0.0git
Classes | Public Member Functions | Friends | List of all members
llvm::AliasSet Class Reference

#include "llvm/Analysis/AliasSetTracker.h"

Inheritance diagram for llvm::AliasSet:
Inheritance graph
[legend]

Classes

class  iterator
 Define an iterator for alias sets... this is just a forward iterator. More...
 

Public Member Functions

 AliasSet (const AliasSet &)=delete
 
AliasSetoperator= (const AliasSet &)=delete
 
bool isRef () const
 Accessors...
 
bool isMod () const
 
bool isMustAlias () const
 
bool isMayAlias () const
 
bool isForwardingAliasSet () const
 Return true if this alias set should be ignored as part of the AliasSetTracker object.
 
void mergeSetIn (AliasSet &AS, AliasSetTracker &AST, BatchAAResults &BatchAA)
 Merge the specified alias set into this alias set.
 
iterator begin () const
 
iterator end () const
 
bool empty () const
 
unsigned size ()
 
void print (raw_ostream &OS) const
 
void dump () const
 
AliasResult aliasesPointer (const Value *Ptr, LocationSize Size, const AAMDNodes &AAInfo, BatchAAResults &AA) const
 If the specified pointer "may" (or must) alias one of the members in the set return the appropriate AliasResult.
 
ModRefInfo aliasesUnknownInst (const Instruction *Inst, BatchAAResults &AA) const
 
- Public Member Functions inherited from llvm::ilist_node_impl< OptionsT >
self_iterator getIterator ()
 
const_self_iterator getIterator () const
 
reverse_self_iterator getReverseIterator ()
 
const_reverse_self_iterator getReverseIterator () const
 
bool isSentinel () const
 Check whether this is the sentinel node.
 

Friends

class AliasSetTracker
 

Additional Inherited Members

- Protected Types inherited from llvm::ilist_node_impl< OptionsT >
using self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, false, false >::type
 
using const_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, false, true >::type
 
using reverse_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, true, false >::type
 
using const_reverse_self_iterator = typename ilist_select_iterator_type< OptionsT::has_iterator_bits, OptionsT, true, true >::type
 
- Protected Member Functions inherited from llvm::ilist_node_impl< OptionsT >
 ilist_node_impl ()=default
 

Detailed Description

Definition at line 49 of file AliasSetTracker.h.

Constructor & Destructor Documentation

◆ AliasSet()

llvm::AliasSet::AliasSet ( const AliasSet )
delete

Member Function Documentation

◆ aliasesPointer()

AliasResult AliasSet::aliasesPointer ( const Value Ptr,
LocationSize  Size,
const AAMDNodes AAInfo,
BatchAAResults AA 
) const

If the specified pointer "may" (or must) alias one of the members in the set return the appropriate AliasResult.

aliasesPointer - If the specified pointer "may" (or must) alias one of the members in the set return the appropriate AliasResult.

Otherwise return NoAlias.

Definition at line 190 of file AliasSetTracker.cpp.

References llvm::BatchAAResults::alias(), assert(), begin(), E, end(), llvm::BatchAAResults::getModRefInfo(), I, llvm::isModOrRefSet(), llvm::AliasResult::MayAlias, llvm::AliasResult::NoAlias, Ptr, and Size.

◆ aliasesUnknownInst()

ModRefInfo AliasSet::aliasesUnknownInst ( const Instruction Inst,
BatchAAResults AA 
) const

◆ begin()

iterator llvm::AliasSet::begin ( ) const
inline

◆ dump()

LLVM_DUMP_METHOD void AliasSet::dump ( ) const

Definition at line 618 of file AliasSetTracker.cpp.

References llvm::dbgs(), and print().

◆ empty()

bool llvm::AliasSet::empty ( ) const
inline

Definition at line 213 of file AliasSetTracker.h.

Referenced by print().

◆ end()

iterator llvm::AliasSet::end ( ) const
inline

◆ isForwardingAliasSet()

bool llvm::AliasSet::isForwardingAliasSet ( ) const
inline

Return true if this alias set should be ignored as part of the AliasSetTracker object.

Definition at line 203 of file AliasSetTracker.h.

◆ isMayAlias()

bool llvm::AliasSet::isMayAlias ( ) const
inline

Definition at line 199 of file AliasSetTracker.h.

◆ isMod()

bool llvm::AliasSet::isMod ( ) const
inline

Definition at line 197 of file AliasSetTracker.h.

◆ isMustAlias()

bool llvm::AliasSet::isMustAlias ( ) const
inline

Definition at line 198 of file AliasSetTracker.h.

◆ isRef()

bool llvm::AliasSet::isRef ( ) const
inline

Accessors...

Definition at line 196 of file AliasSetTracker.h.

◆ mergeSetIn()

void AliasSet::mergeSetIn ( AliasSet AS,
AliasSetTracker AST,
BatchAAResults BatchAA 
)

Merge the specified alias set into this alias set.

mergeSetIn - Merge the specified alias set into this alias set.

Definition at line 44 of file AliasSetTracker.cpp.

References llvm::append_range(), assert(), llvm::BatchAAResults::isMustAlias(), size(), and std::swap().

◆ operator=()

AliasSet & llvm::AliasSet::operator= ( const AliasSet )
delete

◆ print()

void AliasSet::print ( raw_ostream OS) const

◆ size()

unsigned llvm::AliasSet::size ( )
inline

Definition at line 217 of file AliasSetTracker.h.

Referenced by mergeSetIn().

Friends And Related Function Documentation

◆ AliasSetTracker

friend class AliasSetTracker
friend

Definition at line 50 of file AliasSetTracker.h.


The documentation for this class was generated from the following files: