|
LLVM
4.0.0
|
Multimap-like storage for metadata attachments for globals. More...
#include <LLVMContextImpl.h>
Public Member Functions | |
| bool | empty () const |
| void | get (unsigned ID, SmallVectorImpl< MDNode * > &Result) |
Appends all attachments with the given ID to Result in insertion order. More... | |
| void | insert (unsigned ID, MDNode &MD) |
| void | erase (unsigned ID) |
| void | getAll (SmallVectorImpl< std::pair< unsigned, MDNode * >> &Result) const |
Appends all attachments for the global to Result, sorting by attachment ID. More... | |
Multimap-like storage for metadata attachments for globals.
This differs from MDAttachmentMap in that it allows multiple attachments per metadata kind.
Definition at line 1057 of file LLVMContextImpl.h.
|
inline |
Definition at line 1065 of file LLVMContextImpl.h.
References llvm::SmallVectorBase::empty().
| void MDGlobalAttachmentMap::erase | ( | unsigned | ID | ) |
Definition at line 1120 of file Metadata.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), E, llvm::SmallVectorTemplateCommon< T, typename >::end(), and llvm::SmallVectorImpl< T >::resize().
| void MDGlobalAttachmentMap::get | ( | unsigned | ID, |
| SmallVectorImpl< MDNode * > & | Result | ||
| ) |
Appends all attachments with the given ID to Result in insertion order.
If the global has no attachments with the given ID, or if ID is invalid, leaves Result unchanged.
Definition at line 1113 of file Metadata.cpp.
References A, and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
| void MDGlobalAttachmentMap::getAll | ( | SmallVectorImpl< std::pair< unsigned, MDNode * >> & | Result | ) | const |
Appends all attachments for the global to Result, sorting by attachment ID.
Attachments with the same ID appear in insertion order. This function does not clear Result.
Definition at line 1133 of file Metadata.cpp.
Definition at line 1109 of file Metadata.cpp.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
1.8.6