LLVM 24.0.0git
llvm::AliasScopeDomainNode Class Reference

Wrapper around alias scope domain metedata to allow accessing their fields, including surfacing the optional i1 disjoint parameter, hiding the details of the metadata encoding. More...

#include "llvm/IR/Metadata.h"

Public Member Functions

 AliasScopeDomainNode ()=default
 AliasScopeDomainNode (const MDNode *N)
const MDNode * getNode () const
 Get the MDNode for this AliasScopeDomainNode.
StringRef getDescription () const
 Get the optional human-readable description of this domain or the empty string otherwise.
bool hasDisjointScopes () const
 Return true if this domain has disjoint scopes.

Detailed Description

Wrapper around alias scope domain metedata to allow accessing their fields, including surfacing the optional i1 disjoint parameter, hiding the details of the metadata encoding.

Definition at line 1603 of file Metadata.h.

Constructor & Destructor Documentation

◆ AliasScopeDomainNode() [1/2]

llvm::AliasScopeDomainNode::AliasScopeDomainNode ( )
default

◆ AliasScopeDomainNode() [2/2]

llvm::AliasScopeDomainNode::AliasScopeDomainNode ( const MDNode * N)
inlineexplicit

Definition at line 1608 of file Metadata.h.

References N.

Member Function Documentation

◆ getDescription()

StringRef llvm::AliasScopeDomainNode::getDescription ( ) const
inline

Get the optional human-readable description of this domain or the empty string otherwise.

Definition at line 1615 of file Metadata.h.

References llvm::dyn_cast_or_null(), and N.

◆ getNode()

const MDNode * llvm::AliasScopeDomainNode::getNode ( ) const
inline

Get the MDNode for this AliasScopeDomainNode.

Definition at line 1611 of file Metadata.h.

◆ hasDisjointScopes()

bool llvm::AliasScopeDomainNode::hasDisjointScopes ( ) const
inline

Return true if this domain has disjoint scopes.

Definition at line 1623 of file Metadata.h.

References llvm::mdconst::dyn_extract_or_null(), and llvm::Constant::isOneValue().


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