LLVM 24.0.0git
MetadataUtils.cpp File Reference

Go to the source code of this file.

Functions

template<typename ListT>
static void addToAccessGroupList (ListT &List, MDNode *AccGroups)
 Add all access groups in AccGroups to List.
static void combineMetadata (Instruction *K, const Instruction *J, bool DoesKMove, bool AAOnly=false)
 If AAOnly is set, only intersect alias analysis metadata and preserve other known metadata.

Function Documentation

◆ addToAccessGroupList()

template<typename ListT>
void addToAccessGroupList ( ListT & List,
MDNode * AccGroups )
static

Add all access groups in AccGroups to List.

Definition at line 29 of file MetadataUtils.cpp.

References assert(), llvm::cast(), llvm::MDNode::getNumOperands(), llvm::isValidAsAccessGroup(), and llvm::MDNode::operands().

Referenced by llvm::intersectAccessGroups(), and llvm::uniteAccessGroups().

◆ combineMetadata()