LLVM 24.0.0git
llvm::AAKindSet Class Reference

A set of kinds of abstract attributes, given by their IDs. More...

#include "llvm/Transforms/IPO/Attributor.h"

Public Member Functions

template<typename AAType>
bool contains () const
 Return true if abstract attributes of type AAType are in the set.

Static Public Member Functions

template<const char *... KindIDs>
static constexpr AAKindSet get ()
 Return the set of the kinds with the IDs KindIDs.

Detailed Description

A set of kinds of abstract attributes, given by their IDs.

The kinds declared here are tested with a bit mask, others with a list of IDs.

Definition at line 1388 of file Attributor.h.

Member Function Documentation

◆ contains()

template<typename AAType>
bool llvm::AAKindSet::contains ( ) const

Return true if abstract attributes of type AAType are in the set.

Definition at line 6469 of file Attributor.h.

References llvm::detail::getAAKindMask(), llvm::is_contained(), and uint64_t.

◆ get()

template<const char *... KindIDs>
AAKindSet llvm::AAKindSet::get ( )
staticconstexpr

Return the set of the kinds with the IDs KindIDs.

Definition at line 6464 of file Attributor.h.

References llvm::detail::AAKindSetIDs, and llvm::detail::getAAKindMask().

Referenced by runAttributorLightOnFunctions().


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