|
LLVM
4.0.0
|
Map-like storage for metadata attachments. More...
#include <LLVMContextImpl.h>
Public Member Functions | |
| bool | empty () const |
| size_t | size () const |
| MDNode * | lookup (unsigned ID) const |
| Get a particular attachment (if any). More... | |
| void | set (unsigned ID, MDNode &MD) |
| Set an attachment to a particular node. More... | |
| void | erase (unsigned ID) |
| Remove an attachment. More... | |
| void | getAll (SmallVectorImpl< std::pair< unsigned, MDNode * >> &Result) const |
| Copy out all the attachments. More... | |
| template<class PredTy > | |
| void | remove_if (PredTy shouldRemove) |
| Erase matching attachments. More... | |
Map-like storage for metadata attachments.
Definition at line 1018 of file LLVMContextImpl.h.
|
inline |
Definition at line 1022 of file LLVMContextImpl.h.
Referenced by erase().
| void MDAttachmentMap::erase | ( | unsigned | ID | ) |
Remove an attachment.
Remove the attachment at ID, if any.
Definition at line 1074 of file Metadata.cpp.
| void MDAttachmentMap::getAll | ( | SmallVectorImpl< std::pair< unsigned, MDNode * >> & | Result | ) | const |
Copy out all the attachments.
Copies all the current attachments into Result, sorting by attachment ID. This function does not clear Result.
Definition at line 1100 of file Metadata.cpp.
References llvm::array_pod_sort().
|
inline |
Erase matching attachments.
Erases all attachments matching the shouldRemove predicate.
Definition at line 1048 of file LLVMContextImpl.h.
References llvm::remove_if().
Set an attachment to a particular node.
Set the ID attachment to MD, replacing the current attachment at ID (if anyway).
Definition at line 1064 of file Metadata.cpp.
References I.
|
inline |
Definition at line 1023 of file LLVMContextImpl.h.
1.8.6