LLVM  10.0.0
Public Member Functions | Public Attributes | List of all members
llvm::AAMDNodes Struct Reference

A collection of metadata nodes that might be associated with a memory access used by the alias-analysis infrastructure. More...

#include "llvm/IR/Metadata.h"

Collaboration diagram for llvm::AAMDNodes:
[legend]

Public Member Functions

 AAMDNodes ()=default
 
 AAMDNodes (MDNode *T, MDNode *TS, MDNode *S, MDNode *N)
 
bool operator== (const AAMDNodes &A) const
 
bool operator!= (const AAMDNodes &A) const
 
 operator bool () const
 
AAMDNodes intersect (const AAMDNodes &Other)
 Given two sets of AAMDNodes that apply to the same pointer, give the best AAMDNodes that are compatible with both (i.e. More...
 

Public Attributes

MDNode * TBAA = nullptr
 The tag for type-based alias analysis. More...
 
MDNode * TBAAStruct = nullptr
 The tag for type-based alias analysis (tbaa struct). More...
 
MDNode * Scope = nullptr
 The tag for alias scope specification (used with noalias). More...
 
MDNode * NoAlias = nullptr
 The tag specifying the noalias scope. More...
 

Detailed Description

A collection of metadata nodes that might be associated with a memory access used by the alias-analysis infrastructure.

Definition at line 644 of file Metadata.h.

Constructor & Destructor Documentation

◆ AAMDNodes() [1/2]

llvm::AAMDNodes::AAMDNodes ( )
explicitdefault

◆ AAMDNodes() [2/2]

llvm::AAMDNodes::AAMDNodes ( MDNode *  T,
MDNode *  TS,
MDNode *  S,
MDNode *  N 
)
inlineexplicit

Definition at line 646 of file Metadata.h.

Member Function Documentation

◆ intersect()

AAMDNodes llvm::AAMDNodes::intersect ( const AAMDNodes &  Other)
inline

Given two sets of AAMDNodes that apply to the same pointer, give the best AAMDNodes that are compatible with both (i.e.

a set of nodes whose allowable aliasing conclusions are a subset of those allowable by both of the inputs). However, for efficiency reasons, do not create any new MDNodes.

Definition at line 677 of file Metadata.h.

References llvm::NoAlias, NoAlias, Scope, TBAA, and TBAAStruct.

◆ operator bool()

llvm::AAMDNodes::operator bool ( ) const
inlineexplicit

Definition at line 656 of file Metadata.h.

References llvm::NoAlias.

◆ operator!=()

bool llvm::AAMDNodes::operator!= ( const AAMDNodes &  A) const
inline

Definition at line 654 of file Metadata.h.

◆ operator==()

bool llvm::AAMDNodes::operator== ( const AAMDNodes &  A) const
inline

Definition at line 649 of file Metadata.h.

References llvm::NoAlias, NoAlias, Scope, TBAA, and TBAAStruct.

Member Data Documentation

◆ NoAlias

MDNode* llvm::AAMDNodes::NoAlias = nullptr

◆ Scope

MDNode* llvm::AAMDNodes::Scope = nullptr

◆ TBAA

MDNode* llvm::AAMDNodes::TBAA = nullptr

◆ TBAAStruct

MDNode* llvm::AAMDNodes::TBAAStruct = nullptr

The tag for type-based alias analysis (tbaa struct).

Definition at line 664 of file Metadata.h.

Referenced by llvm::Instruction::getAAMetadata(), llvm::DenseMapInfo< AAMDNodes >::getHashValue(), intersect(), operator==(), and llvm::Instruction::setAAMetadata().


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